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
d950ee68
Commit
d950ee68
authored
Oct 26, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6fe6cbeb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
7 deletions
+24
-7
TurntablePrizeSkin.exml
egret/resource/skins/TurntablePrizeSkin.exml
+3
-3
Turntable.ts
egret/src/panels/TurntablePanel/Turntable.ts
+4
-1
TurntablePrize2Panel.ts
egret/src/panels/TurntablePanel/TurntablePrize2Panel.ts
+1
-0
TurntablePrizePanel.ts
egret/src/panels/TurntablePanel/TurntablePrizePanel.ts
+16
-3
No files found.
egret/resource/skins/TurntablePrizeSkin.exml
View file @
d950ee68
...
...
@@ -2,9 +2,9 @@
<e:Skin
class=
"TurntablePrize"
width=
"750"
height=
"1624"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16e02c1ad57"
/>
<e:Component
y=
"788"
skinName=
"ADSmallSkin"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"light2"
source=
"invitebg2_png"
x=
"376"
y=
"
31
7"
anchorOffsetX=
"356"
anchorOffsetY=
"296"
/>
<e:Image
id=
"light1"
source=
"invitebg2_png"
x=
"386"
y=
"3
2
7"
anchorOffsetX=
"356"
anchorOffsetY=
"296"
/>
<e:Group
id=
"container"
y=
"-
45
.45"
x=
"-3"
/>
<e:Image
id=
"light2"
source=
"invitebg2_png"
x=
"376"
y=
"
29
7"
anchorOffsetX=
"356"
anchorOffsetY=
"296"
/>
<e:Image
id=
"light1"
source=
"invitebg2_png"
x=
"386"
y=
"3
0
7"
anchorOffsetX=
"356"
anchorOffsetY=
"296"
/>
<e:Group
id=
"container"
y=
"-
98
.45"
x=
"-3"
/>
<e:Image
source=
"turprizebg_png"
y=
"161"
horizontalCenter=
"0.5"
/>
<e:Image
width=
"508"
height=
"225"
source=
"{data.url}"
horizontalCenter=
"0"
y=
"355.76"
/>
<e:Button
id=
"closeBtn"
label=
""
y=
"242.88"
x=
"615"
>
...
...
egret/src/panels/TurntablePanel/Turntable.ts
View file @
d950ee68
...
...
@@ -71,7 +71,10 @@ export default class Turntable extends Panel {
// Loading.instace.show();
// GDispatcher.dispatchEvent('queryPrize');
//1换个姿势再来一次2 奖励溜走了3 离奖励只差一毫米
PanelCtrl
.
instance
.
show
(
'TurnPrize2Panel'
);
loadSvga
(
getResPath
()
+
'resource/assets/svgas/turnprize.svga'
).
then
(
async
(
mv
:
any
)
=>
{
// await wait(100);
PanelCtrl
.
instance
.
show
(
'TurnPrizePanel'
,
{
mv
:
mv
});
});
}
// 设置全部按钮是否可以点击
...
...
egret/src/panels/TurntablePanel/TurntablePrize2Panel.ts
View file @
d950ee68
...
...
@@ -35,6 +35,7 @@ export default class TurnPrize2Panel extends Panel {
PanelCtrl
.
instance
.
show
(
'turnTable'
,
{
onceAgain
:
1
,
mv
:
mv
});
})
}
onTap_btn2
()
{
gotoNextLevel
()
}
...
...
egret/src/panels/TurntablePanel/TurntablePrizePanel.ts
View file @
d950ee68
...
...
@@ -5,14 +5,27 @@ import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl";
import
{
loadSvga
}
from
"../../loadSvga"
;
import
getResPath
from
"../../../libs/new_tc/getResPath"
;
export
default
class
TurnPrizePanel
extends
Panel
{
start
(
data
)
{
super
.
start
();
this
.
showlog
();
this
.
data
.
url
=
"http://yun.duiba.com.cn/db_games/1022/111.png"
;
// this.data.url = "http://yun.duiba.com.cn/db_games/1022/111.png";
this
[
'light1'
].
visible
=
this
[
'light2'
].
visible
=
false
;
addAdComp
(
84
,
788
,
this
);
data
.
mv
.
gotoAndPlay
(
10
,
true
)
data
.
mv
.
once
(
egret
.
Event
.
COMPLETE
,
()
=>
{
data
.
mv
.
stop
(
1
);
this
.
playBgAni
();
},
this
);
this
[
'container'
].
addChild
(
data
.
mv
);
}
playBgAni
()
{
this
[
'light1'
].
visible
=
this
[
'light2'
].
visible
=
true
;
const
time
=
7000
;
egret
.
Tween
.
get
(
this
[
'light1'
],
{
loop
:
true
}).
to
({
rotation
:
360
},
time
);
egret
.
Tween
.
get
(
this
[
'light2'
],
{
loop
:
true
}).
to
({
rotation
:
-
360
},
time
);
}
showlog
()
{
...
...
@@ -33,7 +46,7 @@ export default class TurnPrizePanel extends Panel {
loadSvga
(
getResPath
()
+
'resource/assets/svgas/turntable.svga'
).
then
(
async
(
mv
:
any
)
=>
{
// await wait(100);
PanelCtrl
.
instance
.
show
(
'turnTable'
,
{
onceAgain
:
1
,
mv
:
mv
});
})
})
;
}
onTap_btn2
()
{
gotoNextLevel
()
...
...
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