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
3c3da063
Commit
3c3da063
authored
Aug 29, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
421ed1d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-0
ShopPanel.ts
egret/src/panels/ShopPanel.ts
+3
-0
home.json
mock/happyclear/home.json
+1
-1
No files found.
egret/src/mapScene/MapScene.ts
View file @
3c3da063
...
...
@@ -247,6 +247,7 @@ export default class MapScene extends Scene {
}
onTap_boxLayer
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
1
));
const
data
=
getHomeData
();
if
(
data
.
canReceiveTreasureBoxNum
>
0
)
{
this
[
'boxLayer'
].
visible
=
true
;
...
...
egret/src/panels/ShopPanel.ts
View file @
3c3da063
...
...
@@ -27,6 +27,7 @@ export default class ShopPanel extends Panel {
onBuy1
()
{
PanelCtrl
.
instance
.
show
(
'Buy1'
);
NetManager
.
ins
.
clickLog
(
getlogItem
(
9
));
// this.buyBtn1.enabled = false;
// NetManager.ins.hc_exchange((success) => {
// this.buyBtn1.enabled = true;
...
...
@@ -40,6 +41,7 @@ export default class ShopPanel extends Panel {
onBuy2
()
{
PanelCtrl
.
instance
.
show
(
'Buy2'
);
NetManager
.
ins
.
clickLog
(
getlogItem
(
6
));
// this.buyBtn2.enabled = false;
// NetManager.ins.hc_exchange((success) => {
// this.buyBtn2.enabled = true;
...
...
@@ -52,6 +54,7 @@ export default class ShopPanel extends Panel {
}
onBuy3
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
12
));
PanelCtrl
.
instance
.
show
(
'Buy3'
);
// this.buyBtn3.enabled = false;
// NetManager.ins.hc_exchange((success) => {
...
...
mock/happyclear/home.json
View file @
3c3da063
...
...
@@ -24,7 +24,7 @@
],
"remainEnargy"
:
0
,
"askForEnergy"
:
false
,
"canReceiveTreasureBoxNum"
:
0
,
"canReceiveTreasureBoxNum"
:
1
0
,
"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