Flood.Editor.Client.GUI.PaneGroup.MovePaneVertically C# (CSharp) Method

MovePaneVertically() private method

Move pane to a container relative to targetPaneGroup.
private MovePaneVertically ( TabButton pane, uint depth, bool moveUp ) : void
pane Flood.GUI.Controls.TabButton Pane to be moved
depth uint Refer a parent container of targetPaneGroup, each /// depth is one parent container away. Depth 0 add a PaneContainer in the /// same container if the container is vertical, if not adds the pane to a /// new child horizontal container
moveUp bool True to move pane above PaneGroup
return void
        internal void MovePaneVertically(TabButton pane, uint depth, bool moveUp)
        {
            var container = GetParentContainer(this);

            if (container.IsHorizontal)
            {
                var childContainer = new Container(container) {IsHorizontal = false};
                container.ReplacePanel(this,childContainer,false);
                childContainer.InsertPanel(this);
                container = childContainer;
            }

            var paneGroup = new PaneGroup(container, paneManager);
            container.InsertPanel(paneGroup,this,moveUp);
            paneGroup.AddPage(pane);
        }