mirror of
				https://github.com/unanmed/HumanBreak.git
				synced 2025-10-31 04:02:59 +08:00 
			
		
		
		
	feat: open statistics
This commit is contained in:
		
							parent
							
								
									db4935373a
								
							
						
					
					
						commit
						e17bc2c3d2
					
				| @ -19,6 +19,7 @@ import { generateKeyboardEvent } from '@motajs/system-action'; | |||||||
| import { getVitualKeyOnce } from '@motajs/legacy-ui'; | import { getVitualKeyOnce } from '@motajs/legacy-ui'; | ||||||
| import { getAllSavesData, getSaveData, syncFromServer } from '../../utils'; | import { getAllSavesData, getSaveData, syncFromServer } from '../../utils'; | ||||||
| import { getInput } from '../components/input'; | import { getInput } from '../components/input'; | ||||||
|  | import { openStatistics } from './statistics'; | ||||||
| 
 | 
 | ||||||
| export interface SettingsProps extends Partial<ChoicesProps>, UIComponentProps { | export interface SettingsProps extends Partial<ChoicesProps>, UIComponentProps { | ||||||
|     loc: ElementLocator; |     loc: ElementLocator; | ||||||
| @ -211,7 +212,7 @@ export const GameInfo = defineComponent<SettingsProps>(props => { | |||||||
|     const choose = async (key: ChoiceKey) => { |     const choose = async (key: ChoiceKey) => { | ||||||
|         switch (key) { |         switch (key) { | ||||||
|             case GameInfoChoice.Statistics: { |             case GameInfoChoice.Statistics: { | ||||||
|                 // todo
 |                 openStatistics(props.controller); | ||||||
|                 break; |                 break; | ||||||
|             } |             } | ||||||
|             case GameInfoChoice.Project: { |             case GameInfoChoice.Project: { | ||||||
|  | |||||||
| @ -1,6 +1,5 @@ | |||||||
| import { DefaultProps, ElementLocator, Font } from '@motajs/render'; | import { DefaultProps, ElementLocator, Font } from '@motajs/render'; | ||||||
| import { computed, defineComponent, ref } from 'vue'; | import { computed, defineComponent, ref } from 'vue'; | ||||||
| import { SetupComponentOptions } from '../components'; |  | ||||||
| import { | import { | ||||||
|     DanmakuIcon, |     DanmakuIcon, | ||||||
|     DoubleArrow, |     DoubleArrow, | ||||||
| @ -21,6 +20,7 @@ import { linear } from 'mutate-animate'; | |||||||
| import { KeyCode } from '@motajs/client-base'; | import { KeyCode } from '@motajs/client-base'; | ||||||
| import { Progress } from '../components/misc'; | import { Progress } from '../components/misc'; | ||||||
| import { generateBinary } from '@motajs/legacy-common'; | import { generateBinary } from '@motajs/legacy-common'; | ||||||
|  | import { SetupComponentOptions } from '@motajs/system-ui'; | ||||||
| 
 | 
 | ||||||
| interface ToolbarProps extends DefaultProps { | interface ToolbarProps extends DefaultProps { | ||||||
|     loc?: ElementLocator; |     loc?: ElementLocator; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user