Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaoleTuia
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
王剑峰
xiaoxiaoleTuia
Commits
a50b350b
Commit
a50b350b
authored
Feb 24, 2020
by
张华挺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main
parent
06bdf838
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
2 deletions
+65
-2
chongxinchuangguan1.png
egret/resource/assets/faild/chongxinchuangguan1.png
+0
-0
chongxinchuangguan2.png
egret/resource/assets/faild/chongxinchuangguan2.png
+0
-0
chongxinchuangguan3.png
egret/resource/assets/faild/chongxinchuangguan3.png
+0
-0
default.res.json
egret/resource/default.res.json
+19
-0
FailSkin.exml
egret/resource/skins/FailSkin.exml
+29
-2
FailedPanel.ts
egret/src/panels/FailedPanel.ts
+17
-0
No files found.
egret/resource/assets/faild/chongxinchuangguan1.png
0 → 100644
View file @
a50b350b
40.3 KB
egret/resource/assets/faild/chongxinchuangguan2.png
0 → 100644
View file @
a50b350b
41.2 KB
egret/resource/assets/faild/chongxinchuangguan3.png
0 → 100644
View file @
a50b350b
41.3 KB
egret/resource/default.res.json
View file @
a50b350b
...
...
@@ -111,6 +111,10 @@
{
"keys"
:
"购买锤子_png,购买炸弹_png,购买步数增加_png,yuanbaoBuyBtn_png,kanshipinmianfeihuoqu_png"
,
"name"
:
"videobuy"
},
{
"name"
:
"preload"
,
"keys"
:
"chongxinchuangguan1_png,chongxinchuangguan2_png,chongxinchuangguan3_png"
}
],
"resources"
:
[
...
...
@@ -2930,6 +2934,21 @@
"url"
:
"assets/prize/prizePanelbg.png"
,
"type"
:
"image"
,
"name"
:
"prizePanelbg_png"
},
{
"name"
:
"chongxinchuangguan1_png"
,
"type"
:
"image"
,
"url"
:
"assets/faild/chongxinchuangguan1.png"
},
{
"name"
:
"chongxinchuangguan2_png"
,
"type"
:
"image"
,
"url"
:
"assets/faild/chongxinchuangguan2.png"
},
{
"name"
:
"chongxinchuangguan3_png"
,
"type"
:
"image"
,
"url"
:
"assets/faild/chongxinchuangguan3.png"
}
]
}
\ No newline at end of file
egret/resource/skins/FailSkin.exml
View file @
a50b350b
...
...
@@ -11,15 +11,42 @@
</e:skinName>
</e:Button>
<e:Button
id=
"againBtn"
label=
""
y=
"736"
horizontalCenter=
"0"
>
<e:Button
id=
"againBtn
3
"
label=
""
y=
"736"
horizontalCenter=
"0"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"chongxinchuangguan
_png"
source.down=
"chongxinchuangguan_png"
source.disabled=
"chongxinchuangguan
_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"chongxinchuangguan
3_png"
source.down=
"chongxinchuangguan3_png"
source.disabled=
"chongxinchuangguan3
_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"againBtn2"
label=
""
y=
"736"
horizontalCenter=
"0"
visible=
"false"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"chongxinchuangguan2_png"
source.down=
"chongxinchuangguan2_png"
source.disabled=
"chongxinchuangguan2_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"againBtn1"
label=
""
y=
"736"
horizontalCenter=
"0"
visible=
"false"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"chongxinchuangguan1_png"
source.down=
"chongxinchuangguan1_png"
source.disabled=
"chongxinchuangguan1_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"againBtn"
label=
""
y=
"736"
horizontalCenter=
"0"
visible=
"false"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"chongxinchuangguan_png"
source.down=
"chongxinchuangguan_png"
source.disabled=
"chongxinchuangguan_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"videoBtn"
label=
""
y=
"617.5"
horizontalCenter=
"0"
visible=
"false"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
...
...
egret/src/panels/FailedPanel.ts
View file @
a50b350b
...
...
@@ -46,6 +46,23 @@ export default class FailedPanel extends Panel {
window
[
"slotid"
]
)
},
this
);
// 增加重新闯关倒计时
let
time
=
3
let
againTimer
=
setInterval
(()
=>
{
time
--
if
(
time
>
0
)
{
this
[
`againBtn
${
time
+
1
}
`
].
visible
=
false
this
[
`againBtn
${
time
}
`
].
visible
=
true
}
else
{
this
[
'againBtn1'
].
visible
=
false
this
[
'againBtn'
].
visible
=
true
clearInterval
(
againTimer
)
time
=
3
}
},
1000
)
}
else
{
this
[
'againBtn'
].
visible
=
true
this
[
'againBtn3'
].
visible
=
false
}
}
...
...
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