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
171887eb
Commit
171887eb
authored
Oct 12, 2019
by
wjf
Browse files
Options
Browse Files
Download
Plain Diff
l
parents
8edeef9d
5fca5d3d
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
100 additions
and
19 deletions
+100
-19
index.html
egret/index.html
+2
-2
startpanel_ele0.png
egret/resource/assets/startpanel2/startpanel_ele0.png
+0
-0
startpanel_ele1.png
egret/resource/assets/startpanel2/startpanel_ele1.png
+0
-0
startpanel_ele2.png
egret/resource/assets/startpanel2/startpanel_ele2.png
+0
-0
startpanel_ele3.png
egret/resource/assets/startpanel2/startpanel_ele3.png
+0
-0
startpanel_ele4.png
egret/resource/assets/startpanel2/startpanel_ele4.png
+0
-0
startpanel_ele5.png
egret/resource/assets/startpanel2/startpanel_ele5.png
+0
-0
startpanel_ele7.png
egret/resource/assets/startpanel2/startpanel_ele7.png
+0
-0
startpanel_ele8.png
egret/resource/assets/startpanel2/startpanel_ele8.png
+0
-0
startpanel_ele9.png
egret/resource/assets/startpanel2/startpanel_ele9.png
+0
-0
default.res.json
egret/resource/default.res.json
+43
-8
TargetItemSkin.exml
egret/resource/skins/TargetItemSkin.exml
+10
-3
TargetItemRenderer.ts
egret/src/panels/TargetItemRenderer.ts
+8
-4
home.json
mock/happyclear/home.json
+2
-2
homemax.json
mock/happyclear/homemax.json
+35
-0
No files found.
egret/index.html
View file @
171887eb
...
@@ -58,8 +58,8 @@
...
@@ -58,8 +58,8 @@
{
nums
:
'随机奖励'
,
type
:
'random'
}
{
nums
:
'随机奖励'
,
type
:
'random'
}
];
];
// localStorage.clear();
// localStorage.clear();
window
[
'total_level'
]
=
18
+
13
*
5
;
window
[
'total_level'
]
=
18
+
13
*
7
;
window
[
'last_level'
]
=
8
0
;
//必须大于等于total_level
window
[
'last_level'
]
=
10
0
;
//必须大于等于total_level
// localStorage.clear();
// localStorage.clear();
...
...
egret/resource/assets/startpanel2/startpanel_ele0.png
0 → 100644
View file @
171887eb
10.5 KB
egret/resource/assets/startpanel2/startpanel_ele1.png
0 → 100644
View file @
171887eb
10.4 KB
egret/resource/assets/startpanel2/startpanel_ele2.png
0 → 100644
View file @
171887eb
10.5 KB
egret/resource/assets/startpanel2/startpanel_ele3.png
0 → 100644
View file @
171887eb
10.7 KB
egret/resource/assets/startpanel2/startpanel_ele4.png
0 → 100644
View file @
171887eb
9.29 KB
egret/resource/assets/startpanel2/startpanel_
xxxx
.png
→
egret/resource/assets/startpanel2/startpanel_
ele5
.png
View file @
171887eb
File moved
egret/resource/assets/startpanel2/startpanel_
ice1
.png
→
egret/resource/assets/startpanel2/startpanel_
ele7
.png
View file @
171887eb
File moved
egret/resource/assets/startpanel2/startpanel_ele8.png
0 → 100644
View file @
171887eb
8.43 KB
egret/resource/assets/startpanel2/startpanel_ele9.png
0 → 100644
View file @
171887eb
7.45 KB
egret/resource/default.res.json
View file @
171887eb
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
"name"
:
"prize2"
"name"
:
"prize2"
},
},
{
{
"keys"
:
"startpanel通关条件_png,startpanel数量_png,startpanel数量 副本 3_png,startpanel目标33_png,startpanel目标3_png,startpanel按钮_png,startpanel_
ice1_png,startpanel_ele6_png,startpanel_block2_png,startpanel_xxxx
_png"
,
"keys"
:
"startpanel通关条件_png,startpanel数量_png,startpanel数量 副本 3_png,startpanel目标33_png,startpanel目标3_png,startpanel按钮_png,startpanel_
ele9_png,startpanel_ele8_png,startpanel_ele7_png,startpanel_ele6_png,startpanel_ele5_png,startpanel_ele4_png,startpanel_ele3_png,startpanel_ele2_png,startpanel_ele1_png,startpanel_ele0_png,startpanel_block2
_png"
,
"name"
:
"startpanel"
"name"
:
"startpanel"
},
},
{
{
...
@@ -1495,11 +1495,6 @@
...
@@ -1495,11 +1495,6 @@
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"startpanel_ele6_png"
"name"
:
"startpanel_ele6_png"
},
},
{
"url"
:
"assets/startpanel2/startpanel_ice1.png"
,
"type"
:
"image"
,
"name"
:
"startpanel_ice1_png"
},
{
{
"url"
:
"assets/mainScene/main_mapbottom.png"
,
"url"
:
"assets/mainScene/main_mapbottom.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
...
@@ -1971,9 +1966,49 @@
...
@@ -1971,9 +1966,49 @@
"name"
:
"eggPiece5_png"
"name"
:
"eggPiece5_png"
},
},
{
{
"url"
:
"assets/startpanel2/startpanel_xxxx.png"
,
"url"
:
"assets/startpanel2/startpanel_ele7.png"
,
"type"
:
"image"
,
"name"
:
"startpanel_ele7_png"
},
{
"url"
:
"assets/startpanel2/startpanel_ele5.png"
,
"type"
:
"image"
,
"name"
:
"startpanel_ele5_png"
},
{
"url"
:
"assets/startpanel2/startpanel_ele9.png"
,
"type"
:
"image"
,
"name"
:
"startpanel_ele9_png"
},
{
"url"
:
"assets/startpanel2/startpanel_ele8.png"
,
"type"
:
"image"
,
"name"
:
"startpanel_ele8_png"
},
{
"url"
:
"assets/startpanel2/startpanel_ele4.png"
,
"type"
:
"image"
,
"name"
:
"startpanel_ele4_png"
},
{
"url"
:
"assets/startpanel2/startpanel_ele3.png"
,
"type"
:
"image"
,
"name"
:
"startpanel_ele3_png"
},
{
"url"
:
"assets/startpanel2/startpanel_ele2.png"
,
"type"
:
"image"
,
"name"
:
"startpanel_ele2_png"
},
{
"url"
:
"assets/startpanel2/startpanel_ele1.png"
,
"type"
:
"image"
,
"name"
:
"startpanel_ele1_png"
},
{
"url"
:
"assets/startpanel2/startpanel_ele0.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"startpanel_
xxxx
_png"
"name"
:
"startpanel_
ele0
_png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/TargetItemSkin.exml
View file @
171887eb
...
@@ -2,8 +2,15 @@
...
@@ -2,8 +2,15 @@
<e:Skin
class=
"TargetItemSkin"
width=
"60"
height=
"81"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"TargetItemSkin"
width=
"60"
height=
"81"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16cfafb2357"
/>
<w:Config
id=
"16cfafb2357"
/>
<e:Image
source=
"startpanel_block2_png"
x=
"0"
y=
"0"
/>
<e:Image
source=
"startpanel_block2_png"
x=
"0"
y=
"0"
/>
<e:Image
id=
"icon_LOLLIPOP"
source=
"startpanel_ele6_png"
width=
"60"
height=
"60"
/>
<e:Image
id=
"icon0"
width=
"60"
height=
"60"
source=
"startpanel_ele0_png"
/>
<e:Image
id=
"icon_ICE"
source=
"startpanel_ice1_png"
width=
"60"
height=
"60"
/>
<e:Image
id=
"icon1"
width=
"60"
height=
"60"
source=
"startpanel_ele1_png"
/>
<e:Image
id=
"icon_xxx"
width=
"60"
height=
"60"
source=
"startpanel_xxxx_png"
/>
<e:Image
id=
"icon2"
width=
"60"
height=
"60"
source=
"startpanel_ele2_png"
/>
<e:Image
id=
"icon3"
width=
"60"
height=
"60"
source=
"startpanel_ele3_png"
/>
<e:Image
id=
"icon4"
width=
"60"
height=
"60"
source=
"startpanel_ele4_png"
/>
<e:Image
id=
"icon5"
width=
"60"
height=
"60"
source=
"startpanel_ele5_png"
/>
<e:Image
id=
"icon6"
width=
"60"
height=
"60"
source=
"startpanel_ele6_png"
/>
<e:Image
id=
"icon7"
width=
"60"
height=
"60"
source=
"startpanel_ele7_png"
/>
<e:Image
id=
"icon8"
width=
"60"
height=
"60"
source=
"startpanel_ele8_png"
/>
<e:Image
id=
"icon9"
width=
"60"
height=
"60"
source=
"startpanel_ele9_png"
/>
<e:BitmapLabel
id=
"txt"
text=
"X0"
font=
"nums2_fnt"
scaleX=
"0.4"
scaleY=
"0.4"
y=
"46"
horizontalCenter=
"0"
/>
<e:BitmapLabel
id=
"txt"
text=
"X0"
font=
"nums2_fnt"
scaleX=
"0.4"
scaleY=
"0.4"
y=
"46"
horizontalCenter=
"0"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/panels/TargetItemRenderer.ts
View file @
171887eb
import
getSkinPath
from
"../../libs/new_wx/utils/getSkinPath"
;
import
getSkinPath
from
"../../libs/new_wx/utils/getSkinPath"
;
import
{
ElementType
}
from
"../something/enum/ElementType"
;
export
default
class
TargetItemRenderer
extends
eui
.
ItemRenderer
{
export
default
class
TargetItemRenderer
extends
eui
.
ItemRenderer
{
constructor
()
{
constructor
()
{
super
();
super
();
...
@@ -7,9 +6,14 @@ export default class TargetItemRenderer extends eui.ItemRenderer {
...
@@ -7,9 +6,14 @@ export default class TargetItemRenderer extends eui.ItemRenderer {
}
}
dataChanged
(){
dataChanged
(){
this
[
'icon_LOLLIPOP'
].
visible
=
this
.
data
.
type
==
ElementType
.
LOLLIPOP
;
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
this
[
'icon_ICE'
].
visible
=
this
.
data
.
type
==
ElementType
.
ICE
;
this
[
'icon'
+
i
].
visible
=
false
;
this
[
'icon_xxx'
].
visible
=
this
.
data
.
type
==
ElementType
.
ROCK
;
}
this
[
'icon'
+
this
.
data
.
type
].
visible
=
true
;
this
[
'txt'
].
text
=
`X
${
this
.
data
.
count
}
`
;
this
[
'txt'
].
text
=
`X
${
this
.
data
.
count
}
`
;
}
}
}
}
\ No newline at end of file
mock/happyclear/home.json
View file @
171887eb
...
@@ -522,9 +522,9 @@
...
@@ -522,9 +522,9 @@
"num"
:
2
"num"
:
2
}
}
],
],
"remainEnargy"
:
99
79
,
"remainEnargy"
:
99
,
"askForEnergy"
:
false
,
"askForEnergy"
:
false
,
"canReceiveTreasureBoxNum"
:
0
,
"canReceiveTreasureBoxNum"
:
1
0
,
"nextRangeStarsNum"
:
150
"nextRangeStarsNum"
:
150
}
}
}
}
\ No newline at end of file
mock/happyclear/homemax.json
0 → 100644
View file @
171887eb
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1566885811031
,
"data"
:
{
"wealth"
:
7960
,
"totalStars"
:
145
,
"levels"
:
[
{
"levelNum"
:
1
,
"maxScore"
:
36320
,
"stars"
:
3
}
],
"remainProp"
:
[
{
"type"
:
2
,
"num"
:
0
},
{
"type"
:
3
,
"num"
:
0
},
{
"type"
:
4
,
"num"
:
0
}
],
"remainEnargy"
:
99
,
"askForEnergy"
:
false
,
"canReceiveTreasureBoxNum"
:
10
,
"nextRangeStarsNum"
:
150
}
}
\ 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