public Page(UIFramework ui, Texture2D Icon = null, string hoverText = null) : base(Game1.activeClickableMenu.xPositionOnScreen, Game1.activeClickableMenu.yPositionOnScreen + 10, Constants.MenuWidth, Game1.activeClickableMenu.height) { this.ui = ui; this.Icon = Icon; this.HoverText = hoverText; for (int i = 0; i < 7; ++i) { Slots.Add(new ClickableComponent( new Rectangle( xPositionOnScreen + Game1.tileSize / 4, yPositionOnScreen + Game1.tileSize * 5 / 4 + Game1.pixelZoom + i * (height - Game1.tileSize * 2) / 7, width - Game1.tileSize / 2, (height - Game1.tileSize * 2) / 7 + Game1.pixelZoom), i.ToString())); } }
public Page(UIFramework ui, Texture2D Icon = null, string hoverText = null) : base(Game1.activeClickableMenu.xPositionOnScreen, Game1.activeClickableMenu.yPositionOnScreen + 10, Constants.MenuWidth, Game1.activeClickableMenu.height) { this.ui = ui; this.Icon = Icon; this.HoverText = hoverText; }