예제 #1
0
 private void InitializeRightPanel()
 {
     m_rightPanel = new MetroSidePanel();
     MetroSkinManager.ApplyMetroStyle(m_rightPanel);
     m_rightPanel.Text            = "Properties Explorer";
     m_rightPanel.Side            = DockStyle.Right;
     m_rightPanel.IsRolled        = true;
     m_rightPanel.AnimatedRolling = false;
     m_rightPanel.OffsetPadding   = new Padding(0, 38, 0, 24);
     m_rightPanel.Width           = 250;
     m_rightPanel.Height          = m_mainPanel.Height;
     m_rightPanel.Docked         += new EventHandler(sidePanel_DockUndock);
     m_rightPanel.Undocked       += new EventHandler(sidePanel_DockUndock);
     m_mainPanel.Controls.Add(m_rightPanel);
     m_rightPanel.BringToFront();
     m_rightPanel.Content.Controls.Clear();
 }
예제 #2
0
        private void InitializeBottomPanel()
        {
            m_bottomPanel = new MetroSidePanel();
            MetroSkinManager.ApplyMetroStyle(m_bottomPanel);
            m_bottomPanel.Text            = "Project Files";
            m_bottomPanel.Side            = DockStyle.Bottom;
            m_bottomPanel.IsRolled        = true;
            m_bottomPanel.AnimatedRolling = false;
            m_bottomPanel.Height          = 200;
            m_bottomPanel.Width           = m_mainPanel.Width;
            m_bottomPanel.Docked         += new EventHandler(sidePanel_DockUndock);
            m_bottomPanel.Undocked       += new EventHandler(sidePanel_DockUndock);
            m_mainPanel.Controls.Add(m_bottomPanel);
            m_bottomPanel.BringToFront();

            m_projectFilesPanel      = new ProjectFilesControl();
            m_projectFilesPanel.Dock = DockStyle.Fill;
            m_bottomPanel.Content.Controls.Clear();
            m_bottomPanel.Content.Controls.Add(m_projectFilesPanel);
        }
예제 #3
0
        private void InitializeLeftPanel()
        {
            m_leftPanel = new MetroSidePanel();
            MetroSkinManager.ApplyMetroStyle(m_leftPanel);
            m_leftPanel.Text            = "Project Manager";
            m_leftPanel.Side            = DockStyle.Left;
            m_leftPanel.IsRolled        = true;
            m_leftPanel.AnimatedRolling = false;
            m_leftPanel.OffsetPadding   = new Padding(0, 38, 0, 24);
            m_leftPanel.Width           = 250;
            m_leftPanel.Height          = m_mainPanel.Height;
            m_leftPanel.Docked         += new EventHandler(sidePanel_DockUndock);
            m_leftPanel.Undocked       += new EventHandler(sidePanel_DockUndock);
            m_mainPanel.Controls.Add(m_leftPanel);
            m_leftPanel.BringToFront();

            m_projectManagerPanel      = new ProjectManagerControl();
            m_projectManagerPanel.Dock = DockStyle.Fill;
            m_leftPanel.Content.Controls.Add(m_projectManagerPanel);
        }
예제 #4
0
        private void InitializeSceneView()
        {
            m_renderer        = new RendererSurfaceControl();
            m_renderer.Left   = 0;
            m_renderer.Top    = m_toolbar == null ? 0 : m_toolbar.Bottom;
            m_renderer.Width  = Width;
            m_renderer.Height = Height;
            m_renderer.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
            Controls.Add(m_renderer);
            m_renderer.ZoomChanged += m_renderer_ZoomChanged;

            m_gameObjectsPanel = new MetroSidePanel();
            MetroSkinManager.ApplyMetroStyle(m_gameObjectsPanel);
            m_gameObjectsPanel.Text            = "Game Objects";
            m_gameObjectsPanel.Side            = DockStyle.Left;
            m_gameObjectsPanel.IsRolled        = false;
            m_gameObjectsPanel.AnimatedRolling = false;
            m_gameObjectsPanel.IsDockable      = false;
            m_gameObjectsPanel.OffsetPadding   = new Padding(0, DEFAULT_TOOLBAR_HEIGHT, 0, 0);
            m_gameObjectsPanel.Width           = 200;
            m_gameObjectsPanel.Height          = Height;
            m_gameObjectsPanel.Rolled         += new EventHandler(m_gameObjectsPanel_RollUnroll);
            m_gameObjectsPanel.Unrolled       += new EventHandler(m_gameObjectsPanel_RollUnroll);
            Controls.Add(m_gameObjectsPanel);
            m_gameObjectsPanel.BringToFront();

            m_gameObjectsTree = new TreeView();
            MetroSkinManager.ExtendMetroStyle(m_gameObjectsTree);
            m_gameObjectsTree.BorderStyle     = System.Windows.Forms.BorderStyle.None;
            m_gameObjectsTree.Dock            = DockStyle.Fill;
            m_gameObjectsTree.NodeMouseClick += new TreeNodeMouseClickEventHandler(m_gameObjectsTree_NodeMouseClick);
            m_gameObjectsPanel.Content.Controls.Add(m_gameObjectsTree);

            UpdateLayout();
            UpdateToolbarScrollbars();
        }