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
44158aa3
Commit
44158aa3
authored
Oct 28, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9fd657dd
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
78 additions
and
70 deletions
+78
-70
turntable.tmproject
design/turntable.tmproject
+20
-0
turnable_icon1.png
design/turntable/turnable_icon1.png
+0
-0
turnable_icon2.png
design/turntable/turnable_icon2.png
+0
-0
turnable_icon3.png
design/turntable/turnable_icon3.png
+0
-0
turntable_bg.png
design/turntable/turntable_bg.png
+0
-0
turntable_panel.png
design/turntable/turntable_panel.png
+0
-0
turntable_rulebtn.png
design/turntable/turntable_rulebtn.png
+0
-0
turntable_startbtn.png
design/turntable/turntable_startbtn.png
+0
-0
exml.json
egret/.wing/exml.json
+1
-1
turntable.json
egret/resource/assets/altas11/turntable.json
+8
-0
turntable.png
egret/resource/assets/altas11/turntable.png
+0
-0
default.res.json
egret/resource/default.res.json
+10
-68
BackSkin.exml
egret/resource/skins/BackSkin.exml
+7
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+2
-0
BackPanel.ts
egret/src/panels/BackPanel.ts
+30
-0
No files found.
design/turntable.tmproject
0 → 100644
View file @
44158aa3
{
"version": 5,
"files": [
"./turntable/turntable_rulebtn.png",
"./turntable/turnable_icon2.png",
"./turntable/turnable_icon3.png",
"./turntable/turnable_icon1.png",
"./turntable/turntable_bg.png",
"./turntable/turntable_startbtn.png",
"./turntable/turntable_panel.png"
],
"projectName": "turntable",
"options": {
"layoutMath": "3",
"sizeMode": "free",
"useExtension": 0,
"layoutGap": 1,
"extend": 0
}
}
\ No newline at end of file
egret/resource/assets
/turntable/turnable_icon1.png
→
design
/turntable/turnable_icon1.png
View file @
44158aa3
File moved
egret/resource/assets
/turntable/turnable_icon2.png
→
design
/turntable/turnable_icon2.png
View file @
44158aa3
File moved
egret/resource/assets
/turntable/turnable_icon3.png
→
design
/turntable/turnable_icon3.png
View file @
44158aa3
File moved
egret/resource/assets
/turntable/turntable_bg.png
→
design
/turntable/turntable_bg.png
View file @
44158aa3
File moved
egret/resource/assets
/turntable/turntable_panel.png
→
design
/turntable/turntable_panel.png
View file @
44158aa3
File moved
egret/resource/assets
/turntable/turntable_rulebtn.png
→
design
/turntable/turntable_rulebtn.png
View file @
44158aa3
File moved
egret/resource/assets
/turntable/turntable_startbtn.png
→
design
/turntable/turntable_startbtn.png
View file @
44158aa3
File moved
egret/.wing/exml.json
View file @
44158aa3
...
@@ -233,7 +233,7 @@
...
@@ -233,7 +233,7 @@
"bindingDataTestObj"
:
[
"bindingDataTestObj"
:
[
{
{
"key"
:
"data.url"
,
"key"
:
"data.url"
,
"value"
:
"
http://yun.duiba.com.cn/db_games/1022/111.
png"
"value"
:
"
turnprize_icon1_
png"
}
}
]
]
},
},
...
...
egret/resource/assets/altas11/turntable.json
0 → 100644
View file @
44158aa3
{
"file"
:
"turntable.png"
,
"frames"
:{
"turntable_panel"
:{
"x"
:
637
,
"y"
:
0
,
"w"
:
507
,
"h"
:
507
,
"offX"
:
0
,
"offY"
:
0
,
"sourceW"
:
507
,
"sourceH"
:
507
},
"turntable_startbtn"
:{
"x"
:
1146
,
"y"
:
0
,
"w"
:
272
,
"h"
:
271
,
"offX"
:
0
,
"offY"
:
0
,
"sourceW"
:
272
,
"sourceH"
:
271
},
"turntable_bg"
:{
"x"
:
0
,
"y"
:
0
,
"w"
:
635
,
"h"
:
634
,
"offX"
:
0
,
"offY"
:
0
,
"sourceW"
:
635
,
"sourceH"
:
634
},
"turnable_icon1"
:{
"x"
:
1533
,
"y"
:
0
,
"w"
:
106
,
"h"
:
119
,
"offX"
:
0
,
"offY"
:
0
,
"sourceW"
:
106
,
"sourceH"
:
119
},
"turnable_icon3"
:{
"x"
:
1641
,
"y"
:
0
,
"w"
:
104
,
"h"
:
111
,
"offX"
:
0
,
"offY"
:
0
,
"sourceW"
:
104
,
"sourceH"
:
111
},
"turnable_icon2"
:{
"x"
:
1420
,
"y"
:
0
,
"w"
:
111
,
"h"
:
115
,
"offX"
:
0
,
"offY"
:
0
,
"sourceW"
:
111
,
"sourceH"
:
115
},
"turntable_rulebtn"
:{
"x"
:
1747
,
"y"
:
0
,
"w"
:
98
,
"h"
:
26
,
"offX"
:
0
,
"offY"
:
0
,
"sourceW"
:
98
,
"sourceH"
:
26
}}}
\ No newline at end of file
egret/resource/assets/altas11/turntable.png
0 → 100644
View file @
44158aa3
352 KB
egret/resource/default.res.json
View file @
44158aa3
...
@@ -148,18 +148,10 @@
...
@@ -148,18 +148,10 @@
"keys"
:
"bag退出弹窗_png,bag退出按钮_png,bag继续按钮_png"
,
"keys"
:
"bag退出弹窗_png,bag退出按钮_png,bag继续按钮_png"
,
"name"
:
"bagquit"
"name"
:
"bagquit"
},
},
{
"keys"
:
"turntable_bg_png,turntable_panel_png,turntable_startbtn_png,turntable_rulebtn_png,turnable_icon1_png,turnable_icon2_png,turnable_icon3_png"
,
"name"
:
"turntable"
},
{
{
"keys"
:
"back按钮 副本 91_png,backbg_png"
,
"keys"
:
"back按钮 副本 91_png,backbg_png"
,
"name"
:
"back"
"name"
:
"back"
},
},
{
"keys"
:
"turprize继续闯关按钮_png,turprizebg_png,turnprize_icon1_png,turnprize_icon2_png,turnprize_icon3_png"
,
"name"
:
"turntableprize"
},
{
{
"keys"
:
"turnrule抽奖说明_png"
,
"keys"
:
"turnrule抽奖说明_png"
,
"name"
:
"turnrule"
"name"
:
"turnrule"
...
@@ -175,6 +167,10 @@
...
@@ -175,6 +167,10 @@
{
{
"keys"
:
"turnprize2按钮_png,turnprize2bg_png"
,
"keys"
:
"turnprize2按钮_png,turnprize2bg_png"
,
"name"
:
"turntableprize2"
"name"
:
"turntableprize2"
},
{
"keys"
:
"turntable_json"
,
"name"
:
"aaa"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -2593,16 +2589,6 @@
...
@@ -2593,16 +2589,6 @@
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"bagbg_png"
"name"
:
"bagbg_png"
},
},
{
"url"
:
"assets/turntable/turntable_bg.png"
,
"type"
:
"image"
,
"name"
:
"turntable_bg_png"
},
{
"url"
:
"assets/turntable/turntable_panel.png"
,
"type"
:
"image"
,
"name"
:
"turntable_panel_png"
},
{
{
"url"
:
"assets/back/back按钮 副本 91.png"
,
"url"
:
"assets/back/back按钮 副本 91.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
...
@@ -2613,26 +2599,6 @@
...
@@ -2613,26 +2599,6 @@
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"backbg_png"
"name"
:
"backbg_png"
},
},
{
"url"
:
"assets/turntableprize/turprize继续闯关按钮.png"
,
"type"
:
"image"
,
"name"
:
"turprize继续闯关按钮_png"
},
{
"url"
:
"assets/turntableprize/turprizebg.png"
,
"type"
:
"image"
,
"name"
:
"turprizebg_png"
},
{
"url"
:
"assets/turntable/turntable_startbtn.png"
,
"type"
:
"image"
,
"name"
:
"turntable_startbtn_png"
},
{
"url"
:
"assets/turntable/turntable_rulebtn.png"
,
"type"
:
"image"
,
"name"
:
"turntable_rulebtn_png"
},
{
{
"url"
:
"assets/turnrule/turnrule抽奖说明.png"
,
"url"
:
"assets/turnrule/turnrule抽奖说明.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
...
@@ -2733,21 +2699,6 @@
...
@@ -2733,21 +2699,6 @@
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"turnprize2bg_png"
"name"
:
"turnprize2bg_png"
},
},
{
"url"
:
"assets/turntable/turnable_icon1.png"
,
"type"
:
"image"
,
"name"
:
"turnable_icon1_png"
},
{
"url"
:
"assets/turntable/turnable_icon2.png"
,
"type"
:
"image"
,
"name"
:
"turnable_icon2_png"
},
{
"url"
:
"assets/turntable/turnable_icon3.png"
,
"type"
:
"image"
,
"name"
:
"turnable_icon3_png"
},
{
{
"url"
:
"assets/mainScene/ele11.png"
,
"url"
:
"assets/mainScene/ele11.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
...
@@ -2758,25 +2709,16 @@
...
@@ -2758,25 +2709,16 @@
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"ele10_png"
"name"
:
"ele10_png"
},
},
{
"url"
:
"assets/turntableprize/turnprize_icon1.png"
,
"type"
:
"image"
,
"name"
:
"turnprize_icon1_png"
},
{
"url"
:
"assets/turntableprize/turnprize_icon2.png"
,
"type"
:
"image"
,
"name"
:
"turnprize_icon2_png"
},
{
"url"
:
"assets/turntableprize/turnprize_icon3.png"
,
"type"
:
"image"
,
"name"
:
"turnprize_icon3_png"
},
{
{
"url"
:
"assets/startpanel2/startpanel_ele10.png"
,
"url"
:
"assets/startpanel2/startpanel_ele10.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"startpanel_ele10_png"
"name"
:
"startpanel_ele10_png"
},
{
"url"
:
"assets/altas11/turntable.json"
,
"type"
:
"sheet"
,
"name"
:
"turntable_json"
,
"subkeys"
:
"turnable_icon1,turnable_icon2,turnable_icon3,turntable_bg,turntable_panel,turntable_rulebtn,turntable_startbtn"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/BackSkin.exml
View file @
44158aa3
...
@@ -4,6 +4,13 @@
...
@@ -4,6 +4,13 @@
<e:Component
y=
"806.52"
skinName=
"ADSmallSkin"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Component
y=
"806.52"
skinName=
"ADSmallSkin"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
y=
"-30.27"
source=
"backbg_png"
horizontalCenter=
"0"
/>
<e:Image
y=
"-30.27"
source=
"backbg_png"
horizontalCenter=
"0"
/>
<e:Image
y=
"-20.27"
horizontalCenter=
"0"
x=
"10"
source=
""
/>
<e:Image
y=
"-20.27"
horizontalCenter=
"0"
x=
"10"
source=
""
/>
<e:Image
id=
"img"
width=
"508"
height=
"225"
source=
"{data.url}"
horizontalCenter=
"0"
y=
"377.76"
visible=
"false"
/>
<e:Image
id=
"money"
source=
"signprize元宝_png"
y=
"368.2"
horizontalCenter=
"0"
scaleX=
"0.8"
scaleY=
"0.8"
visible=
"false"
/>
<e:Image
id=
"blood"
source=
"singprize体力_png"
y=
"330.8"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Group
id=
"numsgroup"
x=
"396.38"
y=
"376.4"
visible=
"false"
>
<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=
""
x=
"611"
y=
"291"
>
<e:Button
id=
"closeBtn"
label=
""
x=
"611"
y=
"291"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
...
@@ -12,7 +19,6 @@
...
@@ -12,7 +19,6 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Image
width=
"508"
height=
"225"
source=
"{data.url}"
horizontalCenter=
"0"
y=
"380"
/>
<e:Button
id=
"inviteBtn"
label=
""
y=
"675"
horizontalCenter=
"12"
>
<e:Button
id=
"inviteBtn"
label=
""
y=
"675"
horizontalCenter=
"12"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
...
...
egret/src/mapScene/MapScene.ts
View file @
44158aa3
...
@@ -127,6 +127,8 @@ export default class MapScene extends Scene {
...
@@ -127,6 +127,8 @@ export default class MapScene extends Scene {
}
}
this
.
updateSign
();
this
.
updateSign
();
PanelCtrl
.
instance
.
show
(
'back'
)
if
(
!
readCache
()
&&
getHomeData
().
levels
.
length
<=
0
)
{
//引导
if
(
!
readCache
()
&&
getHomeData
().
levels
.
length
<=
0
)
{
//引导
const
guide
=
new
GuideCon
(()
=>
{
const
guide
=
new
GuideCon
(()
=>
{
...
...
egret/src/panels/BackPanel.ts
View file @
44158aa3
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
{
addAdComp
}
from
"./BoxPanel"
;
import
{
addAdComp
}
from
"./BoxPanel"
;
import
{
gotoNextLevel
}
from
"./gotoNextLevel"
;
import
{
gotoNextLevel
}
from
"./gotoNextLevel"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
export
default
class
BackPanel
extends
Panel
{
export
default
class
BackPanel
extends
Panel
{
start
(
data
)
{
start
(
data
)
{
...
@@ -12,6 +13,9 @@ export default class BackPanel extends Panel {
...
@@ -12,6 +13,9 @@ export default class BackPanel extends Panel {
showlog
(){
showlog
(){
// NetManager.ins.showLog(getlogItem(3));
// NetManager.ins.showLog(getlogItem(3));
// NetManager.ins.showLog(getlogItem(4));
// NetManager.ins.showLog(getlogItem(4));
const
{
data
}
=
DataManager
.
ins
.
getData
(
'hc_getBackReward'
);
this
.
updateOption
(
data
);
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'
}
}
...
@@ -24,6 +28,32 @@ export default class BackPanel extends Panel {
...
@@ -24,6 +28,32 @@ export default class BackPanel extends Panel {
gotoNextLevel
();
gotoNextLevel
();
}
}
updateOption
(
option
:
any
)
{
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
;
}
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
get
skinKey
()
{
return
'Back'
}
get
skinKey
()
{
return
'Back'
}
}
}
\ No newline at end of file
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