Files
fc/dev/project/library/imports/3e/3ead04d9-203c-4ce6-b501-b7e484d53fc8.js
T
2026-05-24 10:21:26 +08:00

34 lines
840 B
JavaScript

"use strict";
cc._RF.push(module, '3ead0TZIDxM5rUBt+SE1T/I', 'battle_elfin');
// Scripts/mod/battle/act/battle_elfin.js
"use strict";
var PathTool = require("pathtool");
cc.Class({
"extends": cc.Component,
properties: {
roleSp: {
"default": null,
type: cc.Node
},
nameTxt: {
"default": null,
type: cc.Node
}
},
// LIFE-CYCLE CALLBACKS:
// onLoad () {},
start: function start() {},
setRoleSp: function setRoleSp(sp_skill_bid) {
if (!sp_skill_bid) return;
var role_icon = game.configs.sprite_data.data_elfin_skill_icon[sp_skill_bid];
var path = PathTool.queryIconPath(role_icon);
nx.gui.setSpriteFrame(this.roleSp, "", path);
},
setNameString: function setNameString(_skill) {
nx.gui.setString(this.nameTxt, "", _skill);
} // update (dt) {},
});
cc._RF.pop();