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
96c1421f
Commit
96c1421f
authored
Oct 26, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f1492d59
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
14 deletions
+39
-14
turnprize_icon1.png
egret/resource/assets/turntableprize/turnprize_icon1.png
+0
-0
turnprize_icon2.png
egret/resource/assets/turntableprize/turnprize_icon2.png
+0
-0
turnprize_icon3.png
egret/resource/assets/turntableprize/turnprize_icon3.png
+0
-0
default.res.json
egret/resource/default.res.json
+10
-5
TurntablePrizeSkin.exml
egret/resource/skins/TurntablePrizeSkin.exml
+3
-4
TurntablePrizePanel.ts
egret/src/panels/TurntablePanel/TurntablePrizePanel.ts
+23
-2
turnabledojoin.json
mock/happyclear/turnabledojoin.json
+3
-3
No files found.
egret/resource/assets/turntableprize/turnprize_icon1.png
View replaced file @
f1492d59
View file @
96c1421f
61.7 KB
|
W:
|
H:
54.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/turntableprize/turnprize_icon2.png
View replaced file @
f1492d59
View file @
96c1421f
54.6 KB
|
W:
|
H:
71.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/turntableprize/turnprize_icon3.png
View replaced file @
f1492d59
View file @
96c1421f
71.6 KB
|
W:
|
H:
61.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/default.res.json
View file @
96c1421f
...
...
@@ -61,7 +61,7 @@
"name"
:
"prize2"
},
{
"keys"
:
"startpanel通关条件_png,startpanel数量_png,startpanel数量 副本 3_png,startpanel目标33_png,startpanel目标3_png,startpanel按钮_png,startpanel_icon3_png,startpanel_icon2_png,startpanel_icon1_png,startpanel_icon_png,startpanel_ele9_png,startpanel_ele8_png,startpanel_ele7_png,startpanel_ele6_png,startpanel_ele5_png,startpanel_ele4_png,startpanel_ele3_png,startpanel_ele2_png,startpanel_ele1_png,startpanel_ele0_png,startpanel_block2_png,startpanel_bg2_png,startpanel_avatar_png
,startpanel_ele10_png
"
,
"keys"
:
"startpanel通关条件_png,startpanel数量_png,startpanel数量 副本 3_png,startpanel目标33_png,startpanel目标3_png,startpanel按钮_png,startpanel_icon3_png,startpanel_icon2_png,startpanel_icon1_png,startpanel_icon_png,startpanel_ele9_png,startpanel_ele8_png,startpanel_ele7_png,startpanel_ele6_png,startpanel_ele5_png,startpanel_ele4_png,startpanel_ele3_png,startpanel_ele2_png,startpanel_ele1_png,startpanel_ele0_png,startpanel_block2_png,startpanel_bg2_png,startpanel_avatar_png"
,
"name"
:
"startpanel"
},
{
...
...
@@ -2759,14 +2759,19 @@
"name"
:
"ele10_png"
},
{
"url"
:
"assets/
mainScene/ele1
1.png"
,
"url"
:
"assets/
turntableprize/turnprize_icon
1.png"
,
"type"
:
"image"
,
"name"
:
"
ele1
1_png"
"name"
:
"
turnprize_icon
1_png"
},
{
"url"
:
"assets/
mainScene/ele10
.png"
,
"url"
:
"assets/
turntableprize/turnprize_icon2
.png"
,
"type"
:
"image"
,
"name"
:
"ele10_png"
"name"
:
"turnprize_icon2_png"
},
{
"url"
:
"assets/turntableprize/turnprize_icon3.png"
,
"type"
:
"image"
,
"name"
:
"turnprize_icon3_png"
}
]
}
\ No newline at end of file
egret/resource/skins/TurntablePrizeSkin.exml
View file @
96c1421f
...
...
@@ -6,13 +6,12 @@
<e:Image
id=
"light1"
source=
"invitebg2_png"
x=
"386"
y=
"307"
anchorOffsetX=
"356"
anchorOffsetY=
"296"
/>
<e:Group
id=
"container"
y=
"-98.45"
x=
"-3"
/>
<e:Image
id=
"bg"
source=
"turprizebg_png"
y=
"161"
horizontalCenter=
"0.5"
/>
<e:Image
id=
"img"
width=
"508"
height=
"225"
source=
"{data.url}"
horizontalCenter=
"0"
y=
"355.76"
/>
<e:Image
id=
"prop"
horizontalCenter=
"0"
y=
"333.03"
source=
"turnprize_icon1_png"
scaleY=
"0.8"
scaleX=
"0.8"
visible=
"false"
/>
<e:Image
id=
"img"
width=
"508"
height=
"225"
source=
"{data.url}"
horizontalCenter=
"0"
y=
"337.76"
/>
<e:Image
id=
"money"
source=
"signprize元宝_png"
y=
"336.2"
horizontalCenter=
"0"
scaleX=
"0.8"
scaleY=
"0.8"
visible=
"false"
/>
<e:Image
id=
"blood"
source=
"singprize体力_png"
y=
"298.8"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Group
id=
"numsgroup"
x=
"396.38"
y=
"344.4"
visible=
"false"
>
<e:Image
id=
"numsbg
0
"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
/>
<e:Label
id=
"
nums0
"
text=
"X8"
size=
"22"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
/>
<e:Image
id=
"numsbg"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
/>
<e:Label
id=
"
propnums
"
text=
"X8"
size=
"22"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
/>
</e:Group>
<e:Button
id=
"closeBtn"
label=
""
y=
"242.88"
x=
"615"
>
<e:skinName>
...
...
egret/src/panels/TurntablePanel/TurntablePrizePanel.ts
View file @
96c1421f
...
...
@@ -11,7 +11,6 @@ export default class TurnPrizePanel extends Panel {
super
.
start
();
this
.
showlog
();
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
)
...
...
@@ -32,9 +31,31 @@ export default class TurnPrizePanel extends Panel {
console
.
log
(
data
)
this
.
updateOption
(
data
.
option
);
}
updateOption
(
option
:
any
)
{
const
{
categoryType
}
=
option
;
const
{
categoryType
,
img
,
num
,
propType
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this
[
'propnums'
].
text
=
'x'
+
num
;
switch
(
categoryType
)
{
case
2
:
this
[
'blood'
].
visible
=
true
;
this
[
'numsgroup'
].
visible
=
true
;
break
;
case
3
:
this
[
'numsgroup'
].
visible
=
true
;
this
[
'img'
].
visible
=
true
;
this
.
data
.
url
=
`turnprize_icon
${
propType
}
_png`
;
break
;
case
4
:
this
[
'numsgroup'
].
visible
=
true
;
this
[
'money'
].
visible
=
true
;
break
;
default
:
this
[
'img'
].
visible
=
true
;
this
.
data
.
url
=
img
;
break
;
}
}
playBgAni
()
{
...
...
mock/happyclear/turnabledojoin.json
View file @
96c1421f
...
...
@@ -4,7 +4,7 @@
"isScratchCard"
:
false
,
"option"
:{
"completePercent"
:
"99"
,
"prizeImage"
:
"
http://yun.duiba.com.cn/db_games/1022/111.png
"
,
"prizeImage"
:
""
,
"remainPercent"
:
"剩余进度"
,
"scratchCardTaskId"
:
1
,
"categoryType"
:
4
,
...
...
@@ -13,11 +13,11 @@
"maxValue"
:
10
,
"minValue"
:
10
,
"appItemId"
:
2099
,
"img"
:
"
虚拟商品图片
"
,
"img"
:
"
http://yun.duiba.com.cn/db_games/1022/111.png
"
,
"name"
:
"虚拟商品名称"
,
"value"
:
"虚拟商品编码"
,
"num"
:
10
,
"propType"
:
2
"propType"
:
1
},
"orderNum"
:
"24487583"
},
...
...
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