bin-debug/SK_Game/login.js

(开头部分) 7KB

这里只显示每个文件的开头 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 login = (function (_super) {
        __extends(login, _super);
        function login() {
            var _this = _super.call(this) || this;
            //判断查询用户所拥有的服务器及角色
            _this.UserIsReg = 0;
            _this.addEventListener(eui.UIEvent.COMPLETE, _this.initUI, _this);
            _this.skinName = "resource/egamexml/login.exml";
            return _this;
        }
        login.prototype.initUI = function () {
            MyData.loginPlane = this;
            console.log("登录");
            //自适应
            Sys_Gameset.setEXMLAuto(this);
            //播放动画
            Sys_Gameset.playAnimation(this.Stand, true);
            //使用粒子效果
            var texture = RES.getRes("LoginParticle_png");
            var config = RES.getRes("LoginParticle_json");
            this.system = new particle.GravityParticleSystem(texture, config);
            this.addChild(this.system);
            this.system.start();
            //数据读取中遮罩
            this.maskui = new game.maskloading;
            this.addChild(this.maskui);
            this.serverbtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openServerbox, this);
        };
        login.prototype.openServerbox = function () {
            var serverPlane = new game.servers();
            this.parent.addChild(serverPlane);
            serverPlane.setDatas();
            serverPlane.myservers(this.myServerObj);
        };
        //获得用户所有服务器信息
        login.prototype.SetUserID = function (uid) {
            this.ServerUserID = uid;
            //发送的文件,发送的数据数据
            var user_login = "userSerID=" + this.ServerUserID;
            Sys_PostJson.sendPostRequest(Sys_GameConfig.ServerPost.loginAPI, user_login, this.LoginCallBack, this);
            this.LoginBtn.enabled = false;
            this.LoginBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.goWherePlane, this);
        };
        //查询单个服务器的用户角色数据
        login.prototype.loadUserAtServer = function () {
            var user_login = "userSerID=" + this.ServerUserID + "&serverid=" + MyData.MyServerID;
            Sys_PostJson.sendPostRequest(Sys_GameConfig.ServerPost.login_server, user_login, this.FindCallBack, this);
        };
后面还有 105 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。