Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
55cde038
Commit
55cde038
authored
Aug 04, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
27bf398f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
NewbieScene.ts
project/src/scenes/NewbieScene.ts
+7
-0
No files found.
project/src/scenes/NewbieScene.ts
View file @
55cde038
...
...
@@ -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
{
...
...
@@ -40,6 +41,10 @@ export class NewbieScene extends Scene {
this
.
openPrize
(
this
.
data
);
}
onClick_ruleBtn
()
{
showPanel
(
RulePanel
);
}
initUi
()
{
super
.
initUi
();
const
group
=
new
Group
();
...
...
@@ -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"
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment