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
b88ff049
Commit
b88ff049
authored
Feb 14, 2020
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
42eac260
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
20 deletions
+25
-20
exml.json
egret/.wing/exml.json
+6
-2
icon.png
egret/resource/assets/map/icon.png
+0
-0
invite_txtbg.png
egret/resource/assets/map/invite_txtbg.png
+0
-0
MapSkin.exml
egret/resource/skins/MapSkin.exml
+16
-16
MapScene.ts
egret/src/mapScene/MapScene.ts
+3
-2
No files found.
egret/.wing/exml.json
View file @
b88ff049
...
@@ -8,7 +8,10 @@
...
@@ -8,7 +8,10 @@
"globalBackgroundHeight"
:
-1
,
"globalBackgroundHeight"
:
-1
,
"globalBackgroundColor"
:
"#c1c1c1"
,
"globalBackgroundColor"
:
"#c1c1c1"
,
"globalBackgroundImage"
:
""
,
"globalBackgroundImage"
:
""
,
"globalAutoLayerMarkEnable"
:
false
"globalAutoLayerMarkEnable"
:
false
,
"gridColor"
:
13238148
,
"gridEnabled"
:
true
,
"gridSize"
:
"50"
},
},
"1667fb18fa6"
:
{
"1667fb18fa6"
:
{
"bindingDataTestObj"
:
[
"bindingDataTestObj"
:
[
...
@@ -148,7 +151,8 @@
...
@@ -148,7 +151,8 @@
"backgroundWidth"
:
-1
,
"backgroundWidth"
:
-1
,
"backgroundHeight"
:
-1
,
"backgroundHeight"
:
-1
,
"backgroundAlpha"
:
100
,
"backgroundAlpha"
:
100
,
"bindingDataTestObj"
:
[]
"bindingDataTestObj"
:
[],
"guideLinesEnabled"
:
false
},
},
"16c945ea8db"
:
{
"16c945ea8db"
:
{
"backgroundType"
:
"user"
,
"backgroundType"
:
"user"
,
...
...
egret/resource/assets/map/icon.png
View replaced file @
42eac260
View file @
b88ff049
9.76 KB
|
W:
|
H:
6.99 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/map/invite_txtbg.png
View replaced file @
42eac260
View file @
b88ff049
2.11 KB
|
W:
|
H:
2.24 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/skins/MapSkin.exml
View file @
b88ff049
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"MapSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"MapSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Rect
id=
"rectbg"
width=
"750"
height=
"1206"
x=
"-0.4
"
/>
<e:Rect
id=
"rectbg"
width=
"750"
height=
"1206"
locked=
"true
"
/>
<e:Scroller
id=
"scroll"
width=
"750"
height=
"1624"
x=
"0"
y=
"0"
scrollPolicyH=
"off"
scrollPolicyV=
"on"
locked=
"true"
>
<e:Scroller
id=
"scroll"
width=
"750"
height=
"1624"
x=
"0"
y=
"0"
scrollPolicyH=
"off"
scrollPolicyV=
"on"
locked=
"true"
>
<e:Group
id=
"scrollGroup"
>
<e:Group
id=
"scrollGroup"
>
</e:Group>
</e:Group>
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
<e:Image
id=
"sign_s2"
source=
"map明日可领_png"
x=
"1.33"
y=
"0"
visible=
"false"
/>
<e:Image
id=
"sign_s2"
source=
"map明日可领_png"
x=
"1.33"
y=
"0"
visible=
"false"
/>
</e:Group>
</e:Group>
</e:Group>
</e:Group>
<e:Group
id=
"inviteGroup"
x=
"16.69"
y=
"323.76"
>
<e:Group
id=
"inviteGroup"
x=
"16.69"
y=
"323.76"
anchorOffsetX=
"0"
width=
"132"
locked=
"true"
>
<e:Button
id=
"inviteBtn"
label=
""
x=
"10"
y=
"1.54"
>
<e:Button
id=
"inviteBtn"
label=
""
x=
"10"
y=
"1.54"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
...
@@ -102,13 +102,13 @@
...
@@ -102,13 +102,13 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Group
x=
"
75
.36"
y=
"-1.33"
>
<e:Group
x=
"
92
.36"
y=
"-1.33"
>
<e:Image
id=
"inviteTipsBg"
x=
"78"
y=
"0"
touchEnabled=
"false"
scaleX=
"-1"
source=
"txtbg_blue_png
"
/>
<e:Image
id=
"inviteTipsBg"
touchEnabled=
"false"
scaleX=
"-1"
source=
"invite_txtbg_png"
left=
"0"
top=
"0"
bottom=
"0"
verticalCenter=
"0"
right=
"0"
horizontalCenter=
"0
"
/>
<e:Label
id=
"inviteTips"
text=
"立即到账"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xffffff"
size=
"18"
fontFamily=
"FZY3JW"
/>
<e:Label
id=
"inviteTips"
text=
"立即到账"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xffffff"
size=
"18"
fontFamily=
"FZY3JW"
/>
</e:Group>
</e:Group>
</e:Group>
</e:Group>
<e:Group
id=
"turnTableGroup"
x=
"5
64.5"
y=
"475"
anchorOffsetX=
"0"
width=
"159
"
locked=
"true"
>
<e:Group
id=
"turnTableGroup"
x=
"5
89.5"
y=
"475"
anchorOffsetX=
"0"
width=
"134
"
locked=
"true"
>
<e:Button
id=
"turnTableBtn"
label=
""
x=
"33.36"
y
=
"0"
>
<e:Button
id=
"turnTableBtn"
label=
""
y=
"0"
horizontalCenter
=
"0"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"map大转盘_png"
source.down=
"map大转盘_png"
source.disabled=
"map大转盘_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"map大转盘_png"
source.down=
"map大转盘_png"
source.disabled=
"map大转盘_png"
/>
...
@@ -116,13 +116,13 @@
...
@@ -116,13 +116,13 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Group
x=
"
6"
y=
"1
0.24"
>
<e:Group
x=
"
-60"
y=
"
0.24"
>
<e:Image
id=
"turnTableTipsBg"
y=
"0"
touchEnabled=
"false"
source=
"
txtbg_orange
_png"
/>
<e:Image
id=
"turnTableTipsBg"
y=
"0"
touchEnabled=
"false"
source=
"
invite_txtbg
_png"
/>
<e:Label
id=
"turnTableTips"
text=
"立即到"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xFFFFFF"
size=
"18"
fontFamily=
"FZY3JW"
/>
<e:Label
id=
"turnTableTips"
text=
"立即到"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xFFFFFF"
size=
"18"
fontFamily=
"FZY3JW"
/>
</e:Group>
</e:Group>
</e:Group>
</e:Group>
<e:Group
id=
"scratchGroup"
y=
"631"
right=
"25"
>
<e:Group
id=
"scratchGroup"
y=
"631"
right=
"25"
locked=
"true"
>
<e:Button
id=
"scratchBtn"
label=
""
y=
"0"
x=
"-5.32"
>
<e:Button
id=
"scratchBtn"
label=
""
y=
"0"
x=
"-5.32"
locked=
"true"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"map刮现金红包_png"
source.down=
"map刮现金红包_png"
source.disabled=
"map刮现金红包_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"map刮现金红包_png"
source.down=
"map刮现金红包_png"
source.disabled=
"map刮现金红包_png"
/>
...
@@ -130,8 +130,8 @@
...
@@ -130,8 +130,8 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Group
x=
"-
23.6"
anchorOffsetX=
"0"
width=
"74.6"
y=
"0
"
>
<e:Group
x=
"-
59.6"
anchorOffsetX=
"0"
width=
"98"
y=
"0"
anchorOffsetY=
"0"
height=
"42
"
>
<e:Image
id=
"scratchTipsBg"
source=
"invite_txtbg_png"
touchEnabled=
"false"
anchorOffsetX=
"0"
width=
"74.6"
anchorOffsetY=
"0"
height=
"44.6"
horizontalCenter=
"0"
verticalCenter=
"0"
scale9Grid=
"8,9,24
,24"
/>
<e:Image
id=
"scratchTipsBg"
source=
"invite_txtbg_png"
touchEnabled=
"false"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
left=
"0"
horizontalCenter=
"0"
top=
"0"
verticalCenter=
"0"
right=
"0"
bottom=
"0"
scale9Grid=
"18,8,62
,24"
/>
<e:Label
id=
"scratchTips"
text=
"立即到"
verticalCenter=
"-0.5"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xFFFFFF"
size=
"18"
fontFamily=
"FZY3JW"
horizontalCenter=
"0"
/>
<e:Label
id=
"scratchTips"
text=
"立即到"
verticalCenter=
"-0.5"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xFFFFFF"
size=
"18"
fontFamily=
"FZY3JW"
horizontalCenter=
"0"
/>
</e:Group>
</e:Group>
</e:Group>
</e:Group>
...
@@ -144,12 +144,12 @@
...
@@ -144,12 +144,12 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Group
x=
"-
2
4"
>
<e:Group
x=
"-
6
4"
>
<e:Image
id=
"taskTipsBg"
y=
"0"
touchEnabled=
"false"
source=
"
txtbg_purple
_png"
/>
<e:Image
id=
"taskTipsBg"
y=
"0"
touchEnabled=
"false"
source=
"
invite_txtbg
_png"
/>
<e:Label
id=
"taskTips"
text=
"有优惠"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xFFFFFF"
size=
"18"
fontFamily=
"FZY3JW"
/>
<e:Label
id=
"taskTips"
text=
"有优惠"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xFFFFFF"
size=
"18"
fontFamily=
"FZY3JW"
/>
</e:Group>
</e:Group>
</e:Group>
</e:Group>
<e:Group
id=
"activitys"
x=
"13.4"
y=
"620.55"
touchEnabled=
"false"
locked=
"true"
>
<e:Group
id=
"activitys"
x=
"13.4"
y=
"620.55"
touchEnabled=
"false"
>
<e:Group
id=
"actIconsGroup"
x=
"-8.88"
y=
"-4"
>
<e:Group
id=
"actIconsGroup"
x=
"-8.88"
y=
"-4"
>
<e:Image
id=
"actIconsBg2"
source=
"map2+bg_png"
x=
"-27.15"
y=
"0"
visible=
"false"
/>
<e:Image
id=
"actIconsBg2"
source=
"map2+bg_png"
x=
"-27.15"
y=
"0"
visible=
"false"
/>
<e:Image
id=
"actIconsBg1"
x=
"-29.27"
y=
"10"
source=
"map2+bg2_png"
visible=
"false"
/>
<e:Image
id=
"actIconsBg1"
x=
"-29.27"
y=
"10"
source=
"map2+bg2_png"
visible=
"false"
/>
...
@@ -170,7 +170,7 @@
...
@@ -170,7 +170,7 @@
<e:Image
id=
"actsShowBtn"
source=
"map2+_png"
x=
"9.29"
y=
"17.45"
/>
<e:Image
id=
"actsShowBtn"
source=
"map2+_png"
x=
"9.29"
y=
"17.45"
/>
<e:Image
id=
"actTips"
source=
"maphot_png"
x=
"96.82"
y=
"3.44"
/>
<e:Image
id=
"actTips"
source=
"maphot_png"
x=
"96.82"
y=
"3.44"
/>
</e:Group>
</e:Group>
<e:Group
id=
"settingsx"
scaleX=
"1"
scaleY=
"1"
touchEnabled=
"false"
bottom=
"23"
left=
"30"
locked=
"true"
>
<e:Group
id=
"settingsx"
scaleX=
"1"
scaleY=
"1"
touchEnabled=
"false"
bottom=
"23"
left=
"30"
>
<e:Group
id=
"settingGroup"
verticalCenter=
"0"
horizontalCenter=
"0"
visible=
"false"
>
<e:Group
id=
"settingGroup"
verticalCenter=
"0"
horizontalCenter=
"0"
visible=
"false"
>
<e:Image
id=
"settingbg"
source=
"设置bg_png"
verticalCenter=
"0"
horizontalCenter=
"0"
scale9Grid=
"44,0,250,89"
/>
<e:Image
id=
"settingbg"
source=
"设置bg_png"
verticalCenter=
"0"
horizontalCenter=
"0"
scale9Grid=
"44,0,250,89"
/>
<e:Button
id=
"musicBtn"
label=
""
horizontalCenter=
"-39"
verticalCenter=
"0"
>
<e:Button
id=
"musicBtn"
label=
""
horizontalCenter=
"-39"
verticalCenter=
"0"
>
...
...
egret/src/mapScene/MapScene.ts
View file @
b88ff049
...
@@ -299,11 +299,12 @@ export default class MapScene extends Scene {
...
@@ -299,11 +299,12 @@ export default class MapScene extends Scene {
}
}
}
}
// 当前关卡的水花动效
if
(
homeData
.
levels
.
length
<
window
[
'total_level'
])
{
if
(
homeData
.
levels
.
length
<
window
[
'total_level'
])
{
const
targetIcon
=
MapScene
.
iconHash
[
target
];
const
targetIcon
=
MapScene
.
iconHash
[
target
];
const
light
=
RES
.
getRes
(
'lightani_png'
);
const
light
=
RES
.
getRes
(
'lightani_png'
);
const
pic
=
new
egret
.
Bitmap
(
light
);
//76 61
const
pic
=
this
[
'pic'
]
||
new
egret
.
Bitmap
(
light
);
//76 61
pic
.
x
=
targetIcon
.
x
+
50
;
pic
.
x
=
targetIcon
.
x
+
50
;
pic
.
y
=
targetIcon
.
y
+
37
+
7
;
pic
.
y
=
targetIcon
.
y
+
37
+
7
;
targetIcon
.
mappart
.
addChildAt
(
pic
,
1
);
targetIcon
.
mappart
.
addChildAt
(
pic
,
1
);
...
@@ -343,7 +344,7 @@ export default class MapScene extends Scene {
...
@@ -343,7 +344,7 @@ export default class MapScene extends Scene {
if
(
homeData
.
levels
.
length
>=
window
[
'total_level'
])
if
(
homeData
.
levels
.
length
>=
window
[
'total_level'
])
lastOrder
=
window
[
'total_level'
];
lastOrder
=
window
[
'total_level'
];
this
.
scroll
.
viewport
.
scrollV
=
this
.
getScrollV
(
lastOrder
,
this
.
stage
.
stageHeight
);
this
.
scroll
.
viewport
.
scrollV
=
this
.
getScrollV
(
lastOrder
,
this
.
stage
.
stageHeight
);
console
.
warn
(
this
.
getScrollV
(
lastOrder
,
this
.
stage
.
stageHeight
));
//
console.warn(this.getScrollV(lastOrder, this.stage.stageHeight));
setTimeout
(()
=>
{
setTimeout
(()
=>
{
try
{
try
{
...
...
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