Commit 55cde038 authored by wildfirecode13's avatar wildfirecode13

update

parent 27bf398f
......@@ -6,6 +6,7 @@ import Marquee from "../common/Marquee";
import TestButton from "../common/TestButton";
import getQueryParams from "../getQueryParams";
import { PrizePanel } from "../panels/prize";
import { RulePanel } from "../panels/rule";
import { IndexScene } from "./IndexScene";
let prize;
export class NewbieScene extends Scene {
......@@ -39,6 +40,10 @@ export class NewbieScene extends Scene {
onClick_prizeBtn() {
this.openPrize(this.data);
}
onClick_ruleBtn() {
showPanel(RulePanel);
}
initUi() {
super.initUi();
......@@ -64,11 +69,13 @@ export class NewbieScene extends Scene {
super.initEvents();
watchPageVisibility(this.onPageVisibilityChange);
this.prizeBtn.addEventListener(FYGE.MouseEvent.CLICK, this.onClick_prizeBtn, this);
this.ruleBtn.addEventListener(FYGE.MouseEvent.CLICK, this.onClick_ruleBtn, this);
}
removeEvents() {
super.removeEvents();
unwatchPageVisibility(this.onPageVisibilityChange)
this.prizeBtn.removeEventListener(FYGE.MouseEvent.CLICK, this.onClick_prizeBtn, this);
this.ruleBtn.removeEventListener(FYGE.MouseEvent.CLICK, this.onClick_ruleBtn, this);
}
get groupNames() { return ["newbie"] }
......
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