Ejemplo n.º 1
0
        public static void Init(DockedPanel container)
        {
            _instance = new SidebarManager();

            _container = new SidebarContainer {
                Dock = DockStyle.Fill
            };

            if (Sledge.Settings.Layout.SidebarWidth <= 10)
            {
                container.Hidden = true;
            }
            else
            {
                container.Width = Sledge.Settings.Layout.SidebarWidth;
            }
            container.Resize += (s, e) => Sledge.Settings.Layout.SidebarWidth = container.Hidden ? 0 : container.Width;

            container.Controls.Add(_container);

            CreatePanel("Textures", new TextureSidebarPanel());
            CreatePanel("Visgroups", new VisgroupSidebarPanel());
            CreatePanel("Contextual Help", new HelpSidebarPanel());
            //CreatePanel("Entities", new EntitySidebarPanel());
            //CreatePanel("Brushes", new BrushSidebarPanel());
        }
Ejemplo n.º 2
0
        public static void Init(Control container)
        {
            _container = new SidebarContainer { Dock = DockStyle.Fill };

            container.Width = Layout.SidebarWidth;
            container.Resize += (s, e) => Layout.SidebarWidth = container.Width;

            container.Controls.Add(_container);

            CreatePanel("Textures", new TextureSidebarPanel());
            CreatePanel("Visgroups", new VisgroupSidebarPanel());
            CreatePanel("Entities", new EntitySidebarPanel());
            CreatePanel("Brushes", new BrushSidebarPanel());
        }
Ejemplo n.º 3
0
        public static void Init(Control container)
        {
            _container = new SidebarContainer {
                Dock = DockStyle.Fill
            };

            container.Width   = Sledge.Settings.Layout.SidebarWidth;
            container.Resize += (s, e) => Sledge.Settings.Layout.SidebarWidth = container.Width;

            container.Controls.Add(_container);

            CreatePanel("Textures", new TextureSidebarPanel());
            CreatePanel("Visgroups", new VisgroupSidebarPanel());
            CreatePanel("Entities", new EntitySidebarPanel());
            CreatePanel("Brushes", new BrushSidebarPanel());
        }
Ejemplo n.º 4
0
        public static void Init(DockedPanel container)
        {
            _instance = new SidebarManager();

            _container = new SidebarContainer { Dock = DockStyle.Fill };

            if (Sledge.Settings.Layout.SidebarWidth <= 10) container.Hidden = true;
            else container.Width = Sledge.Settings.Layout.SidebarWidth;
            container.Resize += (s, e) => Sledge.Settings.Layout.SidebarWidth = container.Hidden ? 0 : container.Width;

            container.Controls.Add(_container);

            CreatePanel("Textures", new TextureSidebarPanel());
            CreatePanel("Visgroups", new VisgroupSidebarPanel());
            CreatePanel("Contextual Help", new HelpSidebarPanel());
            //CreatePanel("Entities", new EntitySidebarPanel());
            //CreatePanel("Brushes", new BrushSidebarPanel());
        }