mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-06-28 05:07:59 +08:00
fix: 编辑器看不见地图
This commit is contained in:
parent
2fed2b1d7e
commit
db4935373a
@ -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');
|
||||
}
|
||||
|
@ -18,5 +18,5 @@ export function create() {
|
||||
}
|
||||
|
||||
function createModule() {
|
||||
LegacyPluginData.create();
|
||||
LegacyPluginData.createLegacy();
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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 -->
|
||||
|
Loading…
Reference in New Issue
Block a user