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
7e745786
Commit
7e745786
authored
Feb 03, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L
parent
ca2be986
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
redBombTip.svga
egret/resource/assets/svgas/redBombTip.svga
+0
-0
RedBombTips2Skin.exml
egret/resource/skins/RedBombTips2Skin.exml
+3
-3
BombTips2Panel.ts
egret/src/panels/BombTips2Panel.ts
+13
-13
No files found.
egret/resource/assets/svgas/redBombTip.svga
View file @
7e745786
No preview for this file type
egret/resource/skins/RedBombTips2Skin.exml
View file @
7e745786
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"RedBombTipsSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Group
id=
"con1"
/>
<e:Image
id=
"rulebtn"
source=
"redbagtips活动规则_png"
y=
"
81
4"
horizontalCenter=
"0"
/>
<e:Image
source=
"redbagtips_elexx_png"
x=
"210"
y=
"50"
/>
<e:Group
id=
"btn"
y=
"
69
3.31"
horizontalCenter=
"0"
>
<e:Image
id=
"rulebtn"
source=
"redbagtips活动规则_png"
y=
"
100
4"
horizontalCenter=
"0"
/>
<e:Image
source=
"redbagtips_elexx_png"
x=
"210"
y=
"50"
visible=
"false"
/>
<e:Group
id=
"btn"
y=
"
88
3.31"
horizontalCenter=
"0"
>
<e:Image
source=
"redbagtips按钮_png"
y=
"0"
x=
"0"
/>
<e:Label
text=
"开启作战"
verticalCenter=
"-3.5"
horizontalCenter=
"0"
size=
"38"
strokeColor=
"0x0389ff"
stroke=
"2"
fontFamily=
"FZY3JW"
/>
</e:Group>
...
...
egret/src/panels/BombTips2Panel.ts
View file @
7e745786
...
...
@@ -15,27 +15,27 @@ export default class BombTips2Panel extends Panel {
this
.
showlog
();
loadSvga
(
getResPath
()
+
'resource/assets/svgas/redBombTip.svga'
).
then
(
(
mv
:
egret
.
DisplayObject
)
=>
{
mv
.
y
=
-
190
;
//
mv.y = -190;
this
[
'con1'
].
addChild
(
mv
);
this
.
mv
=
mv
;
mv
.
addEventListener
(
egret
.
Event
.
COMPLETE
,
()
=>
{
// @ts-ignore
mv
.
gotoAndPlay
(
45
,
true
);
mv
.
gotoAndPlay
(
120
,
true
);
},
this
);
}
);
loadSvga
(
getResPath
()
+
'resource/assets/svgas/redBombTip2.svga'
).
then
(
(
mv
:
egret
.
DisplayObject
)
=>
{
mv
.
y
=
0
;
this
[
'con1'
].
addChild
(
mv
);
this
.
mv
=
mv
;
mv
.
addEventListener
(
egret
.
Event
.
COMPLETE
,
()
=>
{
// @ts-ignore
mv
.
gotoAndPlay
(
45
,
true
);
},
this
);
}
);
//
loadSvga(getResPath() + 'resource/assets/svgas/redBombTip2.svga').then(
//
(mv: egret.DisplayObject) => {
//
mv.y = 0;
//
this['con1'].addChild(mv);
//
this.mv = mv;
//
mv.addEventListener(egret.Event.COMPLETE, () => {
//
// @ts-ignore
//
mv.gotoAndPlay(45, true);
//
}, this);
//
}
//
);
this
.
touchChildren
=
this
.
touchEnabled
=
false
;
await
RES
.
getResAsync
(
'effect1_json'
);
...
...
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