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
29d6cf5b
Commit
29d6cf5b
authored
Aug 12, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
154925d4
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
401 additions
and
4 deletions
+401
-4
getTimes_bg.png
project/resource/getTimes/getTimes_bg.png
+0
-0
getTimes_close.png
project/resource/getTimes/getTimes_close.png
+0
-0
getTimes_go.png
project/resource/getTimes/getTimes_go.png
+0
-0
memberGuide_bg.png
project/resource/memberGuide/memberGuide_bg.png
+0
-0
memberGuide_btn.png
project/resource/memberGuide/memberGuide_btn.png
+0
-0
memberGuide_close.png
project/resource/memberGuide/memberGuide_close.png
+0
-0
notEnoughMoney_bg.png
project/resource/notEnoughMoney/notEnoughMoney_bg.png
+0
-0
notEnoughMoney_btn.png
project/resource/notEnoughMoney/notEnoughMoney_btn.png
+0
-0
notEnoughMoney_close.png
project/resource/notEnoughMoney/notEnoughMoney_close.png
+0
-0
res.json
project/resource/res.json
+16
-0
skin.json
project/resource/skin.json
+1
-1
timesNotEnough_bg.png
project/resource/timesNotEnough/timesNotEnough_bg.png
+0
-0
timesNotEnough_close.png
project/resource/timesNotEnough/timesNotEnough_close.png
+0
-0
timesNotEnough_ok.png
project/resource/timesNotEnough/timesNotEnough_ok.png
+0
-0
ResJson.ts
project/src/ResJson.ts
+16
-0
SkinJson.ts
project/src/SkinJson.ts
+223
-2
getTimes.ts
project/src/panels/getTimes.ts
+35
-0
memberGuide.ts
project/src/panels/memberGuide.ts
+35
-0
notEnoughMoney.ts
project/src/panels/notEnoughMoney.ts
+35
-0
timesNotEnough.ts
project/src/panels/timesNotEnough.ts
+35
-0
IndexScene.ts
project/src/scenes/IndexScene.ts
+2
-1
RulePanel.ts
project/src/template/RulePanel.ts
+3
-0
No files found.
project/resource/getTimes/getTimes_bg.png
0 → 100644
View file @
29d6cf5b
122 KB
project/resource/getTimes/getTimes_close.png
0 → 100644
View file @
29d6cf5b
8.44 KB
project/resource/getTimes/getTimes_go.png
0 → 100644
View file @
29d6cf5b
1.56 KB
project/resource/memberGuide/memberGuide_bg.png
0 → 100644
View file @
29d6cf5b
135 KB
project/resource/memberGuide/memberGuide_btn.png
0 → 100644
View file @
29d6cf5b
2.41 KB
project/resource/memberGuide/memberGuide_close.png
0 → 100644
View file @
29d6cf5b
8.44 KB
project/resource/notEnoughMoney/notEnoughMoney_bg.png
0 → 100644
View file @
29d6cf5b
113 KB
project/resource/notEnoughMoney/notEnoughMoney_btn.png
0 → 100644
View file @
29d6cf5b
2.09 KB
project/resource/notEnoughMoney/notEnoughMoney_close.png
0 → 100644
View file @
29d6cf5b
8.44 KB
project/resource/res.json
View file @
29d6cf5b
...
@@ -16,6 +16,10 @@
...
@@ -16,6 +16,10 @@
"keys"
:
"cost_bg.png,cost_close.png,cost_open.png"
,
"keys"
:
"cost_bg.png,cost_close.png,cost_open.png"
,
"name"
:
"cost"
"name"
:
"cost"
},
},
{
"keys"
:
"getTimes_bg.png,getTimes_close.png,getTimes_go.png"
,
"name"
:
"getTimes"
},
{
{
"keys"
:
"index_bg.png,index_bg2.png,index_logo1.png,index_logo2.png,index_opentips.png,index_prizebg.png,index_record.png,index_rule.png,index_sharetips.png"
,
"keys"
:
"index_bg.png,index_bg2.png,index_logo1.png,index_logo2.png,index_opentips.png,index_prizebg.png,index_record.png,index_rule.png,index_sharetips.png"
,
"name"
:
"index"
"name"
:
"index"
...
@@ -24,6 +28,10 @@
...
@@ -24,6 +28,10 @@
"keys"
:
"进度条.png,进度条底.png"
,
"keys"
:
"进度条.png,进度条底.png"
,
"name"
:
"loading"
"name"
:
"loading"
},
},
{
"keys"
:
"memberGuide_bg.png,memberGuide_btn.png,memberGuide_close.png"
,
"name"
:
"memberGuide"
},
{
{
"keys"
:
"newRule_bg.png,newRule_close.png"
,
"keys"
:
"newRule_bg.png,newRule_close.png"
,
"name"
:
"newRule"
"name"
:
"newRule"
...
@@ -32,6 +40,10 @@
...
@@ -32,6 +40,10 @@
"keys"
:
"noprize_bg.png,noprize_close.png,noprize_ok.png"
,
"keys"
:
"noprize_bg.png,noprize_close.png,noprize_ok.png"
,
"name"
:
"noprize"
"name"
:
"noprize"
},
},
{
"keys"
:
"notEnoughMoney_bg.png,notEnoughMoney_btn.png,notEnoughMoney_close.png"
,
"name"
:
"notEnoughMoney"
},
{
{
"keys"
:
"playBg.jpg"
,
"keys"
:
"playBg.jpg"
,
"name"
:
"playScene"
"name"
:
"playScene"
...
@@ -43,6 +55,10 @@
...
@@ -43,6 +55,10 @@
{
{
"keys"
:
"share_bg.png,share_close.png,share_go.png"
,
"keys"
:
"share_bg.png,share_close.png,share_go.png"
,
"name"
:
"share"
"name"
:
"share"
},
{
"keys"
:
"timesNotEnough_bg.png,timesNotEnough_close.png,timesNotEnough_ok.png"
,
"name"
:
"timesNotEnough"
}
}
],
],
"path"
:
"./resource/"
"path"
:
"./resource/"
...
...
project/resource/skin.json
View file @
29d6cf5b
{
"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"
:
"share"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"share_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_bg.png"
}},{
"name"
:
"share_go"
,
"x"
:
139
,
"y"
:
458
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_go.png"
}},{
"name"
:
"share_tips"
,
"x"
:
122
,
"y"
:
299
,
"type"
:
"text"
,
"props"
:{
"text"
:
"获得一次拆盲盒机会"
,
"size"
:
28
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"share_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_close.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_bg2"
,
"x"
:
31
,
"y"
:
424
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_bg2.png"
}},{
"name"
:
"index_moneytips2"
,
"x"
:
608
,
"y"
:
1133
,
"type"
:
"text"
,
"props"
:{
"text"
:
"XX"
,
"size"
:
32
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"index_moneytips"
,
"x"
:
490
,
"y"
:
1133
,
"type"
:
"text"
,
"props"
:{
"text"
:
"我的积分:"
,
"size"
:
24
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"index_timestips2"
,
"x"
:
255
,
"y"
:
1132
,
"type"
:
"text"
,
"props"
:{
"text"
:
"XX"
,
"size"
:
32
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"index_timestips"
,
"x"
:
137
,
"y"
:
1132
,
"type"
:
"text"
,
"props"
:{
"text"
:
"剩余次数:"
,
"size"
:
24
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"index_costtips"
,
"x"
:
322
,
"y"
:
434
,
"type"
:
"text"
,
"props"
:{
"text"
:
"XX积分/次"
,
"size"
:
30
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"index_prizebg"
,
"x"
:
31
,
"y"
:
1256
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_prizebg.png"
}},{
"name"
:
"index_opentips"
,
"x"
:
200
,
"y"
:
1206
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_opentips.png"
}},{
"name"
:
"index_logo2"
,
"x"
:
173
,
"y"
:
291
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_logo2.png"
}},{
"name"
:
"index_logo1"
,
"x"
:
237
,
"y"
:
215
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_logo1.png"
}},{
"name"
:
"index_rule"
,
"x"
:
0
,
"y"
:
230
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_rule.png"
}},{
"name"
:
"index_record"
,
"x"
:
608
,
"y"
:
230
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_record.png"
}},{
"name"
:
"index_sharetips"
,
"x"
:
184
,
"y"
:
1187
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_sharetips.png"
}}]},{
"name"
:
"cost"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"cost_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"cost_bg.png"
}},{
"name"
:
"cost_tips"
,
"x"
:
133
,
"y"
:
296
,
"type"
:
"text"
,
"props"
:{
"text"
:
"消耗10积分拆开1个盲盒"
,
"size"
:
24
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"cost_open"
,
"x"
:
139
,
"y"
:
455
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"cost_open.png"
}},{
"name"
:
"cost_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"cost_close.png"
}}]},{
"name"
:
"prize"
,
"x"
:
9
,
"y"
:
447
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"prize_bg2"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_bg2.png"
}},{
"name"
:
"prize_bg"
,
"x"
:
78
,
"y"
:
23
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_bg.png"
}},{
"name"
:
"prize_tips"
,
"x"
:
251
,
"y"
:
565
,
"type"
:
"text"
,
"props"
:{
"text"
:
"请在中奖后24小时内领取~"
,
"size"
:
22
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"prize_close"
,
"x"
:
333
,
"y"
:
696
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_close.png"
}},{
"name"
:
"prize_open"
,
"x"
:
256
,
"y"
:
500
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_open.png"
}},{
"name"
:
"prize_name"
,
"x"
:
325
,
"y"
:
454
,
"type"
:
"text"
,
"props"
:{
"text"
:
"奖品名称"
,
"size"
:
24
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}}]},{
"name"
:
"noprize"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"noprize_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"noprize_bg.png"
}},{
"name"
:
"noprize_ok"
,
"x"
:
139
,
"y"
:
455
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"noprize_ok.png"
}},{
"name"
:
"noprize_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"noprize_close.png"
}}]},{
"name"
:
"newRule"
,
"x"
:
110
,
"y"
:
463
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"newRule_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"newRule_bg.png"
}},{
"name"
:
"newRule_tips"
,
"x"
:
51
,
"y"
:
158
,
"type"
:
"text"
,
"props"
:{
"text"
:
"加载中... ..."
,
"size"
:
24
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"newRule_close"
,
"x"
:
232
,
"y"
:
772
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"newRule_close.png"
}}]}]}
{
"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"
:
"share"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"share_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_bg.png"
}},{
"name"
:
"share_go"
,
"x"
:
139
,
"y"
:
458
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_go.png"
}},{
"name"
:
"share_tips"
,
"x"
:
122
,
"y"
:
299
,
"type"
:
"text"
,
"props"
:{
"text"
:
"获得一次拆盲盒机会"
,
"size"
:
28
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"share_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_close.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_bg2"
,
"x"
:
31
,
"y"
:
424
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_bg2.png"
}},{
"name"
:
"index_moneytips2"
,
"x"
:
608
,
"y"
:
1133
,
"type"
:
"text"
,
"props"
:{
"text"
:
"XX"
,
"size"
:
32
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"index_moneytips"
,
"x"
:
490
,
"y"
:
1133
,
"type"
:
"text"
,
"props"
:{
"text"
:
"我的积分:"
,
"size"
:
24
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"index_timestips2"
,
"x"
:
255
,
"y"
:
1132
,
"type"
:
"text"
,
"props"
:{
"text"
:
"XX"
,
"size"
:
32
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"index_timestips"
,
"x"
:
137
,
"y"
:
1132
,
"type"
:
"text"
,
"props"
:{
"text"
:
"剩余次数:"
,
"size"
:
24
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"index_costtips"
,
"x"
:
322
,
"y"
:
434
,
"type"
:
"text"
,
"props"
:{
"text"
:
"XX积分/次"
,
"size"
:
30
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"index_prizebg"
,
"x"
:
31
,
"y"
:
1256
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_prizebg.png"
}},{
"name"
:
"index_opentips"
,
"x"
:
200
,
"y"
:
1206
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_opentips.png"
}},{
"name"
:
"index_logo2"
,
"x"
:
173
,
"y"
:
291
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_logo2.png"
}},{
"name"
:
"index_logo1"
,
"x"
:
237
,
"y"
:
215
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_logo1.png"
}},{
"name"
:
"index_rule"
,
"x"
:
0
,
"y"
:
230
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_rule.png"
}},{
"name"
:
"index_record"
,
"x"
:
608
,
"y"
:
230
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_record.png"
}},{
"name"
:
"index_sharetips"
,
"x"
:
184
,
"y"
:
1187
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"index_sharetips.png"
}}]},{
"name"
:
"cost"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"cost_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"cost_bg.png"
}},{
"name"
:
"cost_tips"
,
"x"
:
133
,
"y"
:
296
,
"type"
:
"text"
,
"props"
:{
"text"
:
"消耗10积分拆开1个盲盒"
,
"size"
:
24
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"cost_open"
,
"x"
:
139
,
"y"
:
455
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"cost_open.png"
}},{
"name"
:
"cost_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"cost_close.png"
}}]},{
"name"
:
"prize"
,
"x"
:
9
,
"y"
:
447
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"prize_bg2"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_bg2.png"
}},{
"name"
:
"prize_bg"
,
"x"
:
78
,
"y"
:
23
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_bg.png"
}},{
"name"
:
"prize_tips"
,
"x"
:
251
,
"y"
:
565
,
"type"
:
"text"
,
"props"
:{
"text"
:
"请在中奖后24小时内领取~"
,
"size"
:
22
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"prize_close"
,
"x"
:
333
,
"y"
:
696
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_close.png"
}},{
"name"
:
"prize_open"
,
"x"
:
256
,
"y"
:
500
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"prize_open.png"
}},{
"name"
:
"prize_name"
,
"x"
:
325
,
"y"
:
454
,
"type"
:
"text"
,
"props"
:{
"text"
:
"奖品名称"
,
"size"
:
24
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}}]},{
"name"
:
"noprize"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"noprize_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"noprize_bg.png"
}},{
"name"
:
"noprize_ok"
,
"x"
:
139
,
"y"
:
455
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"noprize_ok.png"
}},{
"name"
:
"noprize_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"noprize_close.png"
}}]},{
"name"
:
"newRule"
,
"x"
:
110
,
"y"
:
463
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"newRule_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"newRule_bg.png"
}},{
"name"
:
"newRule_tips"
,
"x"
:
51
,
"y"
:
158
,
"type"
:
"text"
,
"props"
:{
"text"
:
"加载中... ..."
,
"size"
:
24
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"newRule_close"
,
"x"
:
232
,
"y"
:
772
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"newRule_close.png"
}}]}
,{
"name"
:
"timesNotEnough"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"timesNotEnough_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"timesNotEnough_bg.png"
}},{
"name"
:
"timesNotEnough_ok"
,
"x"
:
139
,
"y"
:
458
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"timesNotEnough_ok.png"
}},{
"name"
:
"timesNotEnough_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"timesNotEnough_close.png"
}}]},{
"name"
:
"notEnoughMoney"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"notEnoughMoney_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"notEnoughMoney_bg.png"
}},{
"name"
:
"notEnoughMoney_btn"
,
"x"
:
139
,
"y"
:
455
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"notEnoughMoney_btn.png"
}},{
"name"
:
"notEnoughMoney_tips"
,
"x"
:
86
,
"y"
:
293
,
"type"
:
"text"
,
"props"
:{
"text"
:
"积分不足哟,先去赚积分吧~"
,
"size"
:
28
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"notEnoughMoney_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"notEnoughMoney_close.png"
}}]},{
"name"
:
"share"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"share_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_bg.png"
}},{
"name"
:
"share_go"
,
"x"
:
139
,
"y"
:
458
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_go.png"
}},{
"name"
:
"share_tips"
,
"x"
:
122
,
"y"
:
299
,
"type"
:
"text"
,
"props"
:{
"text"
:
"获得一次拆盲盒机会"
,
"size"
:
28
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"share_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"share_close.png"
}}]},{
"name"
:
"memberGuide"
,
"x"
:
115
,
"y"
:
506
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"memberGuide_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"memberGuide_bg.png"
}},{
"name"
:
"memberGuide_btn"
,
"x"
:
150
,
"y"
:
457
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"memberGuide_btn.png"
}},{
"name"
:
"memberGuide_close"
,
"x"
:
227
,
"y"
:
637
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"memberGuide_close.png"
}}]},{
"name"
:
"getTimes"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:[{
"name"
:
"getTimes_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"getTimes_bg.png"
}},{
"name"
:
"getTimes_tips1"
,
"x"
:
131
,
"y"
:
504
,
"type"
:
"text"
,
"props"
:{
"text"
:
"最多可增加1次拆盒机会/天"
,
"size"
:
22
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"getTimes_tips2"
,
"x"
:
146
,
"y"
:
313
,
"type"
:
"text"
,
"props"
:{
"text"
:
"一次免费拆盒机会"
,
"size"
:
28
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}},{
"name"
:
"getTimes_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"getTimes_close.png"
}},{
"name"
:
"getTimes_go"
,
"x"
:
139
,
"y"
:
432
,
"type"
:
"sprite"
,
"props"
:{
"source"
:
"getTimes_go.png"
}}]}
]}
project/resource/timesNotEnough/timesNotEnough_bg.png
0 → 100644
View file @
29d6cf5b
122 KB
project/resource/timesNotEnough/timesNotEnough_close.png
0 → 100644
View file @
29d6cf5b
8.44 KB
project/resource/timesNotEnough/timesNotEnough_ok.png
0 → 100644
View file @
29d6cf5b
886 Bytes
project/src/ResJson.ts
View file @
29d6cf5b
...
@@ -16,6 +16,10 @@ export const ResJson = {
...
@@ -16,6 +16,10 @@ export const ResJson = {
"keys"
:
"cost_bg.png,cost_close.png,cost_open.png"
,
"keys"
:
"cost_bg.png,cost_close.png,cost_open.png"
,
"name"
:
"cost"
"name"
:
"cost"
},
},
{
"keys"
:
"getTimes_bg.png,getTimes_close.png,getTimes_go.png"
,
"name"
:
"getTimes"
},
{
{
"keys"
:
"index_bg.png,index_bg2.png,index_logo1.png,index_logo2.png,index_opentips.png,index_prizebg.png,index_record.png,index_rule.png,index_sharetips.png"
,
"keys"
:
"index_bg.png,index_bg2.png,index_logo1.png,index_logo2.png,index_opentips.png,index_prizebg.png,index_record.png,index_rule.png,index_sharetips.png"
,
"name"
:
"index"
"name"
:
"index"
...
@@ -24,6 +28,10 @@ export const ResJson = {
...
@@ -24,6 +28,10 @@ export const ResJson = {
"keys"
:
"进度条.png,进度条底.png"
,
"keys"
:
"进度条.png,进度条底.png"
,
"name"
:
"loading"
"name"
:
"loading"
},
},
{
"keys"
:
"memberGuide_bg.png,memberGuide_btn.png,memberGuide_close.png"
,
"name"
:
"memberGuide"
},
{
{
"keys"
:
"newRule_bg.png,newRule_close.png"
,
"keys"
:
"newRule_bg.png,newRule_close.png"
,
"name"
:
"newRule"
"name"
:
"newRule"
...
@@ -32,6 +40,10 @@ export const ResJson = {
...
@@ -32,6 +40,10 @@ export const ResJson = {
"keys"
:
"noprize_bg.png,noprize_close.png,noprize_ok.png"
,
"keys"
:
"noprize_bg.png,noprize_close.png,noprize_ok.png"
,
"name"
:
"noprize"
"name"
:
"noprize"
},
},
{
"keys"
:
"notEnoughMoney_bg.png,notEnoughMoney_btn.png,notEnoughMoney_close.png"
,
"name"
:
"notEnoughMoney"
},
{
{
"keys"
:
"playBg.jpg"
,
"keys"
:
"playBg.jpg"
,
"name"
:
"playScene"
"name"
:
"playScene"
...
@@ -43,6 +55,10 @@ export const ResJson = {
...
@@ -43,6 +55,10 @@ export const ResJson = {
{
{
"keys"
:
"share_bg.png,share_close.png,share_go.png"
,
"keys"
:
"share_bg.png,share_close.png,share_go.png"
,
"name"
:
"share"
"name"
:
"share"
},
{
"keys"
:
"timesNotEnough_bg.png,timesNotEnough_close.png,timesNotEnough_ok.png"
,
"name"
:
"timesNotEnough"
}
}
],
],
"path"
:
"./resource/"
"path"
:
"./resource/"
...
...
project/src/SkinJson.ts
View file @
29d6cf5b
...
@@ -530,7 +530,6 @@ export const SkinJson ={
...
@@ -530,7 +530,6 @@ export const SkinJson ={
}
}
},
},
{
{
"id"
:
"ruleTxt"
,
"name"
:
"newRule_tips"
,
"name"
:
"newRule_tips"
,
"x"
:
51
,
"x"
:
51
,
"y"
:
158
,
"y"
:
158
,
...
@@ -543,7 +542,6 @@ export const SkinJson ={
...
@@ -543,7 +542,6 @@ export const SkinJson ={
}
}
},
},
{
{
"id"
:
"closeBtn"
,
"name"
:
"newRule_close"
,
"name"
:
"newRule_close"
,
"x"
:
232
,
"x"
:
232
,
"y"
:
772
,
"y"
:
772
,
...
@@ -553,6 +551,229 @@ export const SkinJson ={
...
@@ -553,6 +551,229 @@ export const SkinJson ={
}
}
}
}
]
]
},
{
"name"
:
"timesNotEnough"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"timesNotEnough_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"timesNotEnough_bg.png"
}
},
{
"name"
:
"timesNotEnough_ok"
,
"x"
:
139
,
"y"
:
458
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"timesNotEnough_ok.png"
}
},
{
"name"
:
"timesNotEnough_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"timesNotEnough_close.png"
}
}
]
},
{
"name"
:
"notEnoughMoney"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"notEnoughMoney_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"notEnoughMoney_bg.png"
}
},
{
"name"
:
"notEnoughMoney_btn"
,
"x"
:
139
,
"y"
:
455
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"notEnoughMoney_btn.png"
}
},
{
"name"
:
"notEnoughMoney_tips"
,
"x"
:
86
,
"y"
:
293
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"积分不足哟,先去赚积分吧~"
,
"size"
:
28
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}
},
{
"name"
:
"notEnoughMoney_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"notEnoughMoney_close.png"
}
}
]
},
{
"name"
:
"share"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"share_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"share_bg.png"
}
},
{
"name"
:
"share_go"
,
"x"
:
139
,
"y"
:
458
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"share_go.png"
}
},
{
"name"
:
"share_tips"
,
"x"
:
122
,
"y"
:
299
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"获得一次拆盲盒机会"
,
"size"
:
28
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}
},
{
"name"
:
"share_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"share_close.png"
}
}
]
},
{
"name"
:
"memberGuide"
,
"x"
:
115
,
"y"
:
506
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"memberGuide_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"memberGuide_bg.png"
}
},
{
"name"
:
"memberGuide_btn"
,
"x"
:
150
,
"y"
:
457
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"memberGuide_btn.png"
}
},
{
"name"
:
"memberGuide_close"
,
"x"
:
227
,
"y"
:
637
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"memberGuide_close.png"
}
}
]
},
{
"name"
:
"getTimes"
,
"x"
:
126
,
"y"
:
508
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"getTimes_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"getTimes_bg.png"
}
},
{
"name"
:
"getTimes_tips1"
,
"x"
:
131
,
"y"
:
504
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"最多可增加1次拆盒机会/天"
,
"size"
:
22
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}
},
{
"name"
:
"getTimes_tips2"
,
"x"
:
146
,
"y"
:
313
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"一次免费拆盒机会"
,
"size"
:
28
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}
},
{
"name"
:
"getTimes_close"
,
"x"
:
216
,
"y"
:
635
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"getTimes_close.png"
}
},
{
"name"
:
"getTimes_go"
,
"x"
:
139
,
"y"
:
432
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"getTimes_go.png"
}
}
]
}
}
]
]
}
}
\ No newline at end of file
project/src/panels/getTimes.ts
0 → 100644
View file @
29d6cf5b
import
{
RES
}
from
"../../module/RES"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
centerTextField
from
"../common/centerTextField"
;
import
getObject
from
"../common/getObject"
;
let
section
;
export
class
getTimesPanel
extends
Panel
{
share_share_go
(){
console
.
log
(
'share_share_go'
);
}
get
groupNames
()
{
return
[
"getTimes"
]
}
get
skinName
()
{
return
"getTimes"
}
initUi
()
{
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
centerTextField
(
getObject
(
this
,
'cost_tips'
),
496
);
}
initEvents
()
{
super
.
initEvents
();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
removeEvents
()
{
super
.
removeEvents
();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
protected
get
closeBtns
():
any
[]
{
return
[
getObject
(
this
,
'cost_close'
)]
}
}
project/src/panels/memberGuide.ts
0 → 100644
View file @
29d6cf5b
import
{
RES
}
from
"../../module/RES"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
centerTextField
from
"../common/centerTextField"
;
import
getObject
from
"../common/getObject"
;
let
section
;
export
class
memberGuidePanel
extends
Panel
{
share_share_go
(){
console
.
log
(
'share_share_go'
);
}
get
groupNames
()
{
return
[
"cost"
]
}
get
skinName
()
{
return
"cost"
}
initUi
()
{
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
centerTextField
(
getObject
(
this
,
'cost_tips'
),
496
);
}
initEvents
()
{
super
.
initEvents
();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
removeEvents
()
{
super
.
removeEvents
();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
protected
get
closeBtns
():
any
[]
{
return
[
getObject
(
this
,
'cost_close'
)]
}
}
project/src/panels/notEnoughMoney.ts
0 → 100644
View file @
29d6cf5b
import
{
RES
}
from
"../../module/RES"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
centerTextField
from
"../common/centerTextField"
;
import
getObject
from
"../common/getObject"
;
let
section
;
export
class
notEnoughMoneyPanel
extends
Panel
{
share_share_go
(){
console
.
log
(
'share_share_go'
);
}
get
groupNames
()
{
return
[
"notEnoughMoney"
]
}
get
skinName
()
{
return
"notEnoughMoney"
}
initUi
()
{
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
// centerTextField(getObject(this,'cost_tips'),496);
}
initEvents
()
{
super
.
initEvents
();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
removeEvents
()
{
super
.
removeEvents
();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
protected
get
closeBtns
():
any
[]
{
return
[
getObject
(
this
,
'notEnoughMoney_close'
)]
}
}
project/src/panels/timesNotEnough.ts
0 → 100644
View file @
29d6cf5b
import
{
RES
}
from
"../../module/RES"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
centerTextField
from
"../common/centerTextField"
;
import
getObject
from
"../common/getObject"
;
let
section
;
export
class
timesNotEnoughPanel
extends
Panel
{
share_share_go
(){
console
.
log
(
'share_share_go'
);
}
get
groupNames
()
{
return
[
"cost"
]
}
get
skinName
()
{
return
"cost"
}
initUi
()
{
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
centerTextField
(
getObject
(
this
,
'cost_tips'
),
496
);
}
initEvents
()
{
super
.
initEvents
();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
removeEvents
()
{
super
.
removeEvents
();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
protected
get
closeBtns
():
any
[]
{
return
[
getObject
(
this
,
'cost_close'
)]
}
}
project/src/scenes/IndexScene.ts
View file @
29d6cf5b
...
@@ -4,6 +4,7 @@ import { Scene } from "../../module/views/Scene";
...
@@ -4,6 +4,7 @@ import { Scene } from "../../module/views/Scene";
import
getObject
from
"../common/getObject"
;
import
getObject
from
"../common/getObject"
;
import
{
CostPanel
}
from
"../panels/cost"
;
import
{
CostPanel
}
from
"../panels/cost"
;
import
{
NoPrizePanel
}
from
"../panels/noprize"
;
import
{
NoPrizePanel
}
from
"../panels/noprize"
;
import
{
notEnoughMoneyPanel
}
from
"../panels/notEnoughMoney"
;
import
{
PrizePanel
}
from
"../panels/prize"
;
import
{
PrizePanel
}
from
"../panels/prize"
;
import
{
SharePanel
}
from
"../panels/share"
;
import
{
SharePanel
}
from
"../panels/share"
;
import
{
RulePanel
}
from
"../template/RulePanel"
;
import
{
RulePanel
}
from
"../template/RulePanel"
;
...
@@ -26,7 +27,7 @@ export class IndexScene extends Scene {
...
@@ -26,7 +27,7 @@ export class IndexScene extends Scene {
start
()
{
start
()
{
super
.
start
();
super
.
start
();
showPanel
(
Rule
Panel
);
showPanel
(
notEnoughMoney
Panel
);
getObject
(
this
,
'index_sharetips'
).
visible
=
false
;
getObject
(
this
,
'index_sharetips'
).
visible
=
false
;
this
.
initContainer
();
this
.
initContainer
();
this
.
initmask
();
this
.
initmask
();
...
...
project/src/template/RulePanel.ts
View file @
29d6cf5b
import
{
RES
}
from
"../../module/RES"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
getObject
from
"../common/getObject"
;
import
{
Tools
}
from
"../Tools"
;
import
{
Tools
}
from
"../Tools"
;
import
{
getWebData
,
sendWebNet
}
from
"../WebNet"
;
import
{
getWebData
,
sendWebNet
}
from
"../WebNet"
;
import
{
WebNetName
}
from
"../WebNetName"
;
import
{
WebNetName
}
from
"../WebNetName"
;
...
@@ -11,6 +12,8 @@ export class RulePanel extends Panel {
...
@@ -11,6 +12,8 @@ export class RulePanel extends Panel {
super
.
initUi
();
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
this
.
ruleTxt
=
getObject
(
this
,
'newRule_tips'
)
this
.
closeBtn
=
getObject
(
this
,
'newRule_close'
)
}
}
get
groupNames
()
{
return
[
"newRule"
]
}
get
groupNames
()
{
return
[
"newRule"
]
}
...
...
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