Files
2026-05-23 22:10:14 +08:00

46 lines
864 B
JavaScript

const BridgeWindow = require( "bridge.window" );
cc.Class({
extends: BridgeWindow,
properties: {
nodRewards: { type: cc.Node, default: null },
nodOp: { type: cc.Node, default: null },
},
onLoad: function(){
let cfg = game.configs.misc_data.data_const.auth_award;
if( cfg ){
let rewards = cfg.val;
let cmp = nx.gui.getComponent( this.nodRewards, "", "cmp.common.itemlayout" );
if( cmp ){
cmp.rebuild( rewards );
}
}
},
// 重载:参数打开
onOpenConfigs: function( _params ) {
this.cb = _params.cb;
let desc = _params.desc;
nx.gui.setString( this.nodOp, "txt", desc );
},
onTouchBtn: function(){
nx.dt.fnInvoke( this.cb );
this.close();
},
});