调整几个弹框

This commit is contained in:
2025-05-29 10:25:13 +08:00
parent bf506e26ef
commit 6f3c1f9d6d
12 changed files with 771 additions and 700 deletions

View File

@@ -12,14 +12,14 @@ const { regClass, property } = Laya
export class GameOver extends Laya.Script {
declare owner: Laya.Box
@property(Laya.Sprite)
public btn_second: Laya.Sprite
@property(Laya.Box)
public btn_second: Laya.Box
@property(Laya.Sprite)
public btn_restart: Laya.Sprite
@property(Laya.Box)
public btn_restart: Laya.Box
@property(Laya.Sprite)
public btn_newOrClose: Laya.Sprite
@property(Laya.Box)
public btn_newOrClose: Laya.Box
@property(Laya.Label)
public label_newOrClose: Laya.Label

View File

@@ -16,11 +16,11 @@ export class GamePause extends Laya.Script {
@property(Laya.Label)
public label_diffucuty: Laya.Label
@property(Laya.Sprite)
public btn_continue: Laya.Sprite
@property(Laya.Box)
public btn_continue: Laya.Box
@property(Laya.Sprite)
public btn_restart: Laya.Sprite
@property(Laya.Box)
public btn_restart: Laya.Box
// 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次
onAwake(): void {

View File

@@ -253,7 +253,7 @@ export class Stage extends Laya.Script {
}
onUpdateMistake(): void {
this.label_mistake.text = `Mistake: ${this.data.get_mistake()}/${config.MISTAKE_MAX}`
this.label_mistake.text = `Mistakes: ${this.data.get_mistake()} / ${config.MISTAKE_MAX}`
}
onSetBlock(block: Block, animated: boolean = false): void {