|
|
|
@ -14,7 +14,7 @@ import { CADFiler } from "../../DatabaseServices/CADFiler";
|
|
|
|
|
import { CommandServer } from "../../DatabaseServices/CommandServer";
|
|
|
|
|
import { FileServer } from "../../DatabaseServices/FileServer";
|
|
|
|
|
import { Light } from "../../DatabaseServices/Lights/Light";
|
|
|
|
|
import { DoorWindowPanelStore } from "../../DatabaseServices/Room/Entity/Wall/Hole/Window/WindowPanelStore";
|
|
|
|
|
import { doorPanelStore, DoorWindowPanelStore, windowPanelStore } from "../../DatabaseServices/Room/Entity/Wall/Hole/Window/WindowPanelStore";
|
|
|
|
|
import { LimitCommand } from "../../Editor/CommandRegister";
|
|
|
|
|
import { userConfig } from "../../Editor/UserConfig";
|
|
|
|
|
import { RenderType } from "../../GraphicsSystem/RenderType";
|
|
|
|
@ -193,6 +193,13 @@ export class UserConfigStore extends Singleton
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private InitDoorWindowPanelStore()
|
|
|
|
|
{
|
|
|
|
|
DoorWindowPanelStore.GetSingleInstance().InitOption();
|
|
|
|
|
windowPanelStore.InitOption();
|
|
|
|
|
doorPanelStore.InitOption();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**处理用户登陆后的信息 */
|
|
|
|
|
async InitUserData()
|
|
|
|
|
{
|
|
|
|
@ -215,8 +222,9 @@ export class UserConfigStore extends Singleton
|
|
|
|
|
await this.InitCommonPanelStore();
|
|
|
|
|
await this.InitModelingStore();
|
|
|
|
|
await (DownPanelStore.GetInstance() as DownPanelStore).Update();
|
|
|
|
|
this.InitDoorWindowPanelStore();
|
|
|
|
|
RoomBaseParamsStore.GetSingleInstance();
|
|
|
|
|
DoorWindowPanelStore.GetSingleInstance().InitOption();
|
|
|
|
|
|
|
|
|
|
ResourceStore.GetInstance();
|
|
|
|
|
await this.InitCustomCmd();
|
|
|
|
|
await LimitCommand();
|
|
|
|
@ -241,7 +249,6 @@ export class UserConfigStore extends Singleton
|
|
|
|
|
return configs[curName];
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
private ChangeDrillRuleMap(configs: IConfigOption)
|
|
|
|
|
{
|
|
|
|
@ -285,8 +292,6 @@ export class UserConfigStore extends Singleton
|
|
|
|
|
this.ChangeDrillRuleMap(configs);
|
|
|
|
|
return configs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async SaveConfig(type: BoardModalType, store: IConfigStore, option: ISaveOption = {}, tagName?: string)
|
|
|
|
|
{
|
|
|
|
|
const { isInit = false, isCheckName = false, toaster = true } = option;
|
|
|
|
|