static void Init() { var instanceIndex = GameDesignerWindowManager.GetGameDesignerEditorInstance(); GameDesignerEditor window = GameDesignerWindowManager.gameDesignerEditors[instanceIndex]; window.InitEditorData(instanceIndex); window.ChoiceTree.Init(() => { window.Repaint(); }); window.Show(); }
public static GameDesignerEditor InitWithSelectedKey(Type designerModuleType) { var instanceIndex = GameDesignerWindowManager.GetGameDesignerEditorInstance(); GameDesignerEditor window = GameDesignerWindowManager.gameDesignerEditors[instanceIndex]; window.InitEditorData(instanceIndex); window.ChoiceTree.Init(() => { window.Repaint(); }); window.ChoiceTree.SetSelectedKey(designerModuleType); window.Show(); return(window); }