public ListItem(Vector2 o, int w, int height, Game g, string n) { name = n; offset = o; game = g; width = w; backgroundRectangle = new RectangleOverlay(new Rectangle((int)offset.X + 5, (int)offset.Y + 1, width - 10, height - 1), Color.Wheat, g); }
public FilmCard(Vector2 pos, Vector2 size, GameController gc) { gameController = gc; position = pos; this.size = size; offset = Vector2.Zero; backgroundRectangle = new RectangleOverlay(new Rectangle((int)position.X, (int)position.Y, (int)size.X, (int)size.Y), Color.PaleGreen, gc); }
public FilmCard(Vector2 pos, Vector2 size, GameController gc) { gameController = gc; position = pos; this.size = size; offset = Vector2.Zero; backgroundRectangle = new RectangleOverlay(new Rectangle((int)position.X, (int)position.Y, (int)size.X , (int)size.Y), Color.PaleGreen, gc); }
public ListItem(Vector2 o, int w, int height, Game g, string n) { name = n; offset = o; game = g; width = w; backgroundRectangle = new RectangleOverlay(new Rectangle((int)offset.X + 5, (int)offset.Y +1 , width - 10, height -1),Color.Wheat,g); }
public SideList(Vector2 o, int w, int h, Game g) { width = w; height = h; offset = o; game = g; numOfItems = (int)((height -10)/ Variables.listItemHeight ); backgroundRectangle = new RectangleOverlay(new Rectangle((int)offset.X + 5, (int)offset.Y + 5, width -10, numOfItems * Variables.listItemHeight), Color.Black, g); items = new List<ListItem>(); }
public SideList(Vector2 o, int w, int h, Game g) { width = w; height = h; offset = o; game = g; numOfItems = (int)((height - 10) / Variables.listItemHeight); backgroundRectangle = new RectangleOverlay(new Rectangle((int)offset.X + 5, (int)offset.Y + 5, width - 10, numOfItems * Variables.listItemHeight), Color.Black, g); items = new List <ListItem>(); }