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
2531d5be
Commit
2531d5be
authored
Aug 27, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f63d56ca
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
25 deletions
+14
-25
exml.json
egret/.wing/exml.json
+5
-0
通关条件.png
egret/resource/assets/startpanel2/通关条件.png
+0
-0
StartPanelSkin.exml
egret/resource/skins/StartPanelSkin.exml
+5
-13
StartPanel.ts
egret/src/panels/StartPanel.ts
+1
-9
home.json
mock/happyclear/home.json
+3
-3
No files found.
egret/.wing/exml.json
View file @
2531d5be
...
@@ -173,5 +173,10 @@
...
@@ -173,5 +173,10 @@
"backgroundType"
:
"user"
,
"backgroundType"
:
"user"
,
"useBgImage"
:
false
,
"useBgImage"
:
false
,
"useBgColor"
:
true
"useBgColor"
:
true
},
"16cd285c715"
:
{
"backgroundType"
:
"user"
,
"useBgImage"
:
false
,
"useBgColor"
:
true
}
}
}
}
\ No newline at end of file
egret/resource/assets/startpanel2/通关条件.png
View replaced file @
f63d56ca
View file @
2531d5be
177 KB
|
W:
|
H:
177 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/skins/StartPanelSkin.exml
View file @
2531d5be
<?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"
/>
<e:Image
source=
"通关条件_png"
y=
"52"
horizontalCenter=
"0"
/>
<e:Image
source=
"通关条件_png"
y=
"52"
horizontalCenter=
"0"
/>
<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"
/>
<e:Button
id=
"startBtn"
label=
""
y=
"7
51
"
horizontalCenter=
"0"
>
<e:Button
id=
"startBtn"
label=
""
y=
"7
87
"
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=
"按钮_png"
source.down=
"按钮_png"
source.disabled=
"按钮_png"
/>
...
@@ -35,18 +36,9 @@
...
@@ -35,18 +36,9 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Group
id=
"nums2"
x=
"228.03"
y=
"682"
width=
"70"
visible=
"false"
>
<e:Label
id=
"nums2Txt"
text=
"888"
size=
"26"
bold=
"true"
x=
"189.03"
y=
"728.04"
width=
"52"
textAlign=
"center"
textColor=
"0xc33700"
verticalAlign=
"middle"
/>
<e:Image
source=
"数量_png"
y=
"0"
horizontalCenter=
"0"
/>
<e:Label
id=
"nums1Txt"
text=
"888"
size=
"26"
bold=
"true"
x=
"358.99"
y=
"728.04"
width=
"52"
textAlign=
"center"
textColor=
"0xc33700"
verticalAlign=
"middle"
/>
<e:Label
id=
"nums2Txt"
text=
"888"
horizontalCenter=
"0"
textColor=
"0x683619"
size=
"26"
verticalCenter=
"0"
bold=
"true"
/>
<e:Label
id=
"nums3Txt"
text=
"888"
size=
"26"
bold=
"true"
x=
"518.15"
y=
"728.04"
textAlign=
"center"
width=
"52"
textColor=
"0xc33700"
verticalAlign=
"middle"
/>
</e:Group>
<e:Group
id=
"nums1"
x=
"390.99"
y=
"682"
width=
"70"
visible=
"false"
>
<e:Image
source=
"数量_png"
y=
"0"
horizontalCenter=
"0"
/>
<e:Label
id=
"nums1Txt"
text=
"888"
horizontalCenter=
"0"
textColor=
"0x683619"
size=
"26"
verticalCenter=
"0"
bold=
"true"
/>
</e:Group>
<e:Group
id=
"nums3"
x=
"552.15"
y=
"682"
width=
"70"
visible=
"false"
>
<e:Image
source=
"数量_png"
y=
"0"
horizontalCenter=
"0"
/>
<e:Label
id=
"nums3Txt"
text=
"888"
horizontalCenter=
"0"
textColor=
"0x683619"
size=
"26"
verticalCenter=
"0"
bold=
"true"
/>
</e:Group>
<e:Button
id=
"closeBtn"
label=
""
x=
"616"
y=
"230"
>
<e:Button
id=
"closeBtn"
label=
""
x=
"616"
y=
"230"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
...
...
egret/src/panels/StartPanel.ts
View file @
2531d5be
...
@@ -25,9 +25,7 @@ export default class StartPanel extends Panel {
...
@@ -25,9 +25,7 @@ export default class StartPanel extends Panel {
//循环15到35
//循环15到35
mapDataIndex
=
data
-
21
mapDataIndex
=
data
-
21
}
}
this
[
'buy1btn'
].
visible
=
false
;
this
[
'nums1'
].
visible
=
true
;
this
[
'nums1Txt'
].
text
=
'7'
;
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消除足够数量目标'
;
this
[
'targetTxt'
].
text
=
'在规定步数内
\
n消除足够数量目标'
;
...
@@ -37,12 +35,6 @@ export default class StartPanel extends Panel {
...
@@ -37,12 +35,6 @@ export default class StartPanel extends Panel {
const
prop2Nums
=
getPropNums
(
PropType
.
BOOM
);
const
prop2Nums
=
getPropNums
(
PropType
.
BOOM
);
const
prop1Nums
=
getPropNums
(
PropType
.
HAMMER
);
const
prop1Nums
=
getPropNums
(
PropType
.
HAMMER
);
const
prop3Nums
=
getPropNums
(
PropType
.
CHANCE_NUM
);
const
prop3Nums
=
getPropNums
(
PropType
.
CHANCE_NUM
);
this
[
'buy1btn'
].
visible
=
prop1Nums
<=
0
;
this
[
'nums1'
].
visible
=
prop1Nums
>
0
;
this
[
'buy2btn'
].
visible
=
prop2Nums
<=
0
;
this
[
'nums2'
].
visible
=
prop2Nums
>
0
;
this
[
'buy3btn'
].
visible
=
prop3Nums
<=
0
;
this
[
'nums3'
].
visible
=
prop3Nums
>
0
;
this
[
'nums1Txt'
].
text
=
prop1Nums
;
this
[
'nums1Txt'
].
text
=
prop1Nums
;
this
[
'nums2Txt'
].
text
=
prop2Nums
;
this
[
'nums2Txt'
].
text
=
prop2Nums
;
this
[
'nums3Txt'
].
text
=
prop3Nums
;
this
[
'nums3Txt'
].
text
=
prop3Nums
;
...
...
mock/happyclear/home.json
View file @
2531d5be
...
@@ -11,15 +11,15 @@
...
@@ -11,15 +11,15 @@
"remainProp"
:
[
"remainProp"
:
[
{
{
"type"
:
2
,
"type"
:
2
,
"num"
:
0
"num"
:
1
},
},
{
{
"type"
:
3
,
"type"
:
3
,
"num"
:
0
"num"
:
8
},
},
{
{
"type"
:
4
,
"type"
:
4
,
"num"
:
0
"num"
:
1
0
}
}
],
],
"remainEnargy"
:
9979
,
"remainEnargy"
:
9979
,
...
...
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