feat: 默认字体使用 normal

This commit is contained in:
unanmed 2025-06-24 22:53:47 +08:00
parent a2848679c8
commit a165e97027
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { createApp } from '@motajs/render';
import { createApp, Font } from '@motajs/render';
import { defineComponent } from 'vue';
import { MAIN_HEIGHT, MAIN_WIDTH } from './shared';
import { loading } from '@user/data-base';
@ -37,6 +37,8 @@ export function createRender() {
sceneController.open(GameTitleUI, {});
mainRenderer.show();
});
Font.setDefaults(new Font('normal'));
}
export * from './components';

View File

@ -237,7 +237,7 @@ export const Save = defineComponent<SaveProps, SaveEmits, keyof SaveEmits>(
if (inDelete.value) {
const confirm = await getConfirm(
props.controller,
`确认要删除存档 ${index}`,
`确认要删除存档 ${index + 1}`,
[420, 240, void 0, void 0, 0.5, 0.5],
240,
{ winskin: 'winskin2.png' }