Exemple #1
0
        public override void onActivated()
        {
            EditorGui    EditorGui    = "EditorGui";
            EWorldEditor EWorldEditor = "EWorldEditor";
            EditorTree   EditorTree   = "EditorTree";

            Creator.EWCreatorWindow      EWCreatorWindow     = "EWCreatorWindow";
            EditorGui.EditorGuiStatusBar EditorGuiStatusBar  = "EditorGuiStatusBar";
            ETransformSelection          ETransformSelection = "ETransformSelection";
            SimGroup MissionGroup = "MissionGroup";

            EditorGui.bringToFront("EWorldEditor");
            EWorldEditor.setVisible(true);

            EditorGui.menuBar.insert(EditorGui.worldMenu, EditorGui.menuBar["dynamicItemInsertPos"].AsInt());

            EWorldEditor.makeFirstResponder(true);
            EditorTree.open(MissionGroup, true);
            EWCreatorWindow.setNewObjectGroup(MissionGroup);

            EWorldEditor.syncGui();

            EditorGuiStatusBar.setSelectionObjectsByCount(EWorldEditor.getSelectionSize().AsString());

            // Should the Transform Selection window open?
            if (EWorldEditor["ETransformSelectionDisplayed"].AsBool())
            {
                ETransformSelection.setVisible(true);
            }

            base.onActivated();
        }
Exemple #2
0
        public override void onDeactivated()
        {
            ETransformSelection ETransformSelection = "ETransformSelection";
            EWorldEditor        EWorldEditor        = "EWorldEditor";
            EditorGui           EditorGui           = "EditorGui";

            ETransformSelection.setVisible(false);
            EWorldEditor.setVisible(false);
            EditorGui.menuBar.remove(EditorGui.worldMenu);
            base.onDeactivated();
        }