src/SK_Game/SmallOther/Smalitem.ts
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//创建用户角色
module game {
export class Smalitem extends eui.Component {
public CreatBtn: eui.Button;
public username: eui.TextInput;
public xuanzeKuang: eui.Image;
public IntWp: any;
public constructor() {
super();
this.addEventListener(eui.UIEvent.COMPLETE, this.initUI, this);
this.skinName = "resource/egamexml/btns/smallbag.exml";//全路径名
}
public zbgrp: eui.Group;
public loadImg: eui.Image;
public tiptext: eui.Label;
public initUI(): void {
}
public setWuShow: any;
public theWup(_date) {
this.setWuShow = _date
}
public setloadImg(_src) {
this.loadImg.source = _src;
}
public setNumbers(_numbers) {
if (_numbers == 0) {
this.tiptext.text = "缺货"
} else {
this.tiptext.text = "x" + Sys_Gameset.curReNumber(_numbers);
}
if (this.IntWp.TheTx != 0 && this.IntWp.TheTx != null) {
this.TxshowIt(this.IntWp.TheTx)
}
}
//战斗结束的物品显示
public setWarTXT(_numbers) {
this.tiptext.text = _numbers;
if (this.IntWp.TheTx != 0) {
this.TxshowIt(this.IntWp.TheTx)
}
}
//特效框
public TxshowIt(txid) {
var mykuangtx = Sys_Gameset.LoadMovieClipMovie("show" + txid, this.zbgrp, 0, 0, "k1", -1, "ShowNewkuang");
if (txid == 1) {
mykuangtx.scaleX = 1.3;
后面还有 15 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
