Example #1
0
        public EditorTools(object owner)
        {
            Owner          = owner;
            Textures       = new TextureTool();
            Segments       = new SegmentTool();
            Walls          = new WallTool();
            Triggers       = new TriggerTool();
            Objects        = new ObjectTool();
            Effects        = new EffectTool();
            Lights         = new LightsTool();
            Reactor        = new ReactorTool();
            Mission        = new MissionTool();
            Diagnostics    = new DiagnosticsTool();
            TextureFilters = new TextureFiltersTab();
            Settings       = new SettingsTool();

            AllTools = new DLELayoutableUserControl[] { Textures, Segments, Walls, Triggers, Objects, Effects, Lights, Reactor, Mission, Diagnostics, TextureFilters, Settings };
            attached = attachedToFloating = false;

            foreach (DLELayoutableUserControl tab in AllTools)
            {
                tab.Owner = (EditorWindow)owner;
            }
        }
Example #2
0
 private void Awake()
 {
     singleton = this;
 }