34 lines
840 B
JavaScript
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(); |