From 669ad11c8213a0d1e485ca2342aac592c951a45b Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sun, 29 Oct 2023 22:13:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E7=9A=84ui=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/libs/control.js | 4 +- public/libs/events.js | 2 +- src/App.vue | 89 ++++++++++++++++++++++++++++++++++++-- src/App2.vue | 8 ++-- src/core/main/custom/ui.ts | 17 ++++++++ src/core/main/game.ts | 3 ++ src/core/main/init/ui.ts | 38 ++++++++++++++-- src/main.ts | 2 +- src/plugin/uiController.ts | 58 ++++++++++++------------- src/styles.less | 20 +++------ 10 files changed, 182 insertions(+), 59 deletions(-) diff --git a/public/libs/control.js b/public/libs/control.js index 02cca5c..6e4f8e3 100644 --- a/public/libs/control.js +++ b/public/libs/control.js @@ -2317,7 +2317,7 @@ control.prototype._doSL_load = function (id, callback) { 1 )[0]; if (!main.replayChecking) { - mota.plugin.ui.startOpened.value = false; + mota.ui.fixed.open('start'); } if (core.isPlaying() && !core.status.gameOver) { core.control.autosave(0); @@ -2334,7 +2334,7 @@ control.prototype._doSL_load = function (id, callback) { null, function (data) { if (!main.replayChecking && data) { - mota.plugin.ui.startOpened.value = false; + mota.ui.fixed.closeByName('start'); } if (id == 'autoSave' && data != null) { core.saves.autosave.data = data; diff --git a/public/libs/events.js b/public/libs/events.js index 0299ef7..ca0051f 100644 --- a/public/libs/events.js +++ b/public/libs/events.js @@ -26,7 +26,7 @@ events.prototype.startGame = function (hard, seed, route, callback) { hard = hard || ''; core.dom.gameGroup.style.display = 'block'; if (!main.replayChecking) { - mota.plugin.ui.startOpened.value = false; + mota.ui.fixed.closeByName('start'); } if (main.mode != 'play') return; diff --git a/src/App.vue b/src/App.vue index 7644a4c..3f5213a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,14 +1,43 @@ diff --git a/src/App2.vue b/src/App2.vue index b47bcc1..094e64e 100644 --- a/src/App2.vue +++ b/src/App2.vue @@ -1,18 +1,18 @@