Exemple #1
0
        public override void onActivated()
        {
            GuiWindowCollapseCtrl MissionAreaEditorPropertiesWindow = "MissionAreaEditorPropertiesWindow";
            GuiWindowCollapseCtrl MissionAreaEditorTerrainWindow    = "MissionAreaEditorTerrainWindow";
            MissionAreaEditorGui  MissionAreaEditorGui = "MissionAreaEditorGui";
            EditorGui             EditorGui            = "EditorGui";

            EditorGui.EditorGuiStatusBar EditorGuiStatusBar = "EditorGuiStatusBar";

            //Copyright Winterleaf Entertainment L.L.C. 2013
            this["isActive"] = true.AsString();
            //Copyright Winterleaf Entertainment L.L.C. 2013
            this.readSettings();

            EditorGui.bringToFront("MissionAreaEditorGui");

            MissionAreaEditorGui.setVisible(true);
            MissionAreaEditorGui.makeFirstResponder(true);

            MissionAreaEditorTerrainWindow.setVisible(true);
            MissionAreaEditorPropertiesWindow.setVisible(true);

            // Set the status bar here until all tool have been hooked up
            EditorGuiStatusBar.setInfo("Mission Area Editor.");
            EditorGuiStatusBar.setSelection("");

            // Allow the Gui to setup.
            MissionAreaEditorGui.onEditorActivated();

            base.onActivated();
        }
Exemple #2
0
        public static void initializeMissionAreaEditor()
        {
            Omni.self.Print(" % - Initializing Mission Area Editor");

            //exec( "./missionAreaEditor.ed.cs" );
            //MissionAreaEditor_initialize();
            gui.MissionAreaEditor.initialize();
            //exec( "./missionAreaEditorGui.ed.gui" );
            //MissionAreaEditorGui_initialize();
            MissionAreaEditorGui.initialize();
            //exec( "./missionAreaEditorGui.ed.cs" );

            // Add ourselves to EditorGui, where all the other tools reside
            MissionAreaEditorGui oMissionAreaEditorGui = "MissionAreaEditorGui";

            oMissionAreaEditorGui.setVisible(false);

            GuiWindowCollapseCtrl MissionAreaEditorTerrainWindow = "MissionAreaEditorTerrainWindow";

            MissionAreaEditorTerrainWindow.setVisible(false);

            GuiWindowCollapseCtrl MissionAreaEditorPropertiesWindow = "MissionAreaEditorPropertiesWindow";

            MissionAreaEditorPropertiesWindow.setVisible(false);

            EditorGui EditorGui = "EditorGui";

            EditorGui.add("MissionAreaEditorGui");
            EditorGui.add("MissionAreaEditorTerrainWindow");
            EditorGui.add("MissionAreaEditorPropertiesWindow");

            ObjectCreator ocMissionAreaEditorPlugin = new ObjectCreator("ScriptObject", "MissionAreaEditorPlugin",
                                                                        typeof(MissionAreaEditorPlugin));

            ocMissionAreaEditorPlugin["editorGui"] = "MissionAreaEditorGui";
            ocMissionAreaEditorPlugin.Create();


            MissionAreaEditorPlugin oMissionAreaEditorPlugin = "MissionAreaEditorPlugin";

            oMissionAreaEditorPlugin.initialize();
        }
Exemple #3
0
        public override void onDeactivated()
        {
            GuiWindowCollapseCtrl MissionAreaEditorPropertiesWindow = "MissionAreaEditorPropertiesWindow";
            GuiWindowCollapseCtrl MissionAreaEditorTerrainWindow    = "MissionAreaEditorTerrainWindow";
            MissionAreaEditorGui  MissionAreaEditorGui = "MissionAreaEditorGui";

            //Copyright Winterleaf Entertainment L.L.C. 2013
            if (!this["isActive"].AsBool())
            {
                return;
            }
            this["isActive"] = false.AsString();
            //Copyright Winterleaf Entertainment L.L.C. 2013
            this.writeSettings();

            MissionAreaEditorGui.setVisible(false);
            MissionAreaEditorTerrainWindow.setVisible(false);
            MissionAreaEditorPropertiesWindow.setVisible(false);

            // Allow the Gui to cleanup.
            MissionAreaEditorGui.onEditorDeactivated();

            base.onDeactivated();
        }