src/SK_Game/smallsay.ts
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
module game {
export class smallsay extends eui.Component {
public constructor() {
super();
this.addEventListener(eui.UIEvent.COMPLETE, this.initUI, this);
this.skinName = "resource/egamexml/cards/smallsay.exml";
}
/**
* 初始化面板ui
*/
public initUI(): void {
//自适应
}
public username: eui.Label;
public cotants: eui.Label;
public userlvtxt: eui.BitmapLabel;
public adrestxt: eui.Label;
public userheadimg: eui.Image;
public jiafriend: eui.Button;
public theuserid: number;
public showMsgCont(_dates) {
this.adrestxt.text = "(" + _dates.address + ")";
this.username.text = _dates.name + ":";
this.cotants.text = _dates.message;
this.userlvtxt.text = _dates.userlv;
this.theuserid = _dates.userid;
if (this.theuserid == MyData.User_SX.myUserID) {
this.jiafriend.visible = false
}
this.jiafriend.addEventListener(egret.TouchEvent.TOUCH_TAP, this.AddTrueUser, this);
this.userheadimg.source = RES.getRes("job_" + _dates.job + "_" + _dates.sex + "_png");
}
//查询后添加
public AddTrueUser(evt: egret.TouchEvent) {
var myid = this.theuserid
if (myid != undefined) {
//发送的文件,发送的数据数据
var seruser: string = "userid=" + MyData.User_SX.myUserID + "&AddUserId=" + myid;
Sys_PostJson.sendPostRequest(Sys_GameConfig.ServerPost.AddFriendsAPI, seruser, this.AddBack, this);
Sys_Gameset.TheMaskUI.visible = true;
} else {
this.AleatBoxShow("请勿重复添加")
}
}
//添加成功
public AddedOk() {
this.AleatBoxShow("添加成功,等待他通过吧!")
}
后面还有 31 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
