private void Load_Generation() { try { string rootPath = Util.GetRootPath(this); if (!string.IsNullOrEmpty(rootPath)) { string path = Util.CombinePaths(rootPath, "Data", "Current " + CurrentGeneratorMode.ToString() + " Generation Preset.json"); if (Util.FileExists(path)) { switch (CurrentGeneratorMode) { case GeneratorMode.Map: MGConfig.LoadFromJson(Util.Read(path)); break; case GeneratorMode.Character: CGConfig.LoadFromJson(Util.Read(path)); break; } } } } catch { }; PhysicalBodyTableOpen.Load(); PhysicalBodyControllerOpen.Load(); AttachmentControllerOpen.Load(); }
private static void LoadSetting() { ViewPanelOpen.Load(); CreatePanelOpen.Load(); SettingPanelOpen.Load(); AboutPanelOpen.Load(); ModelGenerationSettingPanelOpen.Load(); SpriteGenerationSettingPanelOpen.Load(); SystemSettingPanelOpen.Load(); ToolPanelOpen.Load(); ColorfulTitle.Load(); ExportPath.Load(); ExportModIndex.Load(); ModelScale.Load(); LodNum.Load(); ShaderPath.Load(); LogMessage.Load(); ShowDialog.Load(); LightMapSupportTypeIndex.Load(); OptimizationSettingPanelOpen.Load(); OptimizeFront.Load(); OptimizeBack.Load(); OptimizeUp.Load(); OptimizeDown.Load(); OptimizeLeft.Load(); OptimizeRight.Load(); EditorDockToScene.Load(); ModelPivot.Load(); }