Commit 3e9544b0 authored by wildfirecode's avatar wildfirecode

1

parent 29d75c03
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Button id="goldBtn" label="" x="482.2" y="16.6"> <e:Button id="goldBtn" label="" x="482.2" y="16.6" visible="false">
<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"/>
......
...@@ -54,7 +54,7 @@ export default class MapScene extends Scene { ...@@ -54,7 +54,7 @@ export default class MapScene extends Scene {
} }
protected initEvents() { protected initEvents() {
this['goldBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_goldBtn, this) // this['goldBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_goldBtn, this)
this['bloodBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_bloodBtn, this) this['bloodBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_bloodBtn, this)
this['settingBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.toggleSettings, this) this['settingBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.toggleSettings, this)
this['shopBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_shopBtn, this) this['shopBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_shopBtn, this)
...@@ -73,9 +73,9 @@ export default class MapScene extends Scene { ...@@ -73,9 +73,9 @@ export default class MapScene extends Scene {
this['settingGroup'].visible=!this['settingGroup'].visible; this['settingGroup'].visible=!this['settingGroup'].visible;
} }
onTap_goldBtn() { // onTap_goldBtn() {
PanelCtrl.instance.show('GoldPanel') // PanelCtrl.instance.show('GoldPanel')
} // }
onTap_bloodBtn() { onTap_bloodBtn() {
PanelCtrl.instance.show('bloodPanel') PanelCtrl.instance.show('bloodPanel')
......
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