public override void Draw(SpriteBatch spriteBatch) { if (windowPanel.ContainsPoint(Main.MouseScreen)) { Main.LocalPlayer.mouseInterface = true; Main.LocalPlayer.showItemIcon = false; } base.Draw(spriteBatch); }