Commit 240d6e87 authored by wildfirecode's avatar wildfirecode

Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev

parents 479de73b 96d16eac
...@@ -387,7 +387,7 @@ export default class MainScene extends Scene { ...@@ -387,7 +387,7 @@ export default class MainScene extends Scene {
this.propBtnCon.hammerBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_hammerBtn, this) 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.propBtnCon.stepBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_stepBtn, this)
//初始化道具信息 //初始化道具信息
this.updatePropNum(); this.updateScene();
//选择框 无需加入场景 //选择框 无需加入场景
var textureChoosed: egret.Texture = RES.getRes("chooseRect_png") var textureChoosed: egret.Texture = RES.getRes("chooseRect_png")
this.choosed = new eui.Image(textureChoosed); this.choosed = new eui.Image(textureChoosed);
...@@ -753,7 +753,7 @@ export default class MainScene extends Scene { ...@@ -753,7 +753,7 @@ export default class MainScene extends Scene {
/** /**
* 更新三个道具 * 更新三个道具
*/ */
updatePropNum() { updateScene() {
this.propBtnCon.boomBtn.propNumShow.count = getPropNums(PropType.BOOM); this.propBtnCon.boomBtn.propNumShow.count = getPropNums(PropType.BOOM);
this.propBtnCon.hammerBtn.propNumShow.count = getPropNums(PropType.HAMMER); this.propBtnCon.hammerBtn.propNumShow.count = getPropNums(PropType.HAMMER);
this.propBtnCon.stepBtn.propNumShow.count = getPropNums(PropType.CHANCE_NUM); this.propBtnCon.stepBtn.propNumShow.count = getPropNums(PropType.CHANCE_NUM);
...@@ -1020,7 +1020,7 @@ export default class MainScene extends Scene { ...@@ -1020,7 +1020,7 @@ export default class MainScene extends Scene {
//如果有返回数据,没有说明是网络问题,不发home //如果有返回数据,没有说明是网络问题,不发home
//更新道具数量 //更新道具数量
NetManager.ins.hc_home(() => { NetManager.ins.hc_home(() => {
this.updatePropNum(); this.updateScene();
}, window['collectRuleId']); }, window['collectRuleId']);
} }
}, prop) }, prop)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment