public ListBoxScrollV(ListBoxCamera listBoxCamera, Rectangle listBoxLocation)
 {
     this.listBoxLocation = listBoxLocation;
     drawSpriteBack       = true;
     spriteBack           = GraphicsManager.GetSpriteColour(6);
     spriteScroll         = GraphicsManager.GetSpriteColour(20);
     this.listBoxCamera   = listBoxCamera;
     currentUiScale       = DisplayController.uiScale;
     SetSize();
 }
Exemple #2
0
 public GameViewBox(string name, Rectangle location, ContainerCamera parentContainerCamera, float drawScale, bool hasBorder, int borderThickness, int borderColor)
 {
     mapObjectList              = new List <MapObject>();
     vehicleList                = new List <Vehicle>();
     this.drawScale             = drawScale;
     listBoxCamera              = new ListBoxCamera();
     preScaleLocation           = location;
     this.parentContainerCamera = parentContainerCamera;
     this.name            = name;
     this.hasBorder       = hasBorder;
     this.borderThickness = borderThickness;
     spriteBorder         = GraphicsManager.GetSpriteColour(borderColor);
     Rescale();
     UpdateViewport();
 }
Exemple #3
0
 public ListBox(string name, Rectangle location, Sprite spriteBack, Font font, ContainerCamera parentContainerCamera)
 {
     currentCount               = 0;
     retranslateDraw            = true;
     listBoxCamera              = new ListBoxCamera();
     listBoxScrollV             = new ListBoxScrollV(listBoxCamera, location);
     this.parentContainerCamera = parentContainerCamera;
     itemList         = new List <ListBoxObject>();
     drawSpriteBack   = true;
     this.spriteBack  = spriteBack;
     this.name        = name;
     currentUiScale   = DisplayController.uiScale;
     preScaleLocation = location;
     spriteFont       = GraphicsManager.GetSpriteFont(font);
     Rescale();
     UpdateViewport();
 }