bin-debug/SK_Game/SmallOther/Friend_list.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
//创建用户角色
var game;
(function (game) {
var Friend_list = (function (_super) {
__extends(Friend_list, _super);
function Friend_list() {
var _this = _super.call(this) || this;
_this.addEventListener(eui.UIEvent.COMPLETE, _this.initUI, _this);
_this.skinName = "resource/egamexml/btns/FriednlistE.exml"; //全路径名
return _this;
}
Friend_list.prototype.initUI = function () {
this.msgOK.visible = false;
this.MsgNo.visible = false;
this.jionfriend.visible = false;
this.dajiebtn.visible = false;
this.zengsongbtn.visible = false;
this.delbtn.visible = false;
this.tuijianext.text = "";
};
Friend_list.prototype.userObj = function (obj) {
this.userid = obj.id;
this.thisUserAnt = obj;
this.unames.text = obj.user_name;
this.lvtxt.text = "Lv." + obj.userlv;
var mySext = (Number(obj.user_sex) + 1);
//转换性别图标
var seximgt = 0;
if (Number(obj.user_sex) == 0) {
seximgt = 2;
}
else {
seximgt = 1;
}
this.sex_btn_1.source = RES.getRes("userhead_" + seximgt + "_png");
this.userheadimg.source = RES.getRes("job_" + obj.UserJob + "_" + obj.user_sex + "_png");
};
Friend_list.prototype.setUserList = function (obj) {
this.jionfriend.visible = true;
this.userObj(obj);
};
Friend_list.prototype.ShowFlist = function (obj) {
this.dajiebtn.visible = true;
this.zengsongbtn.visible = true;
this.delbtn.visible = true;
this.userObj(obj);
};
Friend_list.prototype.ShowMsgBox = function (obj) {
this.msgOK.visible = true;
this.MsgNo.visible = true;
后面还有 8 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
