public MenuItem(GameMenu gm, MenuItemSpec spec) : base(gm) { this.gm = gm; this.fm = gm.FacetManager; text = spec.text; command = spec.command; textcolor = spec.normalcolor; hovercolor = spec.hovercolor; scale = 1.0f; location = Rectangle.Empty; selSprite = Menu.Game.Content.LoadImage("mnu/TitleButtonSelected"); deselSprite = Menu.Game.Content.LoadImage("mnu/TitleButtonDeselected"); location.Width = selSprite.Width; location.Height = selSprite.Height; Enabled = true; }
public Spinner(GameMenu menu) : base(menu) { this.Menu = menu; leftselsprite = Content.LoadImage("mnu/LArrowClicked"); leftdeselsprite = Content.LoadImage("mnu/LArrowUnclicked"); rightselsprite = Content.LoadImage("mnu/RArrowClicked"); rightdeselsprite = Content.LoadImage("mnu/RArrowUnclicked"); rightarrow.Width = rightselsprite.Width; rightarrow.Height = rightselsprite.Height; leftarrow.Width = leftselsprite.Width; leftarrow.Height = leftselsprite.Height; Location = Rectangle.Empty; Min = 0; Number = 0; Max = int.MaxValue; }