mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 20:59:37 +08:00
fix: 加载
This commit is contained in:
parent
86e6e76286
commit
2528a36864
@ -57,6 +57,7 @@ import EnemyTarget from '@/panel/enemyTarget.vue';
|
|||||||
import KeyboardPanel from '@/panel/keyboard.vue';
|
import KeyboardPanel from '@/panel/keyboard.vue';
|
||||||
import { MCGenerator } from './main/layout';
|
import { MCGenerator } from './main/layout';
|
||||||
import { ResourceController } from './loader/controller';
|
import { ResourceController } from './loader/controller';
|
||||||
|
import { readyAllResource } from './loader/load';
|
||||||
|
|
||||||
// ----- 类注册
|
// ----- 类注册
|
||||||
Mota.register('class', 'AudioPlayer', AudioPlayer);
|
Mota.register('class', 'AudioPlayer', AudioPlayer);
|
||||||
@ -130,3 +131,5 @@ Mota.register('module', 'MCGenerator', MCGenerator);
|
|||||||
|
|
||||||
main.renderLoaded = true;
|
main.renderLoaded = true;
|
||||||
Mota.require('var', 'hook').emit('renderLoaded');
|
Mota.require('var', 'hook').emit('renderLoaded');
|
||||||
|
|
||||||
|
readyAllResource();
|
||||||
|
1
src/types/core.d.ts
vendored
1
src/types/core.d.ts
vendored
@ -1140,6 +1140,7 @@ interface SplitImageData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface Main extends MainData {
|
interface Main extends MainData {
|
||||||
|
renderLoaded: boolean;
|
||||||
/**
|
/**
|
||||||
* 是否在录像验证中
|
* 是否在录像验证中
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user