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
96d16eac
Commit
96d16eac
authored
Nov 08, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
73b548fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
MainScene.ts
egret/src/mainScene/MainScene.ts
+3
-3
No files found.
egret/src/mainScene/MainScene.ts
View file @
96d16eac
...
...
@@ -387,7 +387,7 @@ export default class MainScene extends Scene {
this
.
propBtnCon
.
hammerBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_hammerBtn
,
this
)
this
.
propBtnCon
.
stepBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_stepBtn
,
this
)
//初始化道具信息
this
.
update
PropNum
();
this
.
update
Scene
();
//选择框 无需加入场景
var
textureChoosed
:
egret
.
Texture
=
RES
.
getRes
(
"chooseRect_png"
)
this
.
choosed
=
new
eui
.
Image
(
textureChoosed
);
...
...
@@ -753,7 +753,7 @@ export default class MainScene extends Scene {
/**
* 更新三个道具
*/
update
PropNum
()
{
update
Scene
()
{
this
.
propBtnCon
.
boomBtn
.
propNumShow
.
count
=
getPropNums
(
PropType
.
BOOM
);
this
.
propBtnCon
.
hammerBtn
.
propNumShow
.
count
=
getPropNums
(
PropType
.
HAMMER
);
this
.
propBtnCon
.
stepBtn
.
propNumShow
.
count
=
getPropNums
(
PropType
.
CHANCE_NUM
);
...
...
@@ -1020,7 +1020,7 @@ export default class MainScene extends Scene {
//如果有返回数据,没有说明是网络问题,不发home
//更新道具数量
NetManager
.
ins
.
hc_home
(()
=>
{
this
.
update
PropNum
();
this
.
update
Scene
();
},
window
[
'collectRuleId'
]);
}
},
prop
)
...
...
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