fix: 编辑器看不见地图

This commit is contained in:
unanmed 2025-06-13 12:15:58 +08:00
parent 2fed2b1d7e
commit db4935373a
4 changed files with 9 additions and 6 deletions

View File

@ -74,6 +74,9 @@ let clientRegistered = false;
let dataRegistered = false;
function checkRegistered() {
if (main.replayChecking || main.mode === 'editor') {
clientRegistered = true;
}
if (clientRegistered && dataRegistered) {
loading.emit('registered');
}

View File

@ -18,5 +18,5 @@ export function create() {
}
function createModule() {
LegacyPluginData.create();
LegacyPluginData.createLegacy();
}

View File

@ -5,7 +5,7 @@ import { createHook } from './hook';
import { initReplay } from './replay';
import { initUI } from './ui';
export function create() {
export function createLegacy() {
initFallback();
loading.once('coreInit', () => {
initFiveLayer();

View File

@ -384,10 +384,10 @@
</span>
<br />
<span style="font-size: 12px">
<input type="radio" id="layerMod2" name="layerMod" value="bgmap" />景层
<input type="radio" id="layerMod2" name="layerMod" value="bgmap" />
<input type="radio" id="layerMod" name="layerMod" value="map" checked="checked"
style="margin-left: 5px" />事件层
<input type="radio" id="layerMod3" name="layerMod" value="fgmap" style="margin-left: 5px" />景层
style="margin-left: 5px" />事
<input type="radio" id="layerMod3" name="layerMod" value="fgmap" style="margin-left: 5px" />
</span>
<br>
<div id="viewportButtons" style="margin-bottom: 7px">
@ -512,7 +512,7 @@
editor.mode_listen();
editor.mobile_listen();
});
//main.listen();
//main.listen();
</script>
<!-- hightlight textarea -->