update: 名人模式解锁条件

This commit is contained in:
Vick Scarlet
2026-07-27 22:03:31 +08:00
parent 6fdbcea925
commit 43751ad2db
7 changed files with 19 additions and 6 deletions
+5 -1
View File
@@ -1,7 +1,7 @@
export default class CyberMain extends ui.view.CyberTheme.CyberMainUI {
constructor() {
super()
this.btnRemake.on(Laya.Event.CLICK, this, () => $ui.switchView(UI.pages.MODE))
this.btnRemake.on(Laya.Event.CLICK, this, () => this.remake())
this.btnAchievement.on(Laya.Event.CLICK, this, () => $ui.switchView(UI.pages.ACHIEVEMENT))
this.btnThanks.on(Laya.Event.CLICK, this, () => $ui.switchView(UI.pages.THANKS))
this.btnGithub.on(Laya.Event.CLICK, this, goto, ['github'])
@@ -40,4 +40,8 @@ export default class CyberMain extends ui.view.CyberTheme.CyberMainUI {
this.btnGithub.visible = !disabled.github
this.btnSaveLoad.visible = !disabled.saveload
}
remake() {
$ui.switchView(core.celebrityLimit ? UI.pages.TALENT : UI.pages.MODE)
}
}