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
66bace52
Commit
66bace52
authored
Aug 03, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b89349c1
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
136 additions
and
2 deletions
+136
-2
res.json
project/resource/res.json
+8
-0
share_fail_bg.png
project/resource/share_fail/share_fail_bg.png
+0
-0
share_fail_okbtn.png
project/resource/share_fail/share_fail_okbtn.png
+0
-0
share_success_bg.png
project/resource/share_success/share_success_bg.png
+0
-0
share_success_okbtn.png
project/resource/share_success/share_success_okbtn.png
+0
-0
skin.json
project/resource/skin.json
+1
-1
ResJson.ts
project/src/ResJson.ts
+8
-0
SkinJson.ts
project/src/SkinJson.ts
+77
-1
prize.ts
project/src/panels/prize.ts
+9
-0
IndexScene.ts
project/src/template/IndexScene.ts
+33
-0
No files found.
project/resource/res.json
View file @
66bace52
...
...
@@ -31,6 +31,14 @@
{
"keys"
:
"prize_bg.png,prize_closebtn.png,prize_okbtn.png,prize_placeholder.png"
,
"name"
:
"prize"
},
{
"keys"
:
"share_fail_bg.png,share_fail_okbtn.png"
,
"name"
:
"share_fail"
},
{
"keys"
:
"share_success_bg.png,share_success_okbtn.png"
,
"name"
:
"share_success"
}
],
"path"
:
"./resource/"
...
...
project/resource/share_fail/share_fail_bg.png
0 → 100644
View file @
66bace52
168 KB
project/resource/share_fail/share_fail_okbtn.png
0 → 100644
View file @
66bace52
11.6 KB
project/resource/share_success/share_success_bg.png
0 → 100644
View file @
66bace52
168 KB
project/resource/share_success/share_success_okbtn.png
0 → 100644
View file @
66bace52
11.6 KB
project/resource/skin.json
View file @
66bace52
{
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"RulePanel"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"ruleBg"
,
"x"
:
28
,
"y"
:
248
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"ruleBg.png"
}},{
"name"
:
"规则内容"
,
"x"
:
74
,
"y"
:
369
,
"type"
:
"text"
,
"props"
:{
"text"
:
"游戏规则
\n
"
,
"size"
:
30
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
},
"id"
:
"ruleTxt"
},{
"name"
:
"我知道了"
,
"x"
:
164
,
"y"
:
1197
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"我知道了.png"
},
"id"
:
"knowBtn"
},{
"name"
:
"关闭按钮"
,
"x"
:
625
,
"y"
:
272
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"关闭按钮.png"
},
"id"
:
"closeBtn"
}]},{
"name"
:
"StartScene"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"startSceneBg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"startSceneBg.jpg"
}},{
"name"
:
"底部按钮区"
,
"x"
:
0
,
"y"
:
1242
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"底部按钮区背景"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"底部按钮区背景.png"
}},{
"name"
:
"icon"
,
"x"
:
56
,
"y"
:
35
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"赚次数按钮"
,
"x"
:
547
,
"y"
:
0
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"赚次数按钮.png"
},
"id"
:
"taskBtn"
},{
"name"
:
"运动锦鲤按钮"
,
"x"
:
258
,
"y"
:
0
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"运动锦鲤按钮.png"
},
"id"
:
"lotBtn"
},{
"name"
:
"排行榜按钮"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"排行榜按钮.png"
},
"id"
:
"rankBtn"
}]}]},{
"name"
:
"timesTxt"
,
"x"
:
286
,
"y"
:
1205
,
"type"
:
"text"
,
"props"
:{
"text"
:
"剩余次数:3次"
,
"size"
:
16.00722
,
"fillColor"
:
"#ffffff"
,
"textAlpha"
:
1
},
"id"
:
"timesTxt"
},{
"name"
:
"开始游戏"
,
"x"
:
171
,
"y"
:
1052
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"开始游戏.png"
},
"id"
:
"startBtn"
},{
"name"
:
"规则按钮"
,
"x"
:
621
,
"y"
:
212
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"规则按钮.png"
},
"id"
:
"ruleBtn"
},{
"name"
:
"奖品按钮"
,
"x"
:
11
,
"y"
:
212
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"奖品按钮.png"
},
"id"
:
"recordBtn"
}]},{
"name"
:
"loading"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"loading_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"loading_bg.png"
}},{
"name"
:
"loading_title"
,
"x"
:
64
,
"y"
:
253
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"loading_title.png"
}},{
"name"
:
"loading_loading"
,
"x"
:
299
,
"y"
:
1076
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"loading_loading.png"
}},{
"name"
:
"loading_progress"
,
"x"
:
91
,
"y"
:
1028
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"loading_progressbg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"loading_progressbg.png"
}},{
"name"
:
"loading_progressfront"
,
"x"
:
8
,
"y"
:
4
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"loading_progressfront.png"
}}]}]},{
"name"
:
"newbie"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"newbie_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"newbie_bg.png"
}},{
"name"
:
"newbieTips"
,
"x"
:
270
,
"y"
:
551
,
"type"
:
"text"
,
"props"
:{
"text"
:
"newbie"
,
"size"
:
72
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}}]},{
"name"
:
"prize"
,
"x"
:
67
,
"y"
:
327
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"prize_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_bg.png"
}},{
"name"
:
"prize_name"
,
"x"
:
147
,
"y"
:
317
,
"type"
:
"text"
,
"props"
:{
"text"
:
"多功能不粘小奶锅16cm"
,
"size"
:
30
,
"fillColor"
:
"#5889ce"
,
"textAlpha"
:
1
}},{
"name"
:
"prize_closebtn"
,
"x"
:
561
,
"y"
:
166
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_closebtn.png"
}},{
"name"
:
"prize_tips"
,
"x"
:
164
,
"y"
:
848
,
"type"
:
"text"
,
"props"
:{
"text"
:
"奖品可在“我的奖品”中查看"
,
"size"
:
24
,
"fillColor"
:
"#5889ce"
,
"textAlpha"
:
1
}},{
"name"
:
"prize_okbtn"
,
"x"
:
126
,
"y"
:
724
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_okbtn.png"
}},{
"name"
:
"prize_placeholder"
,
"x"
:
183
,
"y"
:
405
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_placeholder.png"
}}]},{
"name"
:
"index"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"index_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_bg.png"
}},{
"name"
:
"index_tips"
,
"x"
:
270
,
"y"
:
551
,
"type"
:
"text"
,
"props"
:{
"text"
:
"
newbie"
,
"size"
:
72
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}}]}]}
{
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"RulePanel"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"ruleBg"
,
"x"
:
28
,
"y"
:
248
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"ruleBg.png"
}},{
"name"
:
"规则内容"
,
"x"
:
74
,
"y"
:
369
,
"type"
:
"text"
,
"props"
:{
"text"
:
"游戏规则
\n
"
,
"size"
:
30
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
},
"id"
:
"ruleTxt"
},{
"name"
:
"我知道了"
,
"x"
:
164
,
"y"
:
1197
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"我知道了.png"
},
"id"
:
"knowBtn"
},{
"name"
:
"关闭按钮"
,
"x"
:
625
,
"y"
:
272
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"关闭按钮.png"
},
"id"
:
"closeBtn"
}]},{
"name"
:
"StartScene"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"startSceneBg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"startSceneBg.jpg"
}},{
"name"
:
"底部按钮区"
,
"x"
:
0
,
"y"
:
1242
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"底部按钮区背景"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"底部按钮区背景.png"
}},{
"name"
:
"icon"
,
"x"
:
56
,
"y"
:
35
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"赚次数按钮"
,
"x"
:
547
,
"y"
:
0
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"赚次数按钮.png"
},
"id"
:
"taskBtn"
},{
"name"
:
"运动锦鲤按钮"
,
"x"
:
258
,
"y"
:
0
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"运动锦鲤按钮.png"
},
"id"
:
"lotBtn"
},{
"name"
:
"排行榜按钮"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"排行榜按钮.png"
},
"id"
:
"rankBtn"
}]}]},{
"name"
:
"timesTxt"
,
"x"
:
286
,
"y"
:
1205
,
"type"
:
"text"
,
"props"
:{
"text"
:
"剩余次数:3次"
,
"size"
:
16.00722
,
"fillColor"
:
"#ffffff"
,
"textAlpha"
:
1
},
"id"
:
"timesTxt"
},{
"name"
:
"开始游戏"
,
"x"
:
171
,
"y"
:
1052
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"开始游戏.png"
},
"id"
:
"startBtn"
},{
"name"
:
"规则按钮"
,
"x"
:
621
,
"y"
:
212
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"规则按钮.png"
},
"id"
:
"ruleBtn"
},{
"name"
:
"奖品按钮"
,
"x"
:
11
,
"y"
:
212
,
"type"
:
"button"
,
"props"
:{
"tUp"
:
"奖品按钮.png"
},
"id"
:
"recordBtn"
}]},{
"name"
:
"loading"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"loading_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"loading_bg.png"
}},{
"name"
:
"loading_title"
,
"x"
:
64
,
"y"
:
253
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"loading_title.png"
}},{
"name"
:
"loading_loading"
,
"x"
:
299
,
"y"
:
1076
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"loading_loading.png"
}},{
"name"
:
"loading_progress"
,
"x"
:
91
,
"y"
:
1028
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"loading_progressbg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"loading_progressbg.png"
}},{
"name"
:
"loading_progressfront"
,
"x"
:
8
,
"y"
:
4
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"loading_progressfront.png"
}}]}]},{
"name"
:
"newbie"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"newbie_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"newbie_bg.png"
}},{
"name"
:
"newbieTips"
,
"x"
:
270
,
"y"
:
551
,
"type"
:
"text"
,
"props"
:{
"text"
:
"newbie"
,
"size"
:
72
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}}]},{
"name"
:
"prize"
,
"x"
:
67
,
"y"
:
327
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"prize_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_bg.png"
}},{
"name"
:
"prize_name"
,
"x"
:
147
,
"y"
:
317
,
"type"
:
"text"
,
"props"
:{
"text"
:
"多功能不粘小奶锅16cm"
,
"size"
:
30
,
"fillColor"
:
"#5889ce"
,
"textAlpha"
:
1
}},{
"name"
:
"prize_closebtn"
,
"x"
:
561
,
"y"
:
166
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_closebtn.png"
}},{
"name"
:
"prize_tips"
,
"x"
:
164
,
"y"
:
848
,
"type"
:
"text"
,
"props"
:{
"text"
:
"奖品可在“我的奖品”中查看"
,
"size"
:
24
,
"fillColor"
:
"#5889ce"
,
"textAlpha"
:
1
}},{
"name"
:
"prize_okbtn"
,
"x"
:
126
,
"y"
:
724
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_okbtn.png"
}},{
"name"
:
"prize_placeholder"
,
"x"
:
183
,
"y"
:
405
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_placeholder.png"
}}]},{
"name"
:
"index"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"index_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_bg.png"
}},{
"name"
:
"index_tips"
,
"x"
:
270
,
"y"
:
551
,
"type"
:
"text"
,
"props"
:{
"text"
:
"
index_haha"
,
"size"
:
72
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}}]},{
"name"
:
"share_fail"
,
"x"
:
67
,
"y"
:
319
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"share_fail_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_fail_bg.png"
}},{
"name"
:
"share_fail_name"
,
"x"
:
250
,
"y"
:
317
,
"type"
:
"text"
,
"props"
:{
"text"
:
"分享失败"
,
"size"
:
30
,
"fillColor"
:
"#5889ce"
,
"textAlpha"
:
1
}},{
"name"
:
"share_fail_okbtn"
,
"x"
:
126
,
"y"
:
724
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_fail_okbtn.png"
}}]},{
"name"
:
"share_success"
,
"x"
:
67
,
"y"
:
319
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"share_success_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_success_bg.png"
}},{
"name"
:
"share_success_name"
,
"x"
:
250
,
"y"
:
317
,
"type"
:
"text"
,
"props"
:{
"text"
:
"分享成功"
,
"size"
:
30
,
"fillColor"
:
"#5889ce"
,
"textAlpha"
:
1
}},{
"name"
:
"share_success_okbtn"
,
"x"
:
126
,
"y"
:
724
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_success_okbtn.png"
}}]}]}
project/src/ResJson.ts
View file @
66bace52
...
...
@@ -31,6 +31,14 @@ export const ResJson = {
{
"keys"
:
"prize_bg.png,prize_closebtn.png,prize_okbtn.png,prize_placeholder.png"
,
"name"
:
"prize"
},
{
"keys"
:
"share_fail_bg.png,share_fail_okbtn.png"
,
"name"
:
"share_fail"
},
{
"keys"
:
"share_success_bg.png,share_success_okbtn.png"
,
"name"
:
"share_success"
}
],
"path"
:
"./resource/"
...
...
project/src/SkinJson.ts
View file @
66bace52
...
...
@@ -347,13 +347,89 @@ export const SkinJson ={
"y"
:
551
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"
newbie
"
,
"text"
:
"
index_haha
"
,
"size"
:
72
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}
}
]
},
{
"name"
:
"share_fail"
,
"x"
:
67
,
"y"
:
319
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"share_fail_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"share_fail_bg.png"
}
},
{
"name"
:
"share_fail_name"
,
"x"
:
250
,
"y"
:
317
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"分享失败"
,
"size"
:
30
,
"fillColor"
:
"#5889ce"
,
"textAlpha"
:
1
}
},
{
"name"
:
"share_fail_okbtn"
,
"x"
:
126
,
"y"
:
724
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"share_fail_okbtn.png"
}
}
]
},
{
"name"
:
"share_success"
,
"x"
:
67
,
"y"
:
319
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"share_success_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"share_success_bg.png"
}
},
{
"name"
:
"share_success_name"
,
"x"
:
250
,
"y"
:
317
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"分享成功"
,
"size"
:
30
,
"fillColor"
:
"#5889ce"
,
"textAlpha"
:
1
}
},
{
"name"
:
"share_success_okbtn"
,
"x"
:
126
,
"y"
:
724
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"share_success_okbtn.png"
}
}
]
}
]
}
\ No newline at end of file
project/src/panels/prize.ts
View file @
66bace52
import
{
changeScene
}
from
"../../module/ctrls"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
getObject
from
"../getObject"
;
import
{
IndexScene
}
from
"../template/IndexScene"
;
import
{
Tools
}
from
"../Tools"
;
import
{
getWebData
,
sendWebNet
,
WebNetName
}
from
"../WebNet"
;
...
...
@@ -24,4 +26,11 @@ export class PrizePanel extends Panel {
super
.
start
();
}
hidePanel
(){
super
.
hidePanel
();
changeScene
(
IndexScene
);
}
}
\ No newline at end of file
project/src/template/IndexScene.ts
0 → 100644
View file @
66bace52
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
getObject
from
"../getObject"
;
import
{
PrizePanel
}
from
"../panels/prize"
;
export
class
IndexScene
extends
Scene
{
get
groupNames
()
{
return
[
"index"
]
}
get
skinName
()
{
return
"index"
}
initUi
()
{
super
.
initUi
();
}
async
start
(
data
)
{
super
.
start
();
console
.
log
(
this
);
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,()
=>
{
showPanel
(
PrizePanel
);
},
this
);
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
}
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