chore: 右侧状态栏改为示例

This commit is contained in:
unanmed 2025-09-28 16:25:53 +08:00
parent 038d8b06c3
commit 8531a7eea6
2 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import { GameUI, SetupComponentOptions } from '@motajs/system-ui'; import { GameUI, SetupComponentOptions } from '@motajs/system-ui';
import { computed, ComputedRef, defineComponent, shallowReactive } from 'vue'; import { computed, ComputedRef, defineComponent, shallowReactive } from 'vue';
import { TextContent } from '../components'; import { TextContent } from '../components';
import { DefaultProps, ElementLocator, Font } from '@motajs/render';
import { import {
DefaultProps, DefaultProps,
ElementLocator, ElementLocator,
@ -144,6 +145,10 @@ export const LeftStatusBar = defineComponent<StatusBarProps<ILeftHeroStatus>>(
return num.toString().padStart(2, '0'); return num.toString().padStart(2, '0');
}; };
const onNumpad = () => {
inNumpad.value = !inNumpad.value;
};
//#region 属性显示 //#region 属性显示
/** 一般属性 */ /** 一般属性 */

View File

@ -155,6 +155,8 @@ export interface ReplayingStatus {
played: number; played: number;
/** 总长度 */ /** 总长度 */
total: number; total: number;
/** 是否是录像模式 */
replaying: boolean;
} }
export interface ReplayingProps extends ToolbarProps { export interface ReplayingProps extends ToolbarProps {