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
68a669a0
Commit
68a669a0
authored
Feb 05, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
9c9de6b2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
redbomb.svga
egret/resource/assets/svgas/redbomb.svga
+0
-0
redbomb_noprize.svga
egret/resource/assets/svgas/redbomb_noprize.svga
+0
-0
redbomb_prize.svga
egret/resource/assets/svgas/redbomb_prize.svga
+0
-0
RedBagAni.ts
egret/src/mapScene/RedBagAni.ts
+5
-4
RedBombAlertPanel.ts
egret/src/panels/RedBombAlertPanel.ts
+2
-2
No files found.
egret/resource/assets/svgas/redbomb.svga
View file @
68a669a0
No preview for this file type
egret/resource/assets/svgas/redbomb_noprize.svga
View file @
68a669a0
No preview for this file type
egret/resource/assets/svgas/redbomb_prize.svga
View file @
68a669a0
No preview for this file type
egret/src/mapScene/RedBagAni.ts
View file @
68a669a0
...
...
@@ -24,12 +24,13 @@ export default class RedBagAni {
return
0
;
}
}
let
iconCount
:
number
=
0
;
export
const
createRedBagIcon
=
(
parent
)
=>
{
const
icon
=
RES
.
getRes
(
'mapredbagicom_png'
);
/// TODO 洒出的图片
// const icon = RES.getRes('mapredbagicom_png'); /// TODO 洒出的图片
const
icon
:
egret
.
Texture
=
RES
.
getRes
(
'chocolate'
+
(
iconCount
++%
4
)
+
"_png"
);
const
bmp
=
new
egret
.
Bitmap
(
icon
);
bmp
.
anchorOffsetX
=
32
;
bmp
.
anchorOffsetY
=
33
;
bmp
.
anchorOffsetX
=
icon
.
textureWidth
/
2
//
32;
bmp
.
anchorOffsetY
=
icon
.
textureHeight
/
2
//
33;
parent
.
addChild
(
bmp
);
return
bmp
;
}
\ No newline at end of file
egret/src/panels/RedBombAlertPanel.ts
View file @
68a669a0
...
...
@@ -47,7 +47,7 @@ export default class RedBombAlertPanel extends Panel {
playNoPrizeAni
()
{
loadSvga
(
getResPath
()
+
'resource/assets/svgas/redbomb_noprize.svga'
).
then
(
async
(
mv
:
any
)
=>
{
mv
.
y
=
this
.
alertHeight
+
100
;
mv
.
y
=
this
.
alertHeight
//
+ 100;
//去掉文案
egret
.
Tween
.
get
(
this
[
'group'
]).
to
({
alpha
:
0
},
300
);
this
.
addChild
(
mv
);
...
...
@@ -117,7 +117,7 @@ export default class RedBombAlertPanel extends Panel {
setTimeout
(()
=>
{
this
.
numsgroup
.
visible
=
isShow
;
},
1700
);
mv
.
setImage
(
"img_
12064
"
,
img
);
mv
.
setImage
(
"img_
5085
"
,
img
);
},
100
)
});
}
...
...
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