public VerticalScrollPane(String Name, Vector2 Location, TAtlasInfo?Atlas, float Depth, Point PaneDimensions, Color BackgroundColour) : base(Name, Location, Atlas, Depth)
 {
     Enabled                = true;
     pMinHeight             = (int)pDrawCoords.Y;
     pMaxHeight             = (int)(pDrawCoords.Y + PaneDimensions.Y - HitBox.Height);
     pScrollFrameHeight     = (int)PaneDimensions.Y;
     pPaneDimensions        = PaneDimensions;
     CenterOrigin           = true;
     pDetectScrollRectangle = new Rectangle((int)pDrawCoords.X - 20 - (int)PaneDimensions.X, MinHeight - (HitBox.Height / 2), (int)PaneDimensions.X + 20 + (HitBox.Width / 2), (int)PaneDimensions.Y);
     LastMouseScroll        = Mouse.GetState().ScrollWheelValue;
     pAssociatedPane        = new Pane(Name + "_ATTACHED_PANE", new Vector2((int)pDrawCoords.X - 20 - PaneDimensions.X, MinHeight - (HitBox.Height / 2)), Depth, PaneDimensions, BackgroundColour, Shell.PubGD);
     MyBehaviours.Add(new Behaviours.ScrollBarControlBehaviour(LastMouseScroll));
 }
 public ScrollBar(String Name, Vector2 Location, TAtlasInfo?Atlas, float Depth, Texture2D[] ScrollPlane, int ScrollHeight) : base(Name, Location, Atlas, Depth)
 {
     Enabled    = true;
     pMinHeight = (int)pDrawCoords.Y;
     pMaxHeight = (int)(pDrawCoords.Y + ScrollHeight - HitBox.Height);
     foreach (Texture2D T in ScrollPlane)
     {
         pTotalScrollHeight += T.Bounds.Height;
     }
     DisplayScrollR     = ScrollPlane;
     pScrollFrameHeight = ScrollHeight;
     DisplayScroll      = CalculateDisplayTexture(DisplayScrollR);
     if (TotalScrollHeight <= ScrollFrameHeight)
     {
         pHideBar = true;
     }
     CenterOrigin           = true;
     pDisplayRect           = new Rectangle(0, 0, DisplayScrollR[0].Width, ScrollFrameHeight);
     pDetectScrollRectangle = new Rectangle((int)pDrawCoords.X - 20 - pDisplayRect.Width, pMinHeight - (HitBox.Height / 2), pDisplayRect.Width + 20 + (HitBox.Width / 2), pDisplayRect.Height);
     LastMouseScroll        = Mouse.GetState().ScrollWheelValue;
     MyBehaviours.Add(new Behaviours.ScrollBarControlBehaviour(LastMouseScroll));
 }
 public TextInputField(String Name, String InitialText, Vector2 Location, float Depth) : base(Name, "[F:SYSFONT]" + InitialText, Location, Depth)
 {
     TypeWrite   = false;
     MyTextInput = new Behaviours.TextInputBehaviour();
     MyBehaviours.Add(MyTextInput);
 }