修复暂停按钮
This commit is contained in:
@@ -20,8 +20,8 @@ export class Stage extends Laya.Script {
|
||||
@property(Laya.Box)
|
||||
public btn_new: Laya.Box
|
||||
|
||||
@property(Laya.Button)
|
||||
public btn_pause: Laya.Button
|
||||
@property(Laya.Box)
|
||||
public btn_pause: Laya.Box
|
||||
|
||||
@property(Laya.Box)
|
||||
public obj_mask: Laya.Box
|
||||
@@ -143,8 +143,6 @@ export class Stage extends Laya.Script {
|
||||
this.btn_hint_ad = this.btn_hint.getChildByName("Image").getChildByName("ad") as Laya.Box
|
||||
this.btn_hint_label = this.btn_hint.getChildByName("Image").getChildByName("normal").getChildByName("label") as Laya.Label
|
||||
|
||||
this.obj_mask.visible = false
|
||||
|
||||
EventManager.getInstance().RegisterEvent(EVENT_TYPES.NOT_UPDATE_MISTAKE, Stage.EventUpdateMistake)
|
||||
EventManager.getInstance().RegisterEvent(EVENT_TYPES.NOT_UPDATE_PAUSE, Stage.EventUpdatePause)
|
||||
}
|
||||
@@ -174,6 +172,8 @@ export class Stage extends Laya.Script {
|
||||
this.data = doStage
|
||||
this.paused = false
|
||||
|
||||
this.obj_mask.visible = false
|
||||
|
||||
if (config.H_SCREEN) {
|
||||
this.btn_back.visible = this.data.get_stageType() === config.STAGE_TYPE.DC
|
||||
this.btn_new.visible = this.data.get_stageType() === config.STAGE_TYPE.MAIN
|
||||
@@ -210,6 +210,7 @@ export class Stage extends Laya.Script {
|
||||
block.setBlock(doBlock)
|
||||
block.setTipsBgColor(false)
|
||||
block.setSelected(false)
|
||||
block.setPaused(false)
|
||||
}
|
||||
this.onUpdateCandys()
|
||||
this.onClickNote(null)
|
||||
|
||||
Reference in New Issue
Block a user