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
731a0f9b
Commit
731a0f9b
authored
Sep 29, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8b1a0822
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
66 additions
and
388 deletions
+66
-388
exml.json
egret/.wing/exml.json
+1
-1
ExchangeSkin.exml
egret/resource/skins/ExchangeSkin.exml
+1
-1
SignPrizeSkin.exml
egret/resource/skins/SignPrizeSkin.exml
+5
-5
GuideCon.ts
egret/src/mapScene/GuideCon.ts
+6
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+35
-20
SignPanel.ts
egret/src/panels/SignPanel.ts
+2
-0
SignPrizePanel.ts
egret/src/panels/SignPrizePanel.ts
+6
-2
home.json
mock/happyclear/home.json
+7
-355
doSign.json
mock/sign/doSign.json
+2
-2
getSignInfo.json
mock/sign/getSignInfo.json
+1
-1
No files found.
egret/.wing/exml.json
View file @
731a0f9b
...
...
@@ -198,7 +198,7 @@
"bindingDataTestObj"
:
[
{
"key"
:
"data.img"
,
"value"
:
"http://yun.duiba.com.cn/
babi/img/bm2ryg8wht.gif
"
"value"
:
"http://yun.duiba.com.cn/
db_games/0927/33256.png
"
}
]
}
...
...
egret/resource/skins/ExchangeSkin.exml
View file @
731a0f9b
...
...
@@ -10,7 +10,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"closeBtn"
label=
""
x=
"6
14"
y=
"187
"
>
<e:Button
id=
"closeBtn"
label=
""
x=
"6
09.64"
y=
"212.2
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
...
...
egret/resource/skins/SignPrizeSkin.exml
View file @
731a0f9b
...
...
@@ -2,14 +2,14 @@
<e:Skin
class=
"SignPrizeSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16d5c2563cb"
/>
<e:Image
source=
"singprizebg_png"
y=
"20"
horizontalCenter=
"0"
/>
<e:Image
id=
"img"
y=
"297"
touchEnabled=
"true"
source=
"{data.img}"
width=
"512"
height=
"240"
scaleX=
"1"
scaleY=
"1"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"img"
y=
"297"
touchEnabled=
"true"
source=
"{data.img}"
width=
"512"
height=
"240"
scaleX=
"1"
scaleY=
"1"
horizontalCenter=
"0"
/>
<e:Image
id=
"money"
source=
"signprize元宝_png"
y=
"234.88"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"blood"
source=
"singprize体力_png"
y=
"233.8"
horizontalCenter=
"0"
/>
<e:Group
id=
"numsgroup"
x=
"
400.38"
y=
"282
.24"
>
<e:Image
id=
"blood"
source=
"singprize体力_png"
y=
"233.8"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Group
id=
"numsgroup"
x=
"
396.38"
y=
"320
.24"
>
<e:Image
id=
"numsbg"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
/>
<e:Label
id=
"nums"
text=
"X8"
size=
"22"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
/>
</e:Group>
<e:Button
id=
"closeBtn"
label=
""
x=
"6
13.12"
y=
"160.96"
locked=
"true
"
>
<e:Button
id=
"closeBtn"
label=
""
x=
"6
07.12"
y=
"180.96
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
...
...
@@ -17,7 +17,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"close2Btn"
label=
""
y=
"564"
horizontalCenter=
"0"
locked=
"true"
>
<e:Button
id=
"close2Btn"
label=
""
y=
"564"
horizontalCenter=
"0"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"signprize_btn_png"
source.down=
"signprize_btn_png"
source.disabled=
"signprize_btn_png"
/>
...
...
egret/src/mapScene/GuideCon.ts
View file @
731a0f9b
...
...
@@ -47,8 +47,11 @@ export class GuideCon extends egret.DisplayObjectContainer {
timeoutId
:
number
;
tri
:
egret
.
Bitmap
;
showWord
:
ShowWord
;
constructor
()
{
callback
;
constructor
(
callback
)
{
super
();
this
.
callback
=
callback
;
var
bg
:
egret
.
Shape
=
new
egret
.
Shape
();
bg
.
graphics
.
beginFill
(
0x000000
,
0.7
);
bg
.
graphics
.
drawRect
(
0
,
0
,
750
,
1624
);
...
...
@@ -124,6 +127,7 @@ export class GuideCon extends egret.DisplayObjectContainer {
if
(
this
.
parent
)
this
.
parent
.
removeChild
(
this
);
clearTimeout
(
this
.
timeoutId
);
writeCache
();
if
(
this
.
callback
)
this
.
callback
();
},
this
)
this
.
addChild
(
guideOver
);
...
...
@@ -206,6 +210,7 @@ export class GuideCon extends egret.DisplayObjectContainer {
if
(
this
.
curStep
>
this
.
steps
)
{
if
(
this
.
parent
)
this
.
parent
.
removeChild
(
this
);
writeCache
();
if
(
this
.
callback
)
this
.
callback
();
}
else
{
this
.
play
(
this
.
curStep
);
//隐藏三角形
...
...
egret/src/mapScene/MapScene.ts
View file @
731a0f9b
...
...
@@ -32,28 +32,39 @@ export default class MapScene extends Scene {
async
start
(
data
?)
{
super
.
start
();
NetManager
.
ins
.
getSignInfo
(()
=>
{
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
>=
7
)
return
;
if
(
signInfoVO
.
todaySigned
==
0
){
PanelCtrl
.
instance
.
show
(
'sign'
);
}
},
window
[
'signActivityId'
]);
if
(
getBgOn
()
&&
MapScene
[
'firstPlayBgTag'
]
==
true
)
{
playBg
();
}
stopGamebg
();
if
(
!
readCache
()
&&
getHomeData
().
levels
.
length
<=
0
)
{
var
guide
=
new
GuideCon
();
this
.
addChild
(
guide
);
guide
.
play
(
1
)
console
.
log
(
guide
)
}
NetManager
.
ins
.
getSignInfo
(()
=>
{
if
(
!
readCache
()
&&
getHomeData
().
levels
.
length
<=
0
)
{
//引导
const
guide
=
new
GuideCon
(()
=>
{
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
>=
7
)
return
;
if
(
signInfoVO
.
todaySigned
==
0
)
{
PanelCtrl
.
instance
.
show
(
'sign'
);
}
});
this
.
addChild
(
guide
);
guide
.
play
(
1
)
console
.
log
(
guide
)
}
else
{
//不用引导
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
>=
7
)
return
;
if
(
signInfoVO
.
todaySigned
==
0
)
{
PanelCtrl
.
instance
.
show
(
'sign'
);
}
}
},
window
[
'signActivityId'
]);
this
.
initSound
();
...
...
@@ -94,8 +105,12 @@ export default class MapScene extends Scene {
const
levelOrder
=
parseInt
(
key
);
const
element
=
MapScene
.
iconHash
[
key
];
element
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
levelOrder
>
(
homeData
.
levels
.
length
+
1
)
&&
levelOrder
>
1
)
{
if
(
(
levelOrder
>
(
homeData
.
levels
.
length
+
1
)
&&
levelOrder
>
1
)
||
(
levelOrder
>
window
[
'last_level'
])
)
{
// showToast('必须通关前面的关卡才能开启本关');
console
.
log
(
'必须通关前面的关卡才能开启本关'
);
}
else
PanelCtrl
.
instance
.
show
(
'StartPanel'
,
key
);
NetManager
.
ins
.
clickLog
(
getlogItem
(
19
))
...
...
@@ -168,7 +183,7 @@ export default class MapScene extends Scene {
return
this
.
getScrollV1
(
lastOrder
,
stageHeight
);
}
if
(
lastOrder
>=
window
[
'total_level'
]
-
10
)
{
//底部的60-70关 70-10
if
(
lastOrder
>=
window
[
'total_level'
]
-
10
)
{
//底部的60-70关 70-10
return
this
.
getScrollV2
(
lastOrder
,
stageHeight
);
}
//中部的4个循环*13 8~59
...
...
@@ -256,7 +271,7 @@ export default class MapScene extends Scene {
const
star
=
MapScene
.
starHash
[
1
];
star
.
setStar
(
0
);
this
.
enableIcon
(
1
);
}
else
if
(
homeData
.
levels
.
length
==
window
[
'
total
_level'
])
{
}
else
if
(
homeData
.
levels
.
length
==
window
[
'
last
_level'
])
{
}
else
{
const
star
=
MapScene
.
starHash
[
homeData
.
levels
.
length
+
1
];
...
...
@@ -275,7 +290,7 @@ export default class MapScene extends Scene {
const
data
=
getHomeData
();
if
(
data
.
remainEnargy
>=
BLOOD_NUMS_MAX
)
{
//满了
this
.
_countDown
.
stop
();
this
[
'fullTxt'
].
visible
=
true
;
this
[
'countdown'
].
visible
=
false
;
}
else
{
...
...
egret/src/panels/SignPanel.ts
View file @
731a0f9b
...
...
@@ -45,7 +45,9 @@ export default class SignPanel extends Panel {
}
catch
(
error
)
{
console
.
warn
(
error
)
}
item
[
'btn1'
].
enabled
=
false
;
NetManager
.
ins
.
doSign
((
s
)
=>
{
item
[
'btn1'
].
enabled
=
true
;
this
.
hidePanel
();
if
(
s
)
{
const
{
customInfo
,
success
}
=
DataManager
.
ins
.
getData
(
'dosign'
);
...
...
egret/src/panels/SignPrizePanel.ts
View file @
731a0f9b
...
...
@@ -7,22 +7,26 @@ export default class SignPrizePanel extends Panel {
this
[
'money'
].
visible
=
false
;
this
[
'blood'
].
visible
=
false
;
this
[
'numsgroup'
].
visible
=
fals
e
;
this
[
'numsgroup'
].
visible
=
tru
e
;
//奖品类型,none无奖励, object实物,virtual虚拟商品,coupon券,道具prop,元宝coin,体力times,
const
{
customInfo
}
=
DataManager
.
ins
.
getData
(
'dosign'
);
const
prizeType
=
customInfo
.
prizeType
;
if
(
customInfo
.
logo
&&
prizeType
!=
'times'
&&
prizeType
!=
'coin'
&&
prizeType
!=
'prop'
)
{
this
[
'img'
].
source
=
customInfo
.
logo
;
this
[
'numsgroup'
].
visible
=
false
;
}
else
{
if
(
customInfo
.
itemId
)
this
[
'img'
].
source
=
`http://yun.duiba.com.cn/db_games/0927/
${
customInfo
.
itemId
}
.png`
;
}
this
[
'nums'
].
text
=
'x'
+
customInfo
.
prizeCount
;
if
(
prizeType
==
'prop'
)
{
this
[
'numsgroup'
].
x
=
396.38
;
this
[
'numsgroup'
].
y
=
320.38
;
}
this
[
'img'
].
visible
=
prizeType
!=
'times'
&&
prizeType
!=
'coin'
;
this
[
'numsgroup'
].
visible
=
customInfo
.
prizeCount
;
this
[
'money'
].
visible
=
prizeType
==
'coin'
;
this
[
'blood'
].
visible
=
prizeType
==
'times'
;
}
...
...
mock/happyclear/home.json
View file @
731a0f9b
...
...
@@ -2,361 +2,11 @@
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
156
6885811031
,
"timestamp"
:
156
9721913840
,
"data"
:
{
"wealth"
:
7960
,
"totalStars"
:
1
45
,
"wealth"
:
10835
,
"totalStars"
:
1
99
,
"levels"
:
[
{
"levelNum"
:
1
,
"maxScore"
:
36320
,
"stars"
:
3
},
{
"levelNum"
:
2
,
"maxScore"
:
18680
,
"stars"
:
3
},
{
"levelNum"
:
3
,
"maxScore"
:
19530
,
"stars"
:
3
},
{
"levelNum"
:
4
,
"maxScore"
:
20230
,
"stars"
:
3
},
{
"levelNum"
:
5
,
"maxScore"
:
10710
,
"stars"
:
3
},
{
"levelNum"
:
6
,
"maxScore"
:
42580
,
"stars"
:
3
},
{
"levelNum"
:
7
,
"maxScore"
:
23700
,
"stars"
:
3
},
{
"levelNum"
:
8
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
9
,
"maxScore"
:
70330
,
"stars"
:
3
},
{
"levelNum"
:
10
,
"maxScore"
:
27710
,
"stars"
:
3
},
{
"levelNum"
:
11
,
"maxScore"
:
19410
,
"stars"
:
3
},
{
"levelNum"
:
12
,
"maxScore"
:
23650
,
"stars"
:
3
},
{
"levelNum"
:
13
,
"maxScore"
:
34150
,
"stars"
:
1
},
{
"levelNum"
:
14
,
"maxScore"
:
37110
,
"stars"
:
1
},
{
"levelNum"
:
15
,
"maxScore"
:
99999
,
"stars"
:
2
},
{
"levelNum"
:
16
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
17
,
"maxScore"
:
42420
,
"stars"
:
3
},
{
"levelNum"
:
18
,
"maxScore"
:
99999
,
"stars"
:
2
},
{
"levelNum"
:
19
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
20
,
"maxScore"
:
47520
,
"stars"
:
3
},
{
"levelNum"
:
21
,
"maxScore"
:
14080
,
"stars"
:
3
},
{
"levelNum"
:
22
,
"maxScore"
:
75790
,
"stars"
:
1
},
{
"levelNum"
:
23
,
"maxScore"
:
50340
,
"stars"
:
3
},
{
"levelNum"
:
24
,
"maxScore"
:
83590
,
"stars"
:
3
},
{
"levelNum"
:
25
,
"maxScore"
:
45570
,
"stars"
:
3
},
{
"levelNum"
:
26
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
27
,
"maxScore"
:
44540
,
"stars"
:
2
},
{
"levelNum"
:
28
,
"maxScore"
:
112230
,
"stars"
:
3
},
{
"levelNum"
:
29
,
"maxScore"
:
67810
,
"stars"
:
3
},
{
"levelNum"
:
30
,
"maxScore"
:
43530
,
"stars"
:
2
},
{
"levelNum"
:
31
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
32
,
"maxScore"
:
18450
,
"stars"
:
1
},
{
"levelNum"
:
33
,
"maxScore"
:
28560
,
"stars"
:
1
},
{
"levelNum"
:
34
,
"maxScore"
:
99999
,
"stars"
:
1
},
{
"levelNum"
:
35
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
36
,
"maxScore"
:
14860
,
"stars"
:
0
},
{
"levelNum"
:
37
,
"maxScore"
:
22300
,
"stars"
:
0
},
{
"levelNum"
:
38
,
"maxScore"
:
43380
,
"stars"
:
3
},
{
"levelNum"
:
39
,
"maxScore"
:
27610
,
"stars"
:
0
},
{
"levelNum"
:
40
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
41
,
"maxScore"
:
30890
,
"stars"
:
2
},
{
"levelNum"
:
42
,
"maxScore"
:
15660
,
"stars"
:
3
},
{
"levelNum"
:
43
,
"maxScore"
:
48170
,
"stars"
:
1
},
{
"levelNum"
:
44
,
"maxScore"
:
18080
,
"stars"
:
1
},
{
"levelNum"
:
45
,
"maxScore"
:
29170
,
"stars"
:
1
},
{
"levelNum"
:
46
,
"maxScore"
:
37980
,
"stars"
:
1
},
{
"levelNum"
:
47
,
"maxScore"
:
37800
,
"stars"
:
3
},
{
"levelNum"
:
48
,
"maxScore"
:
19950
,
"stars"
:
1
},
{
"levelNum"
:
49
,
"maxScore"
:
36190
,
"stars"
:
0
},
{
"levelNum"
:
50
,
"maxScore"
:
42610
,
"stars"
:
2
},
{
"levelNum"
:
51
,
"maxScore"
:
34300
,
"stars"
:
1
},
{
"levelNum"
:
52
,
"maxScore"
:
31650
,
"stars"
:
3
},
{
"levelNum"
:
53
,
"maxScore"
:
5140
,
"stars"
:
0
},
{
"levelNum"
:
54
,
"maxScore"
:
49630
,
"stars"
:
3
},
{
"levelNum"
:
55
,
"maxScore"
:
99999
,
"stars"
:
1
},
{
"levelNum"
:
56
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
57
,
"maxScore"
:
34090
,
"stars"
:
2
},
{
"levelNum"
:
58
,
"maxScore"
:
13030
,
"stars"
:
3
},
{
"levelNum"
:
59
,
"maxScore"
:
72760
,
"stars"
:
1
},
{
"levelNum"
:
60
,
"maxScore"
:
16250
,
"stars"
:
1
},
{
"levelNum"
:
61
,
"maxScore"
:
81870
,
"stars"
:
3
},
{
"levelNum"
:
62
,
"maxScore"
:
36110
,
"stars"
:
1
},
{
"levelNum"
:
63
,
"maxScore"
:
28240
,
"stars"
:
3
},
{
"levelNum"
:
64
,
"maxScore"
:
23910
,
"stars"
:
1
},
{
"levelNum"
:
65
,
"maxScore"
:
47990
,
"stars"
:
1
},
{
"levelNum"
:
66
,
"maxScore"
:
60740
,
"stars"
:
3
},
{
"levelNum"
:
67
,
"maxScore"
:
33670
,
"stars"
:
1
},
{
"levelNum"
:
68
,
"maxScore"
:
25370
,
"stars"
:
3
},
{
"levelNum"
:
69
,
"maxScore"
:
11650
,
"stars"
:
0
},
{
"levelNum"
:
70
,
"maxScore"
:
15910
,
"stars"
:
1
}
],
"remainProp"
:
[
{
...
...
@@ -372,9 +22,11 @@
"num"
:
0
}
],
"remainEnargy"
:
9979
,
"remainEnargy"
:
5
,
"askForEnergy"
:
false
,
"canReceiveTreasureBoxNum"
:
0
,
"nextRangeStarsNum"
:
150
"nextRangeStarsNum"
:
210
,
"isGetAllTreasureBox"
:
false
,
"refectionCountdown"
:
0
}
}
\ No newline at end of file
mock/sign/doSign.json
View file @
731a0f9b
...
...
@@ -5,10 +5,10 @@
"success"
:
true
,
"errorMsg"
:
null
,
"code"
:
""
,
"prizeType"
:
"
object
"
,
"prizeType"
:
""
,
"prizeName"
:
"奖品名称"
,
"logo"
:
"http://yun.duiba.com.cn/db_games/activity/game/guideImage/guide2.png"
,
"prizeCount"
:
10
,
"itemId"
:
59521
"itemId"
:
33256
}
}
\ No newline at end of file
mock/sign/getSignInfo.json
View file @
731a0f9b
...
...
@@ -2,6 +2,6 @@
"success"
:
true
,
"signInfoVO"
:
{
"continueDay"
:
6
,
"todaySigned"
:
1
"todaySigned"
:
0
}
}
\ 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