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
a7b04ec8
Commit
a7b04ec8
authored
Nov 08, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
277d693d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
RedBombAlertPanel.ts
egret/src/panels/RedBombAlertPanel.ts
+1
-21
No files found.
egret/src/panels/RedBombAlertPanel.ts
View file @
a7b04ec8
...
@@ -2,11 +2,7 @@ import getResPath from "../../libs/new_tc/getResPath";
...
@@ -2,11 +2,7 @@ import getResPath from "../../libs/new_tc/getResPath";
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
{
getRedBombTimes
}
from
"../getRedBombAward"
;
import
{
getRedBombTimes
}
from
"../getRedBombAward"
;
import
{
loadSvga
}
from
"../loadSvga"
;
import
{
loadSvga
}
from
"../loadSvga"
;
<<<<<<<
HEAD
import
getResPath
from
"../../libs/new_tc/getResPath"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
=======
>>>>>>>
9
f8160d0a4c64b32d674e876fa7c9c5680a3de02
export
default
class
RedBombAlertPanel
extends
Panel
{
export
default
class
RedBombAlertPanel
extends
Panel
{
async
start
(
data
)
{
async
start
(
data
)
{
...
@@ -25,33 +21,16 @@ export default class RedBombAlertPanel extends Panel {
...
@@ -25,33 +21,16 @@ export default class RedBombAlertPanel extends Panel {
mv
.
once
(
egret
.
Event
.
COMPLETE
,
()
=>
{
mv
.
once
(
egret
.
Event
.
COMPLETE
,
()
=>
{
mv
.
stop
();
mv
.
stop
();
this
.
removeChild
(
mv
);
this
.
removeChild
(
mv
);
<<<<<<<
HEAD
const
data
=
DataManager
.
ins
.
getData
(
'hc_redBombAward'
).
data
;
const
data
=
DataManager
.
ins
.
getData
(
'hc_redBombAward'
).
data
;
if
(
data
){
if
(
data
){
this
.
playPrizeAni
();
this
.
playPrizeAni
();
}
else
{
}
else
{
this
.
playNoPrizeAni
();
this
.
playNoPrizeAni
();
}
}
=======
egret
.
Tween
.
get
(
this
[
'group'
]).
to
({
alpha
:
0
},
300
).
call
(()
=>
{
this
.
removeChild
(
this
[
'group'
]);
});
// this.playNoPrizeAni();
this
.
playPrizeAni
();
>>>>>>>
9
f8160d0a4c64b32d674e876fa7c9c5680a3de02
},
this
);
},
this
);
});
});
}
}
playPrizeAni
()
{
loadSvga
(
getResPath
()
+
'resource/assets/svgas/redbomb_prize.svga'
).
then
(
async
(
mv
:
any
)
=>
{
this
.
addChild
(
mv
);
mv
.
once
(
egret
.
Event
.
COMPLETE
,
()
=>
{
mv
.
stop
();
this
.
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
this
.
hidePanel
()},
this
);
},
this
);
});
}
playNoPrizeAni
()
{
playNoPrizeAni
()
{
loadSvga
(
getResPath
()
+
'resource/assets/svgas/redbomb_noprize.svga'
).
then
(
async
(
mv
:
any
)
=>
{
loadSvga
(
getResPath
()
+
'resource/assets/svgas/redbomb_noprize.svga'
).
then
(
async
(
mv
:
any
)
=>
{
//去掉文案
//去掉文案
...
@@ -71,6 +50,7 @@ export default class RedBombAlertPanel extends Panel {
...
@@ -71,6 +50,7 @@ export default class RedBombAlertPanel extends Panel {
this
.
addChild
(
mv
);
this
.
addChild
(
mv
);
mv
.
once
(
egret
.
Event
.
COMPLETE
,
()
=>
{
mv
.
once
(
egret
.
Event
.
COMPLETE
,
()
=>
{
mv
.
stop
();
mv
.
stop
();
this
.
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
this
.
hidePanel
()},
this
);
},
this
);
},
this
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
mv
.
setImage
(
"img_2349"
,
"//yun.dui88.com/images/201910/e6pmpk2pne.png"
)
mv
.
setImage
(
"img_2349"
,
"//yun.dui88.com/images/201910/e6pmpk2pne.png"
)
...
...
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