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
7c4a6fdc
Commit
7c4a6fdc
authored
Sep 04, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bef7ac56
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
63 additions
and
38 deletions
+63
-38
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-0
startpanel_block2.png
egret/resource/assets/startpanel2/startpanel_block2.png
+0
-0
startpanel按钮.png
egret/resource/assets/startpanel2/startpanel按钮.png
+0
-0
startpanel数量 副本 3.png
egret/resource/assets/startpanel2/startpanel数量 副本 3.png
+0
-0
startpanel数量.png
egret/resource/assets/startpanel2/startpanel数量.png
+0
-0
startpanel目标3.png
egret/resource/assets/startpanel2/startpanel目标3.png
+0
-0
startpanel目标33.png
egret/resource/assets/startpanel2/startpanel目标33.png
+0
-0
startpanel通关条件.png
egret/resource/assets/startpanel2/startpanel通关条件.png
+0
-0
default.res.json
egret/resource/default.res.json
+39
-24
StartPanelSkin.exml
egret/resource/skins/StartPanelSkin.exml
+14
-10
StartPanel.ts
egret/src/panels/StartPanel.ts
+8
-4
No files found.
egret/libs/new_wx/MainBase.ts
View file @
7c4a6fdc
...
@@ -132,6 +132,8 @@ export default class MainBase extends eui.UILayer {
...
@@ -132,6 +132,8 @@ export default class MainBase extends eui.UILayer {
RES
.
getResAsync
(
'mapBg_mp3'
);
RES
.
getResAsync
(
'mapBg_mp3'
);
RES
.
getResAsync
(
`nums_png`
);
RES
.
getResAsync
(
`nums_png`
);
RES
.
getResAsync
(
`nums_fnt`
);
RES
.
getResAsync
(
`nums_fnt`
);
RES
.
getResAsync
(
`nums2_png`
);
RES
.
getResAsync
(
`nums2_fnt`
);
if
(
!
window
[
'development'
])
if
(
!
window
[
'development'
])
RES
.
getResAsync
(
`common_json`
);
RES
.
getResAsync
(
`common_json`
);
else
{
else
{
...
...
egret/resource/assets/startpanel2/startpanel_block2.png
0 → 100644
View file @
7c4a6fdc
323 Bytes
egret/resource/assets/startpanel2/按钮.png
→
egret/resource/assets/startpanel2/
startpanel
按钮.png
View file @
7c4a6fdc
File moved
egret/resource/assets/startpanel2/数量 副本 3.png
→
egret/resource/assets/startpanel2/
startpanel
数量 副本 3.png
View file @
7c4a6fdc
File moved
egret/resource/assets/startpanel2/数量.png
→
egret/resource/assets/startpanel2/
startpanel
数量.png
View file @
7c4a6fdc
File moved
egret/resource/assets/startpanel2/startpanel目标3.png
0 → 100644
View file @
7c4a6fdc
1.51 KB
egret/resource/assets/startpanel2/startpanel目标33.png
0 → 100644
View file @
7c4a6fdc
3.59 KB
egret/resource/assets/startpanel2/通关条件.png
→
egret/resource/assets/startpanel2/
startpanel
通关条件.png
View file @
7c4a6fdc
File moved
egret/resource/default.res.json
View file @
7c4a6fdc
...
@@ -44,10 +44,6 @@
...
@@ -44,10 +44,6 @@
"keys"
:
"道具商城_png,按钮 副本_png"
,
"keys"
:
"道具商城_png,按钮 副本_png"
,
"name"
:
"shop"
"name"
:
"shop"
},
},
{
"keys"
:
"通关条件_png,数量_png,数量 副本 3_png,按钮_png"
,
"name"
:
"startpanel"
},
{
{
"keys"
:
"yezi1_png,unlightedStar_png,targetBoard_png,stepsBoard_png,stepNumber9_png,stepNumber8_png,stepNumber7_png,stepNumber6_png,stepNumber5_png,stepNumber4_png,stepNumber3_png,stepNumber2_png,stepNumber1_png,stepNumber0_png,stepBtn_png,starProgress_png,setting_png,scoreNumber9_png,scoreNumber8_png,scoreNumber7_png,scoreNumber6_png,scoreNumber5_png,scoreNumber4_png,scoreNumber3_png,scoreNumber2_png,scoreNumber1_png,scoreNumber0_png,rock6_png,rock5_png,rock4_png,rock3_png,rock2_png,rock1_png,rightMark_png,rightArrow_png,rectLat_png,progressDown_png,playSceneBg_png,magicLionBg_png,magicLion_png,lockUp_png,lockDown_png,lineLight_png,lightedStar_png,leftArrow_png,ice6_png,ice5_png,ice4_png,ice3_png,ice2_png,ice1_png,hammerBtn_png,eleDis9_png,eleDis8_png,eleDis7_png,eleDis6_png,eleDis5_png,eleDis4_png,eleDis3_png,eleDis2_png,eleDis12_png,eleDis11_png,eleDis10_png,eleDis1_png,ele5_png,ele42_png,ele41_png,ele40_png,ele4_png,ele32_png,ele31_png,ele30_png,ele3_png,ele22_png,ele21_png,ele20_png,ele2_png,ele12_png,ele11_png,ele10_png,ele1_png,ele02_png,ele01_png,ele00_png,ele0_png,dangqianfenshu_png,chooseRect_png,boomBtn_png,boom9_png,boom8_png,boom7_png,boom6_png,boom5_png,boom4_png,boom3_png,boom2_png,boom18_png,boom17_png,boom16_png,boom15_png,boom14_png,boom13_png,boom12_png,boom11_png,boom10_png,boom1_png,mainSoundBtnOn_png,mainSettingBg_png,mainQuestionBtn_png,mainMusicBtnOn_png,mainQuitBtn_png,mainSoundBtnOff_png,mainMusicBtnOff_png,targetNumber9_png,targetNumber8_png,targetNumber7_png,targetNumber6_png,targetNumber5_png,targetNumber4_png,targetNumber3_png,targetNumber2_png,targetNumber1_png,targetNumber0_png,ele7_png,ele6_png,bonusFra9_png,bonusFra8_png,bonusFra7_png,bonusFra6_png,bonusFra5_png,bonusFra4_png,bonusFra3_png,bonusFra27_png,bonusFra26_png,bonusFra25_png,bonusFra24_png,bonusFra23_png,bonusFra22_png,bonusFra21_png,bonusFra20_png,bonusFra2_png,bonusFra19_png,bonusFra18_png,bonusFra17_png,bonusFra16_png,bonusFra15_png,bonusFra14_png,bonusFra13_png,bonusFra12_png,bonusFra11_png,bonusFra10_png,bonusFra1_png,bonusShoot_png,guideTxt5_png,guideTxt4_png,guideTxt3_png,guideTxt2_png,guideTxt1_png,guideKnowBtn_png,guideBg_png,propNum9_png,propNum8_png,propNum7_png,propNum6_png,propNum5_png,propNum4_png,propNum3_png,propNum2_png,propNum1_png,propNum0_png,propNumBg_png,bonusTime_png,eleDis19_png,eleDis18_png,eleDis17_png,eleDis16_png,eleDis15_png,eleDis14_png,eleDis13_png"
,
"keys"
:
"yezi1_png,unlightedStar_png,targetBoard_png,stepsBoard_png,stepNumber9_png,stepNumber8_png,stepNumber7_png,stepNumber6_png,stepNumber5_png,stepNumber4_png,stepNumber3_png,stepNumber2_png,stepNumber1_png,stepNumber0_png,stepBtn_png,starProgress_png,setting_png,scoreNumber9_png,scoreNumber8_png,scoreNumber7_png,scoreNumber6_png,scoreNumber5_png,scoreNumber4_png,scoreNumber3_png,scoreNumber2_png,scoreNumber1_png,scoreNumber0_png,rock6_png,rock5_png,rock4_png,rock3_png,rock2_png,rock1_png,rightMark_png,rightArrow_png,rectLat_png,progressDown_png,playSceneBg_png,magicLionBg_png,magicLion_png,lockUp_png,lockDown_png,lineLight_png,lightedStar_png,leftArrow_png,ice6_png,ice5_png,ice4_png,ice3_png,ice2_png,ice1_png,hammerBtn_png,eleDis9_png,eleDis8_png,eleDis7_png,eleDis6_png,eleDis5_png,eleDis4_png,eleDis3_png,eleDis2_png,eleDis12_png,eleDis11_png,eleDis10_png,eleDis1_png,ele5_png,ele42_png,ele41_png,ele40_png,ele4_png,ele32_png,ele31_png,ele30_png,ele3_png,ele22_png,ele21_png,ele20_png,ele2_png,ele12_png,ele11_png,ele10_png,ele1_png,ele02_png,ele01_png,ele00_png,ele0_png,dangqianfenshu_png,chooseRect_png,boomBtn_png,boom9_png,boom8_png,boom7_png,boom6_png,boom5_png,boom4_png,boom3_png,boom2_png,boom18_png,boom17_png,boom16_png,boom15_png,boom14_png,boom13_png,boom12_png,boom11_png,boom10_png,boom1_png,mainSoundBtnOn_png,mainSettingBg_png,mainQuestionBtn_png,mainMusicBtnOn_png,mainQuitBtn_png,mainSoundBtnOff_png,mainMusicBtnOff_png,targetNumber9_png,targetNumber8_png,targetNumber7_png,targetNumber6_png,targetNumber5_png,targetNumber4_png,targetNumber3_png,targetNumber2_png,targetNumber1_png,targetNumber0_png,ele7_png,ele6_png,bonusFra9_png,bonusFra8_png,bonusFra7_png,bonusFra6_png,bonusFra5_png,bonusFra4_png,bonusFra3_png,bonusFra27_png,bonusFra26_png,bonusFra25_png,bonusFra24_png,bonusFra23_png,bonusFra22_png,bonusFra21_png,bonusFra20_png,bonusFra2_png,bonusFra19_png,bonusFra18_png,bonusFra17_png,bonusFra16_png,bonusFra15_png,bonusFra14_png,bonusFra13_png,bonusFra12_png,bonusFra11_png,bonusFra10_png,bonusFra1_png,bonusShoot_png,guideTxt5_png,guideTxt4_png,guideTxt3_png,guideTxt2_png,guideTxt1_png,guideKnowBtn_png,guideBg_png,propNum9_png,propNum8_png,propNum7_png,propNum6_png,propNum5_png,propNum4_png,propNum3_png,propNum2_png,propNum1_png,propNum0_png,propNumBg_png,bonusTime_png,eleDis19_png,eleDis18_png,eleDis17_png,eleDis16_png,eleDis15_png,eleDis14_png,eleDis13_png"
,
"name"
:
"main2"
"name"
:
"main2"
...
@@ -71,6 +67,10 @@
...
@@ -71,6 +67,10 @@
{
{
"keys"
:
"prize2_icon_png"
,
"keys"
:
"prize2_icon_png"
,
"name"
:
"prize2"
"name"
:
"prize2"
},
{
"name"
:
"preload"
,
"keys"
:
"startpanel数量_png,startpanel按钮_png,startpanel数量 副本 3_png,startpanel通关条件_png,startpanel_block2_png,startpanel目标3_png,startpanel目标33_png"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -429,26 +429,6 @@
...
@@ -429,26 +429,6 @@
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"按钮 副本 8_png"
"name"
:
"按钮 副本 8_png"
},
},
{
"url"
:
"assets/startpanel2/按钮.png"
,
"type"
:
"image"
,
"name"
:
"按钮_png"
},
{
"url"
:
"assets/startpanel2/数量 副本 3.png"
,
"type"
:
"image"
,
"name"
:
"数量 副本 3_png"
},
{
"url"
:
"assets/startpanel2/数量.png"
,
"type"
:
"image"
,
"name"
:
"数量_png"
},
{
"url"
:
"assets/startpanel2/通关条件.png"
,
"type"
:
"image"
,
"name"
:
"通关条件_png"
},
{
{
"url"
:
"assets/map/光 副本 4.png"
,
"url"
:
"assets/map/光 副本 4.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
...
@@ -1573,6 +1553,41 @@
...
@@ -1573,6 +1553,41 @@
"url"
:
"assets/common/common_yuanbao.png"
,
"url"
:
"assets/common/common_yuanbao.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"common_yuanbao_png"
"name"
:
"common_yuanbao_png"
},
{
"name"
:
"startpanel数量_png"
,
"type"
:
"image"
,
"url"
:
"assets/startpanel2/startpanel数量.png"
},
{
"name"
:
"startpanel按钮_png"
,
"type"
:
"image"
,
"url"
:
"assets/startpanel2/startpanel按钮.png"
},
{
"name"
:
"startpanel数量 副本 3_png"
,
"type"
:
"image"
,
"url"
:
"assets/startpanel2/startpanel数量 副本 3.png"
},
{
"name"
:
"startpanel通关条件_png"
,
"type"
:
"image"
,
"url"
:
"assets/startpanel2/startpanel通关条件.png"
},
{
"name"
:
"startpanel_block2_png"
,
"type"
:
"image"
,
"url"
:
"assets/startpanel2/startpanel_block2.png"
},
{
"name"
:
"startpanel目标3_png"
,
"type"
:
"image"
,
"url"
:
"assets/startpanel2/startpanel目标3.png"
},
{
"name"
:
"startpanel目标33_png"
,
"type"
:
"image"
,
"url"
:
"assets/startpanel2/startpanel目标33.png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/StartPanelSkin.exml
View file @
7c4a6fdc
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"StartPanelSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"StartPanelSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16cd285c715"
/>
<w:Config
id=
"16cd285c715"
/>
<e:Image
source=
"通关条件_png"
y=
"52"
horizontalCenter=
"0
"
/>
<e:Image
y=
"52"
horizontalCenter=
"0"
source=
"startpanel通关条件_png
"
/>
<e:Label
id=
"levelTxt"
text=
"第一关"
y=
"204"
horizontalCenter=
"0"
size=
"42"
/>
<e:Label
id=
"levelTxt"
text=
"第一关"
y=
"204"
horizontalCenter=
"0"
size=
"42"
/>
<e:Label
id=
"targetTxt"
text=
"在规定的步数内\n消除足够数量目标"
y=
"332"
width=
"444"
x=
"157"
textAlign=
"center"
lineSpacing=
"15"
verticalAlign=
"middle"
height=
"156"
anchorOffsetX=
"0"
textColor=
"0xa32020"
/>
<e:Label
id=
"targetTxt"
text=
"在规定的步数内\n消除足够数量目标"
y=
"332"
width=
"444"
x=
"157"
textAlign=
"center"
lineSpacing=
"15"
verticalAlign=
"middle"
height=
"156"
anchorOffsetX=
"0"
textColor=
"0xa32020"
visible=
"false"
/>
<e:Button
id=
"startBtn"
label=
""
y=
"787"
horizontalCenter=
"0"
>
<e:Button
id=
"startBtn"
label=
""
y=
"787"
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=
"
按钮_png"
source.down=
"按钮_png"
source.disabled=
"
按钮_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"
startpanel按钮_png"
source.down=
"startpanel按钮_png"
source.disabled=
"startpanel
按钮_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<e:Button
id=
"buy2btn"
label=
""
y=
"683"
x=
"240"
>
<e:Button
id=
"buy2btn"
label=
""
y=
"683"
x=
"240"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"
数量 副本 3_png"
source.down=
"数量 副本 3_png"
source.disabled=
"
数量 副本 3_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"
startpanel数量 副本 3_png"
source.down=
"startpanel数量 副本 3_png"
source.disabled=
"startpanel
数量 副本 3_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<e:Button
id=
"buy1btn"
label=
""
y=
"683"
x=
"403"
>
<e:Button
id=
"buy1btn"
label=
""
y=
"683"
x=
"403"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"
数量 副本 3_png"
source.down=
"数量 副本 3_png"
source.disabled=
"
数量 副本 3_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"
startpanel数量 副本 3_png"
source.down=
"startpanel数量 副本 3_png"
source.disabled=
"startpanel
数量 副本 3_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<e:Button
id=
"buy3btn"
label=
""
y=
"683"
x=
"566"
>
<e:Button
id=
"buy3btn"
label=
""
y=
"683"
x=
"566"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"
数量 副本 3_png"
source.down=
"数量 副本 3_png"
source.disabled=
"
数量 副本 3_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"
startpanel数量 副本 3_png"
source.down=
"startpanel数量 副本 3_png"
source.disabled=
"startpanel
数量 副本 3_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
...
@@ -47,4 +47,8 @@
...
@@ -47,4 +47,8 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Group
id=
"scoreGroup"
x=
"223"
y=
"400"
>
<e:Image
source=
"startpanel目标3_png"
x=
"0"
y=
"1"
/>
<e:BitmapLabel
id=
"targetScoreTxt"
x=
"76"
y=
"0"
text=
"33121"
font=
"nums_fnt"
scaleX=
"2"
scaleY=
"2"
/>
</e:Group>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/panels/StartPanel.ts
View file @
7c4a6fdc
...
@@ -23,10 +23,14 @@ export default class StartPanel extends Panel {
...
@@ -23,10 +23,14 @@ export default class StartPanel extends Panel {
mapDataIndex
=
data
-
20
mapDataIndex
=
data
-
20
}
}
const
levelType
=
Chapters
[
mapDataIndex
].
passTarget
.
type
;
const
levelType
=
Chapters
[
mapDataIndex
].
passTarget
.
type
;
if
(
levelType
==
PassType
.
ELEMENT_TARGET
)
if
(
levelType
==
PassType
.
ELEMENT_TARGET
)
{
this
[
'targetTxt'
].
text
=
'在规定步数内
\
n消除足够数量目标'
;
else
if
(
levelType
==
PassType
.
SCORE_TARGET
)
// this['targetTxt'].text = '在规定步数内\n消除足够数量目标';
this
[
'targetTxt'
].
text
=
`在规定步数内\n分数达到
${
Chapters
[
mapDataIndex
].
passTarget
.
score
}
分`
;
}
else
if
(
levelType
==
PassType
.
SCORE_TARGET
)
{
this
[
'targetScoreTxt'
].
text
=
`
${
Chapters
[
mapDataIndex
].
passTarget
.
score
}
`
;
// this['targetTxt'].text = `在规定步数内\n分数达到${Chapters[mapDataIndex].passTarget.score}分`;
}
const
prop2Nums
=
getPropNums
(
PropType
.
BOOM
);
const
prop2Nums
=
getPropNums
(
PropType
.
BOOM
);
const
prop1Nums
=
getPropNums
(
PropType
.
HAMMER
);
const
prop1Nums
=
getPropNums
(
PropType
.
HAMMER
);
...
...
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