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
3adad886
Commit
3adad886
authored
Aug 10, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
67b5eacc
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
86 deletions
+31
-86
newbie_pic3.png
project/resource/newbie/newbie_pic3.png
+0
-0
newbie_pic4.png
project/resource/newbie/newbie_pic4.png
+0
-0
newbie_pic5.png
project/resource/newbie/newbie_pic5.png
+0
-0
newbie_pic8.png
project/resource/newbie/newbie_pic8.png
+0
-0
res.json
project/resource/res.json
+1
-1
skin.json
project/resource/skin.json
+3
-36
Main.ts
project/src/Main.ts
+7
-2
ResJson.ts
project/src/ResJson.ts
+1
-1
SkinJson.ts
project/src/SkinJson.ts
+4
-36
NewbieScene.ts
project/src/scenes/NewbieScene.ts
+15
-10
No files found.
project/resource/newbie/newbie_pic3.png
deleted
100644 → 0
View file @
67b5eacc
10.4 KB
project/resource/newbie/newbie_pic4.png
deleted
100644 → 0
View file @
67b5eacc
189 KB
project/resource/newbie/newbie_pic5.png
deleted
100644 → 0
View file @
67b5eacc
276 KB
project/resource/newbie/newbie_pic8.png
deleted
100644 → 0
View file @
67b5eacc
197 KB
project/resource/res.json
View file @
3adad886
...
...
@@ -29,7 +29,7 @@
"name"
:
"loading"
},
{
"keys"
:
"newbie_bg.png,newbie_marqee.png,newbie_open.png,newbie_pic2.png,newbie_pic
3.png,newbie_pic4.png,newbie_pic5.png,newbie_pic6.png,newbie_pic7.png,newbie_pic8
.png,newbie_rule.png,newbie_title.png"
,
"keys"
:
"newbie_bg.png,newbie_marqee.png,newbie_open.png,newbie_pic2.png,newbie_pic
6.png,newbie_pic7
.png,newbie_rule.png,newbie_title.png"
,
"name"
:
"newbie"
},
{
...
...
project/resource/skin.json
View file @
3adad886
...
...
@@ -1201,15 +1201,7 @@
"source"
:
"newbie_bg.png"
}
},
{
"name"
:
"newbie_pic8"
,
"x"
:
184
,
"y"
:
555
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"newbie_pic8.png"
}
},
{
"name"
:
"newbie_pic7"
,
"x"
:
93
,
...
...
@@ -1228,33 +1220,8 @@
"source"
:
"newbie_pic6.png"
}
},
{
"name"
:
"newbie_pic5"
,
"x"
:
0
,
"y"
:
173
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"newbie_pic5.png"
}
},
{
"name"
:
"newbie_pic4"
,
"x"
:
0
,
"y"
:
90
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"newbie_pic4.png"
}
},
{
"name"
:
"newbie_pic3"
,
"x"
:
81
,
"y"
:
310
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"newbie_pic3.png"
}
},
{
"name"
:
"newbie_pic2"
,
"x"
:
231
,
...
...
project/src/Main.ts
View file @
3adad886
import
{
changeScene
,
destroyAllCtrls
}
from
"../module/ctrls"
;
import
{
changeScene
,
destroyAllCtrls
,
hideWaiting
,
showWaiting
}
from
"../module/ctrls"
;
import
{
RES
}
from
"../module/RES"
;
import
{
destroyLayers
,
layers
}
from
"../module/views/layers"
;
import
getQueryParams
from
"./common/getQueryParams"
;
...
...
@@ -66,8 +66,9 @@ export class Main {
console
.
log
(
"初始化皮肤配置完成"
)
//加载通用资源
await
RES
.
loadGroup
(
"common"
);
console
.
log
(
"通用资源加载完成"
)
//h5环境时,隐藏加载中
if
(
FYGE
.
getEnv
()
==
"web"
&&
document
.
getElementById
(
"__loading__"
))
document
.
getElementById
(
"__loading__"
).
style
.
display
=
"none"
;
//显示场景
...
...
@@ -79,6 +80,10 @@ export class Main {
if
(
!
alreadyAcquiredResult
.
data
)
{
updateShareFunc
(
'inNewbieScene'
,
''
);
showWaiting
();
await
RES
.
loadGroup
(
"svga"
);
console
.
log
(
"svga加载完成"
);
hideWaiting
();
changeScene
(
NewbieScene
);
}
else
{
...
...
project/src/ResJson.ts
View file @
3adad886
...
...
@@ -29,7 +29,7 @@ export const ResJson = {
"name"
:
"loading"
},
{
"keys"
:
"newbie_bg.png,newbie_marqee.png,newbie_open.png,newbie_pic2.png,newbie_pic
3.png,newbie_pic4.png,newbie_pic5.png,newbie_pic6.png,newbie_pic7.png,newbie_pic8
.png,newbie_rule.png,newbie_title.png"
,
"keys"
:
"newbie_bg.png,newbie_marqee.png,newbie_open.png,newbie_pic2.png,newbie_pic
6.png,newbie_pic7
.png,newbie_rule.png,newbie_title.png"
,
"name"
:
"newbie"
},
{
...
...
project/src/SkinJson.ts
View file @
3adad886
...
...
@@ -1213,15 +1213,7 @@ export const SkinJson ={
"source"
:
"newbie_bg.png"
}
},
{
"name"
:
"newbie_pic8"
,
"x"
:
184
,
"y"
:
555
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"newbie_pic8.png"
}
},
{
"name"
:
"newbie_pic7"
,
"x"
:
93
,
...
...
@@ -1240,33 +1232,9 @@ export const SkinJson ={
"source"
:
"newbie_pic6.png"
}
},
{
"name"
:
"newbie_pic5"
,
"x"
:
0
,
"y"
:
173
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"newbie_pic5.png"
}
},
{
"name"
:
"newbie_pic4"
,
"x"
:
0
,
"y"
:
90
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"newbie_pic4.png"
}
},
{
"name"
:
"newbie_pic3"
,
"x"
:
81
,
"y"
:
310
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"newbie_pic3.png"
}
},
{
"name"
:
"newbie_pic2"
,
"x"
:
231
,
...
...
project/src/scenes/NewbieScene.ts
View file @
3adad886
import
{
unwatchPageVisibility
,
watchPageVisibility
}
from
"@spark/utils"
;
import
{
changeScene
,
closeCurrentPanel
,
hideWaiting
,
showPanel
,
showWaiting
}
from
"../../module/ctrls"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
getObject
from
"../common/getObject"
;
import
getQueryParams
from
"../common/getQueryParams"
;
import
Group
from
"../common/Group"
;
import
Marquee
from
"../common/Marquee"
;
import
{
hideShareMask
}
from
"../common/ShareMask"
;
import
TestButton
from
"../common/TestButton"
;
import
{
PrizePanel
}
from
"../panels/prize"
;
import
{
RulePanel
}
from
"../panels/rule"
;
import
{
getPxTokenSave
,
sendWebNet
,
WebNetName
}
from
"../WebNet"
;
...
...
@@ -29,10 +28,16 @@ export class NewbieScene extends Scene {
async
start
(
data
)
{
super
.
start
();
const
query
=
getQueryParams
();
if
(
query
.
autoprize
==
1
)
{
this
.
openPrize
();
}
const
indexsvga
=
new
FYGE
.
MovieClip
(
RES
.
getRes
(
'index.svga'
));
indexsvga
.
mouseChildren
=
indexsvga
.
mouseEnable
=
false
;
this
.
addChild
(
indexsvga
);
}
openPrize
()
{
...
...
@@ -41,7 +46,7 @@ export class NewbieScene extends Scene {
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
acquireExperienceAmount
,
{
token
:
token
}).
then
(
acquireExperienceAmount
=>
{
hideWaiting
();
if
(
acquireExperienceAmount
.
success
)
if
(
acquireExperienceAmount
.
success
)
showPanel
(
PrizePanel
,
acquireExperienceAmount
.
data
);
})
})
...
...
@@ -59,7 +64,7 @@ export class NewbieScene extends Scene {
initUi
()
{
super
.
initUi
();
// loadSvga()
sendWebNet
(
WebNetName
.
carouselInfo
).
then
(
res
=>
{
...
...
@@ -71,23 +76,23 @@ export class NewbieScene extends Scene {
return
str
});
const
q
=
this
.
addChild
(
new
Marquee
(
datas
));
q
.
x
=
135
;
q
.
y
=
448
;
window
[
'q'
]
=
q
;
q
.
x
=
135
;
q
.
y
=
448
;
window
[
'q'
]
=
q
;
});
}
initEvents
()
{
super
.
initEvents
();
watchPageVisibility
(
this
.
onPageVisibilityChange
);
getObject
(
this
,
'newbie_open'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_openBtn
,
this
);
getObject
(
this
,
'newbie_rule'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_ruleBtn
,
this
);
getObject
(
this
,
'newbie_open'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_openBtn
,
this
);
getObject
(
this
,
'newbie_rule'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_ruleBtn
,
this
);
}
removeEvents
()
{
super
.
removeEvents
();
unwatchPageVisibility
(
this
.
onPageVisibilityChange
)
getObject
(
this
,
'newbie_open'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_openBtn
,
this
);
getObject
(
this
,
'newbie_rule'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_ruleBtn
,
this
);
getObject
(
this
,
'newbie_open'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_openBtn
,
this
);
getObject
(
this
,
'newbie_rule'
).
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