src/SK_Game/creatUser.ts

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

//创建用户角色
module game {
    export class creatUser extends eui.Component {
        public CeartBtn: eui.Button;
        public userName: eui.TextInput;
        public AboutLable: eui.Label;


        public constructor() {
            super();
            this.addEventListener(eui.UIEvent.COMPLETE, this.initUI, this);
            this.skinName = "resource/egamexml/CreatUser.exml";
        }
        /**
         * 初始化面板ui
         */


        public sex_btn_1: eui.Image;
        public sex_btn_2: eui.Image;
        public system: particle.ParticleSystem;
        public jobc_1: eui.Image;
        public jobc_2: eui.Image;
        public jobc_3: eui.Image;

        public xz1: eui.Image;
        public xz2: eui.Image;
        public xz3: eui.Image;

        public job1Gp: eui.Group;
        public job2Gp: eui.Group;
        public job3Gp: eui.Group;

        public peogroup: eui.Group;

        public intCreatOK: boolean;

        public rollname: eui.Image;

        public maskui: game.maskloading;
        private Stand: egret.tween.TweenGroup;

        public initUI(): void {
            Sys_Gameset.setEXMLAuto(this);

            Sys_Gameset.playAnimation(this.Stand, true)
            this.intCreatOK = false;
            this.userName.text = MyData.User_SX.myUserWXName;
            //使用粒子效果
            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.chooksex(1);
            this.sex_btn_1.addEventListener(egret.TouchEvent.TOUCH_TAP, function (e, some) { this.chooksex(1) }, this);
后面还有 141 行代码,解锁后查看完整代码

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

AI 解读

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

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