diff --git a/src/core/index.ts b/src/core/index.ts index a88e7a7..41df321 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -57,6 +57,7 @@ import EnemyTarget from '@/panel/enemyTarget.vue'; import KeyboardPanel from '@/panel/keyboard.vue'; import { MCGenerator } from './main/layout'; import { ResourceController } from './loader/controller'; +import { readyAllResource } from './loader/load'; // ----- 类注册 Mota.register('class', 'AudioPlayer', AudioPlayer); @@ -130,3 +131,5 @@ Mota.register('module', 'MCGenerator', MCGenerator); main.renderLoaded = true; Mota.require('var', 'hook').emit('renderLoaded'); + +readyAllResource(); diff --git a/src/types/core.d.ts b/src/types/core.d.ts index 08555bc..ab1c906 100644 --- a/src/types/core.d.ts +++ b/src/types/core.d.ts @@ -1140,6 +1140,7 @@ interface SplitImageData { } interface Main extends MainData { + renderLoaded: boolean; /** * 是否在录像验证中 */