mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-06-28 13:17:59 +08:00
feat: 按键打开读档
This commit is contained in:
parent
2d301cf0d0
commit
5adeff1a11
@ -485,9 +485,6 @@ gameKey
|
|||||||
.realize('book', () => {
|
.realize('book', () => {
|
||||||
core.openBook(true);
|
core.openBook(true);
|
||||||
})
|
})
|
||||||
.realize('load', () => {
|
|
||||||
core.load(true);
|
|
||||||
})
|
|
||||||
.realize('toolbox', () => {
|
.realize('toolbox', () => {
|
||||||
core.openToolbox(true);
|
core.openToolbox(true);
|
||||||
})
|
})
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey } from '@motajs/system-action';
|
||||||
import { MAIN_WIDTH, MAIN_HEIGHT } from './shared';
|
import { MAIN_WIDTH, MAIN_HEIGHT } from './shared';
|
||||||
import { saveSave, mainUIController, openStatistics } from './ui';
|
import { saveSave, mainUIController, openStatistics, saveLoad } from './ui';
|
||||||
|
|
||||||
export function createAction() {
|
export function createAction() {
|
||||||
gameKey
|
gameKey
|
||||||
@ -9,5 +9,8 @@ export function createAction() {
|
|||||||
})
|
})
|
||||||
.realize('statistics', () => {
|
.realize('statistics', () => {
|
||||||
openStatistics(mainUIController);
|
openStatistics(mainUIController);
|
||||||
|
})
|
||||||
|
.realize('load', () => {
|
||||||
|
saveLoad(mainUIController, [0, 0, MAIN_WIDTH, MAIN_HEIGHT]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user