Ejemplo n.º 1
0
        public static void initializeRoadEditor()
        {
            Omni.self.Print(" % Initializing Road and Path Editor");

            //exec( "./roadEditor.cs" );
            //RoadEditor_initialize();
            roadEditor.initialize();

            //exec( "./roadEditorGui.gui" );
            //RoadEditorGui_initialize();
            RoadEditorGui.initialize();


            //exec( "./roadEditorToolbar.gui");
            //RoadEditorToolbar_initialize();
            RoadEditorToolbar.initialize();

            //exec( "./roadEditorGui.cs" );

            // Add ourselves to EditorGui, where all the other tools reside
            RoadEditorGui     roadEditorGui     = "RoadEditorGui";
            RoadEditorToolbar roadEditorToolbar = "RoadEditorToolbar";

            roadEditorGui.setVisible(false);
            roadEditorToolbar.setVisible(false);

            ((GuiWindowCollapseCtrl)"RoadEditorOptionsWindow").setVisible(false);
            ((GuiWindowCollapseCtrl)"RoadEditorTreeWindow").setVisible(false);

            EditorGui EditorGui = "EditorGui";

            EditorGui.add("RoadEditorGui");
            EditorGui.add("RoadEditorToolbar");
            EditorGui.add("RoadEditorOptionsWindow");
            EditorGui.add("RoadEditorTreeWindow");

            ObjectCreator oRoadEditorPlugin = new ObjectCreator("ScriptObject", "RoadEditorPlugin",
                                                                typeof(RoadEditorPlugin));

            oRoadEditorPlugin["editorGui"] = "RoadEditorGui";
            oRoadEditorPlugin.Create();

            RoadEditorPlugin RoadEditorPlugin = "RoadEditorPlugin";

            RoadEditorPlugin.initialize();
        }
Ejemplo n.º 2
0
        public override void onActivated()
        {
            RoadEditorGui         RoadEditorGui           = "RoadEditorGui";
            GuiControl            RoadEditorToolbar       = "RoadEditorToolbar";
            GuiWindowCollapseCtrl RoadEditorOptionsWindow = "RoadEditorOptionsWindow";
            GuiWindowCollapseCtrl RoadEditorTreeWindow    = "RoadEditorTreeWindow";
            GuiTreeViewCtrl       RoadTreeView            = "RoadTreeView";

            EditorGui.EditorGuiStatusBar EditorGuiStatusBar = "EditorGuiStatusBar";
            EditorGui EditorGui = "EditorGui";

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

            this.readSettings();

            ((GuiBitmapButtonCtrl)
             ((GuiDynamicCtrlArrayControl)"ToolsPaletteArray").findObjectByInternalName("RoadEditorAddRoadMode",
                                                                                        false)).performClick();

            EditorGui.bringToFront(RoadEditorGui);

            RoadEditorGui.setVisible(true);
            RoadEditorGui.makeFirstResponder(true);
            RoadEditorToolbar.setVisible(true);

            RoadEditorOptionsWindow.setVisible(true);
            RoadEditorTreeWindow.setVisible(true);

            RoadTreeView.open("ServerDecalRoadSet", true);

            this.map.push();

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

            base.onActivated();
        }