Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
5734288e
Commit
5734288e
authored
Nov 08, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
829f2075
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
31 deletions
+15
-31
MapSkin.exml
egret/resource/skins/MapSkin.exml
+1
-1
RedBombAlertPanel.ts
egret/src/panels/RedBombAlertPanel.ts
+13
-0
home.json
mock/happyclear/home.json
+1
-30
No files found.
egret/resource/skins/MapSkin.exml
View file @
5734288e
...
@@ -152,7 +152,7 @@
...
@@ -152,7 +152,7 @@
<e:Image
id=
"actsShowBtn"
source=
"map2+_png"
x=
"-7.64"
y=
"5.45"
/>
<e:Image
id=
"actsShowBtn"
source=
"map2+_png"
x=
"-7.64"
y=
"5.45"
/>
<e:Image
id=
"actTips"
source=
"maphot_png"
x=
"91.52"
y=
"15.72"
/>
<e:Image
id=
"actTips"
source=
"maphot_png"
x=
"91.52"
y=
"15.72"
/>
</e:Group>
</e:Group>
<e:Group
id=
"settingsx"
x=
"30"
scaleX=
"1.4"
scaleY=
"1.4"
bottom=
"23"
locked=
"true"
>
<e:Group
id=
"settingsx"
x=
"30"
scaleX=
"1.4"
scaleY=
"1.4"
bottom=
"23"
touchEnabled=
"false"
locked=
"true"
>
<e:Group
id=
"settingGroup"
x=
"2"
y=
"6.08"
visible=
"false"
>
<e:Group
id=
"settingGroup"
x=
"2"
y=
"6.08"
visible=
"false"
>
<e:Image
id=
"settingbg"
source=
"设置bg_png"
y=
"0"
x=
"0"
scale9Grid=
"9,84,54,76"
height=
"231"
/>
<e:Image
id=
"settingbg"
source=
"设置bg_png"
y=
"0"
x=
"0"
scale9Grid=
"9,84,54,76"
height=
"231"
/>
<e:Button
id=
"soundBtn"
label=
""
y=
"59.65"
horizontalCenter=
"0.5"
>
<e:Button
id=
"soundBtn"
label=
""
y=
"59.65"
horizontalCenter=
"0.5"
>
...
...
egret/src/panels/RedBombAlertPanel.ts
View file @
5734288e
...
@@ -20,6 +20,19 @@ export default class RedBombAlertPanel extends Panel {
...
@@ -20,6 +20,19 @@ export default class RedBombAlertPanel extends Panel {
this
[
'group'
].
alpha
=
0
;
this
[
'group'
].
alpha
=
0
;
egret
.
Tween
.
get
(
this
[
'group'
]).
wait
(
1500
).
to
({
alpha
:
1
},
300
);
egret
.
Tween
.
get
(
this
[
'group'
]).
wait
(
1500
).
to
({
alpha
:
1
},
300
);
loadSvga
(
getResPath
()
+
'resource/assets/svgas/redbomb.svga'
).
then
(
async
(
mv
:
any
)
=>
{
loadSvga
(
getResPath
()
+
'resource/assets/svgas/redbomb.svga'
).
then
(
async
(
mv
:
any
)
=>
{
this
.
addChild
(
mv
);
mv
.
once
(
egret
.
Event
.
COMPLETE
,
()
=>
{
mv
.
stop
();
this
.
removeChild
(
mv
);
this
.
playNoPrizeAni
();
},
this
);
});
}
playNoPrizeAni
(){
loadSvga
(
getResPath
()
+
'resource/assets/svgas/redbomb_noprize.svga'
).
then
(
async
(
mv
:
any
)
=>
{
this
.
addChild
(
mv
);
this
.
addChild
(
mv
);
mv
.
once
(
egret
.
Event
.
COMPLETE
,
()
=>
{
mv
.
once
(
egret
.
Event
.
COMPLETE
,
()
=>
{
mv
.
stop
();
mv
.
stop
();
...
...
mock/happyclear/home.json
View file @
5734288e
{
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1573183122904
,
"data"
:{
"wealth"
:
40
,
"totalStars"
:
42
,
"levels"
:[{
"levelNum"
:
1
,
"maxScore"
:
99999
,
"stars"
:
3
},{
"levelNum"
:
2
,
"maxScore"
:
99999
,
"stars"
:
3
},{
"levelNum"
:
3
,
"maxScore"
:
12030
,
"stars"
:
3
},{
"levelNum"
:
4
,
"maxScore"
:
17710
,
"stars"
:
3
},{
"levelNum"
:
5
,
"maxScore"
:
16260
,
"stars"
:
3
},{
"levelNum"
:
6
,
"maxScore"
:
22110
,
"stars"
:
2
},{
"levelNum"
:
7
,
"maxScore"
:
17740
,
"stars"
:
2
},{
"levelNum"
:
8
,
"maxScore"
:
19950
,
"stars"
:
3
},{
"levelNum"
:
9
,
"maxScore"
:
31360
,
"stars"
:
3
},{
"levelNum"
:
10
,
"maxScore"
:
26470
,
"stars"
:
3
},{
"levelNum"
:
11
,
"maxScore"
:
59190
,
"stars"
:
3
},{
"levelNum"
:
12
,
"maxScore"
:
37400
,
"stars"
:
3
},{
"levelNum"
:
13
,
"maxScore"
:
25870
,
"stars"
:
2
},{
"levelNum"
:
14
,
"maxScore"
:
49810
,
"stars"
:
3
},{
"levelNum"
:
15
,
"maxScore"
:
31930
,
"stars"
:
3
}],
"remainProp"
:[{
"type"
:
3
,
"num"
:
1
}],
"remainEnargy"
:
5
,
"askForEnergy"
:
0
,
"canReceiveTreasureBoxNum"
:
1
,
"nextRangeStarsNum"
:
30
,
"isGetAllTreasureBox"
:
false
,
"refectionCountdown"
:
0
}}
"success"
:
true
,
\ No newline at end of file
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1566885811031
,
"data"
:
{
"wealth"
:
7960
,
"totalStars"
:
145
,
"levels"
:
[
],
"remainProp"
:
[
{
"type"
:
2
,
"num"
:
1
},
{
"type"
:
3
,
"num"
:
2
},
{
"type"
:
4
,
"num"
:
3
}
],
"remainEnargy"
:
99
,
"askForEnergy"
:
false
,
"canReceiveTreasureBoxNum"
:
10
,
"nextRangeStarsNum"
:
150
}
}
\ No newline at end of file
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