示例#1
0
        public override void onDeactivated()
        {
            GuiRoadEditorCtrl     RoadEditorGui           = "RoadEditorGui";
            GuiControl            RoadEditorToolbar       = "RoadEditorToolbar";
            GuiWindowCollapseCtrl RoadEditorOptionsWindow = "RoadEditorOptionsWindow";
            GuiWindowCollapseCtrl RoadEditorTreeWindow    = "RoadEditorTreeWindow";

            //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();

            RoadEditorGui.setVisible(false);
            RoadEditorToolbar.setVisible(false);
            RoadEditorOptionsWindow.setVisible(false);
            RoadEditorTreeWindow.setVisible(false);
            this.map.pop();

            base.onDeactivated();
        }