Commit 5b1928a3 authored by wildfirecode's avatar wildfirecode

update

parent 3862e7ff
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"prize_5","version":5,"files":["../assets/prize/prizePanelbg.png","../assets/prize/PrizePanelX.png","../assets/prize/prizePanelUseBtn.png"]}
\ No newline at end of file
......@@ -5,9 +5,9 @@
"resource/skins/AlertSkin.exml",
"resource/skins/OptionItemSkin.exml",
"resource/skins/OptionsSkin.exml",
"resource/skins/PrizeSkin.exml",
"resource/skins/RuleSkin.exml",
"resource/skins/StartSkin.exml",
"resource/skins/PrizeSkin.exml",
"resource/skins/VScrollBarSkin.exml"
],
"path": "resource/default.thm.json"
......
......@@ -16,6 +16,8 @@ import PanelCtrl from "../ctrls/panelCtrl";
import { ModuleTypes } from "../types/sceneTypes";
import showAlertPanel from "../ctrls/showAlertPanel";
import Panel from "../views/Panel";
import Tips from "./view/Tips";
import DeclareTextTips from "./view/DeclareText";
const { TouchEvent } = egret;
export default class StartScene extends Scene {
......@@ -38,6 +40,8 @@ export default class StartScene extends Scene {
const t2 = Date.now() - __t0__;
console.log(`首屏(背景显示)时间:${t2 / 1000}s`);
this.getLayer(LayerTypes.ui).visible=true;
this._boxListCtrl = new BoxListCtrl(this.getLayer(LayerTypes.box));
await this._boxListCtrl.createFirstBox();
......@@ -235,6 +239,9 @@ export default class StartScene extends Scene {
uiLayer.addChild(this['optionBtn']);
this['ruleBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_ruleBtn, this);
this['optionBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_optionBtn, this);
uiLayer.addChild(new Tips());
uiLayer.addChild(new DeclareTextTips());
uiLayer.visible=false;
}
onTap_ruleBtn(e: egret.Event) {
......
export default class DeclareTextTips extends eui.Label {
constructor() {
super();
this.width = 750;
this.textAlign = "center";
this.size = 20;
this.textColor = 0x333333;
this.text = '*兑换项与活动均与设备制造商Apple Inc.公司无关';
this.once(egret.Event.ADDED_TO_STAGE,this.onAddToStage,this);
}
onAddToStage(){
this.y = this.stage.stageHeight-this.textHeight-10;
}
}
\ No newline at end of file
import { DataManager } from "../../../libs/tw/manager/DataManager";
export default class Tips extends eui.Label {
constructor() {
super();
this.horizontalCenter = "0";
this.width = 750;
this.textAlign = "center";
this.size = 28;
this.y = 1100-50;
this.updateText();
DataManager.ins.addEventListener('dataUpdate', this.updateText, this);
}
updateText() {
if (!DataManager.ins.getInfoData) return;
this.text = DataManager.ins.getInfoData.status.text;
}
}
\ No newline at end of file
......@@ -15,7 +15,7 @@
"code": 0,
"btnText": "开始游戏",
"btnDisable": 0,
"text": "1分/次",
"text": "3分/次",
"btnEventType": null,
"btnEvent": null
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment