From 5adeff1a11420012f371958369f83b1aedd99a14 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Tue, 24 Jun 2025 21:07:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8C=89=E9=94=AE=E6=89=93=E5=BC=80?= =?UTF-8?q?=E8=AF=BB=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages-user/client-modules/src/action/hotkey.ts | 3 --- packages-user/client-modules/src/render/action.ts | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages-user/client-modules/src/action/hotkey.ts b/packages-user/client-modules/src/action/hotkey.ts index 97ef6ee..8bca5c7 100644 --- a/packages-user/client-modules/src/action/hotkey.ts +++ b/packages-user/client-modules/src/action/hotkey.ts @@ -485,9 +485,6 @@ gameKey .realize('book', () => { core.openBook(true); }) - .realize('load', () => { - core.load(true); - }) .realize('toolbox', () => { core.openToolbox(true); }) diff --git a/packages-user/client-modules/src/render/action.ts b/packages-user/client-modules/src/render/action.ts index 1ce6849..99606b5 100644 --- a/packages-user/client-modules/src/render/action.ts +++ b/packages-user/client-modules/src/render/action.ts @@ -1,6 +1,6 @@ import { gameKey } from '@motajs/system-action'; import { MAIN_WIDTH, MAIN_HEIGHT } from './shared'; -import { saveSave, mainUIController, openStatistics } from './ui'; +import { saveSave, mainUIController, openStatistics, saveLoad } from './ui'; export function createAction() { gameKey @@ -9,5 +9,8 @@ export function createAction() { }) .realize('statistics', () => { openStatistics(mainUIController); + }) + .realize('load', () => { + saveLoad(mainUIController, [0, 0, MAIN_WIDTH, MAIN_HEIGHT]); }); }