mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-06-28 13:17:59 +08:00
fix: 编辑器看不见地图
This commit is contained in:
parent
2fed2b1d7e
commit
db4935373a
@ -74,6 +74,9 @@ let clientRegistered = false;
|
|||||||
let dataRegistered = false;
|
let dataRegistered = false;
|
||||||
|
|
||||||
function checkRegistered() {
|
function checkRegistered() {
|
||||||
|
if (main.replayChecking || main.mode === 'editor') {
|
||||||
|
clientRegistered = true;
|
||||||
|
}
|
||||||
if (clientRegistered && dataRegistered) {
|
if (clientRegistered && dataRegistered) {
|
||||||
loading.emit('registered');
|
loading.emit('registered');
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,5 @@ export function create() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createModule() {
|
function createModule() {
|
||||||
LegacyPluginData.create();
|
LegacyPluginData.createLegacy();
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ import { createHook } from './hook';
|
|||||||
import { initReplay } from './replay';
|
import { initReplay } from './replay';
|
||||||
import { initUI } from './ui';
|
import { initUI } from './ui';
|
||||||
|
|
||||||
export function create() {
|
export function createLegacy() {
|
||||||
initFallback();
|
initFallback();
|
||||||
loading.once('coreInit', () => {
|
loading.once('coreInit', () => {
|
||||||
initFiveLayer();
|
initFiveLayer();
|
||||||
|
@ -384,10 +384,10 @@
|
|||||||
</span>
|
</span>
|
||||||
<br />
|
<br />
|
||||||
<span style="font-size: 12px">
|
<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"
|
<input type="radio" id="layerMod" name="layerMod" value="map" checked="checked"
|
||||||
style="margin-left: 5px" />事件层
|
style="margin-left: 5px" />事
|
||||||
<input type="radio" id="layerMod3" name="layerMod" value="fgmap" style="margin-left: 5px" />前景层
|
<input type="radio" id="layerMod3" name="layerMod" value="fgmap" style="margin-left: 5px" />前
|
||||||
</span>
|
</span>
|
||||||
<br>
|
<br>
|
||||||
<div id="viewportButtons" style="margin-bottom: 7px">
|
<div id="viewportButtons" style="margin-bottom: 7px">
|
||||||
@ -512,7 +512,7 @@
|
|||||||
editor.mode_listen();
|
editor.mode_listen();
|
||||||
editor.mobile_listen();
|
editor.mobile_listen();
|
||||||
});
|
});
|
||||||
//main.listen();
|
//main.listen();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- hightlight textarea -->
|
<!-- hightlight textarea -->
|
||||||
|
Loading…
Reference in New Issue
Block a user