feat: open statistics

This commit is contained in:
unanmed 2025-06-13 13:55:07 +08:00
parent db4935373a
commit e17bc2c3d2
2 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@ import { generateKeyboardEvent } from '@motajs/system-action';
import { getVitualKeyOnce } from '@motajs/legacy-ui';
import { getAllSavesData, getSaveData, syncFromServer } from '../../utils';
import { getInput } from '../components/input';
import { openStatistics } from './statistics';
export interface SettingsProps extends Partial<ChoicesProps>, UIComponentProps {
loc: ElementLocator;
@ -211,7 +212,7 @@ export const GameInfo = defineComponent<SettingsProps>(props => {
const choose = async (key: ChoiceKey) => {
switch (key) {
case GameInfoChoice.Statistics: {
// todo
openStatistics(props.controller);
break;
}
case GameInfoChoice.Project: {

View File

@ -1,6 +1,5 @@
import { DefaultProps, ElementLocator, Font } from '@motajs/render';
import { computed, defineComponent, ref } from 'vue';
import { SetupComponentOptions } from '../components';
import {
DanmakuIcon,
DoubleArrow,
@ -21,6 +20,7 @@ import { linear } from 'mutate-animate';
import { KeyCode } from '@motajs/client-base';
import { Progress } from '../components/misc';
import { generateBinary } from '@motajs/legacy-common';
import { SetupComponentOptions } from '@motajs/system-ui';
interface ToolbarProps extends DefaultProps {
loc?: ElementLocator;