diff --git a/packages-user/client-modules/src/action/hotkey.ts b/packages-user/client-modules/src/action/hotkey.ts index 04b124e..64498aa 100644 --- a/packages-user/client-modules/src/action/hotkey.ts +++ b/packages-user/client-modules/src/action/hotkey.ts @@ -76,11 +76,6 @@ gameKey name: '快捷商店', defaults: KeyCode.KeyV }) - .register({ - id: 'statistics', - name: '数据统计', - defaults: KeyCode.KeyB - }) .register({ id: 'viewMap_1', name: '浏览地图_1', diff --git a/packages-user/client-modules/src/render/action.ts b/packages-user/client-modules/src/render/action.ts index c9b5ff4..1d04ae8 100644 --- a/packages-user/client-modules/src/render/action.ts +++ b/packages-user/client-modules/src/render/action.ts @@ -3,7 +3,6 @@ import { MAIN_WIDTH, MAIN_HEIGHT, POP_BOX_WIDTH, CENTER_LOC } from './shared'; import { saveSave, mainUIController, - openStatistics, saveLoad, openSettings, ReplaySettingsUI, @@ -16,9 +15,6 @@ export function createAction() { .realize('save', () => { saveSave(mainUIController, [0, 0, MAIN_WIDTH, MAIN_HEIGHT]); }) - .realize('statistics', () => { - openStatistics(mainUIController); - }) .realize('load', () => { saveLoad(mainUIController, [0, 0, MAIN_WIDTH, MAIN_HEIGHT]); }) diff --git a/packages-user/client-modules/src/render/ui/index.ts b/packages-user/client-modules/src/render/ui/index.ts index 67db8c2..81c0c24 100644 --- a/packages-user/client-modules/src/render/ui/index.ts +++ b/packages-user/client-modules/src/render/ui/index.ts @@ -8,7 +8,6 @@ export * from './controller'; export * from './main'; export * from './save'; export * from './settings'; -export * from './statistics'; export * from './statusBar'; export * from './toolbar'; export * from './viewmap'; diff --git a/packages-user/client-modules/src/render/ui/settings.tsx b/packages-user/client-modules/src/render/ui/settings.tsx index 452c895..bb36674 100644 --- a/packages-user/client-modules/src/render/ui/settings.tsx +++ b/packages-user/client-modules/src/render/ui/settings.tsx @@ -20,7 +20,6 @@ import { generateKeyboardEvent } from '@motajs/system-action'; import { getVitualKeyOnce } from '@motajs/legacy-ui'; import { getAllSavesData, getSaveData, syncFromServer } from '../utils'; import { getInput } from '../components'; -import { openStatistics } from './statistics'; import { saveWithExist } from './save'; import { compressToBase64 } from 'lz-string'; import { ViewMapUI } from './viewmap'; @@ -276,7 +275,12 @@ export const GameInfo = defineComponent(props => { const choose = async (key: ChoiceKey) => { switch (key) { case GameInfoChoice.Statistics: { - openStatistics(props.controller); + getConfirm( + props.controller, + '数据统计尚未完工', + CENTER_LOC, + POP_BOX_WIDTH + ); break; } case GameInfoChoice.Project: { diff --git a/packages-user/client-modules/src/render/ui/statistics.tsx b/packages-user/client-modules/src/render/ui/statistics.tsx index eadb7e7..122cfae 100644 --- a/packages-user/client-modules/src/render/ui/statistics.tsx +++ b/packages-user/client-modules/src/render/ui/statistics.tsx @@ -9,6 +9,8 @@ import { waitbox, ListPage, TextContent } from '../components'; import { DefaultProps } from '@motajs/render-vue'; import { ItemState } from '@user/data-state'; +// 未完工 + export interface StatisticsDataOneFloor { enemyCount: number; potionCount: number;