public override void Draw(SpriteBatch spriteBatch) { base.Draw(spriteBatch); if (isMouseHovering) { filterButtons.DrawText(spriteBatch); sortButtons.DrawText(spriteBatch); slotZone.DrawText(spriteBatch); } }
public static void Draw(TEStorageHeart heart) { Player player = Main.player[Main.myPlayer]; StoragePlayer modPlayer = player.GetModPlayer <StoragePlayer>(); Initialize(); if (Main.mouseX > panelLeft && Main.mouseX < panelLeft + panelWidth && Main.mouseY > panelTop && Main.mouseY < panelTop + panelHeight) { player.mouseInterface = true; player.showItemIcon = false; InterfaceHelper.HideItemIconCache(); } basePanel.Draw(Main.spriteBatch); slotZone.DrawText(); sortButtons.DrawText(); filterButtons.DrawText(); }
public override void Draw(SpriteBatch spriteBatch) { base.Draw(spriteBatch); if (isMouseHovering) { recipeButtons.DrawText(spriteBatch); filterButtons.DrawText(spriteBatch); sortButtons.DrawText(spriteBatch); stationZone.DrawText(spriteBatch); storageZone.DrawText(spriteBatch); recipeZone.DrawText(spriteBatch); ingredientZone.DrawText(spriteBatch); resultZone.DrawText(spriteBatch); previewZone.DrawText(spriteBatch); } }