src/SK_Game/gonggao.ts

(完整代码) 1KB


module game {

    export class gonggao extends eui.Component {

        public constructor() {
            super();
            this.addEventListener(eui.UIEvent.COMPLETE, this.initUI, this);
            this.skinName = "resource/egamexml/gonggao.exml";//全路径名

        }
        public closebtn: eui.Button;
        public okbtn: eui.Button;
        public sysshow: eui.Label;
     
        public initUI(): void {
            //自适应
            Sys_Gameset.setEXMLAuto(this);

            this.closebtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.ClosePlane, this);
            this.okbtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.ClosePlane, this);

            var mynews = RES.getRes("newslogin_json");
            var newsshow = mynews.shownews;

            this.sysshow.textFlow = (new egret.HtmlTextParser).parser(newsshow);


        }



        //关闭按钮
        public ClosePlane() {
            Sys_Gameset.PlayMusicSound("button_mp3");
            this.parent.removeChild(this);
        }


    }
}

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

AI 解读

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

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