public static void initializeForestEditor() { Omni.self.Print(" % - Initializing Forest Editor"); gui.ForestEditor.initialize(); ForestEditorGui.initialize(); ForestEditToolbar.initialize(); ((ForestEditorGui)"ForestEditorGui").setVisible(false); ((GuiWindowCollapseCtrl)"ForestEditorPalleteWindow").setVisible(false); ((GuiWindowCollapseCtrl)"ForestEditorPropertiesWindow").setVisible(false); ((ForestEditToolbar)"ForestEditToolbar").setVisible(false); EditorGui EditorGui = "EditorGui"; EditorGui.add("ForestEditorGui"); EditorGui.add("ForestEditorPalleteWindow"); EditorGui.add("ForestEditorPropertiesWindow"); EditorGui.add("ForestEditToolbar"); ObjectCreator oc = new ObjectCreator("ScriptObject", "ForestEditorPlugin", typeof(ForestEditorPlugin)); oc["editorGui"] = "ForestEditorGui"; oc.Create(); ((ForestEditorPlugin)"ForestEditorPlugin").initialize(); }