Files
fc/dev/project/assets/Scripts/mod/friend/cmp/cmp.friend.checkinfo.item.base.js
T

57 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-05-23 22:10:14 +08:00
const ItemBase = require( "cmp.partner.com" );
const BackPackConst = require( "backpack_const" );
const LookController = require( "look_controller" );
const BridgeItem = require( "bridge.utils.item" );
const PathTool = require( "pathtool" );
const BIST = BackPackConst.item_sub_type;
cc.Class( {
extends: ItemBase,
properties: {
},
// 数据重置
freshAll: function( ) {
this._super();
let nod = nx.gui.find( this, "qa" );
let cfg = game.configs.partner_data.data_partner_base[this.mdata.bid];
if( nod && cfg ){
let path = cfg.quality != 1 ? "coms/images/mk_sqa" + cfg.quality : null;
nx.gui.setSpriteFrame( nod, "", path );
nx.gui.setActive( nod, "", true );
}
},
// 置空
setEmpty: function() {
this._super();
nx.gui.setString( this.nodCount, "", "" );
let nod = nx.gui.find( this, "qa" );
if( nod ){
nx.gui.setActive( nod, "", false );
}
},
// 点击
onTouchIcon: function() {
// console.log( "当前的数据" + JSON.stringify( this.mdata ) );
let LC = LookController.getInstance();
if( this.mdata.srv_idd == "robot" ){
return;
}
LC.sender11061( this.mdata.rrid, this.mdata.srv_idd, this.mdata.id );
},
} );