/// <summary>
/// Draw the wing slots.
/// </summary>
/// <param name="spriteBatch">drawing SpriteBatch</param>
public void Draw(SpriteBatch spriteBatch)
{
if (ShouldDrawSlots())
{
int mapH = 0;
int rX = 0;
int rY = 0;
float origScale = Main.inventoryScale;
Main.inventoryScale = 0.85f;
if (Main.mapEnabled)
{
if (!Main.mapFullscreen && Main.mapStyle == 1)
{
mapH = 256;
}
if ((mapH + 600) > Main.screenHeight)
{
mapH = Main.screenHeight - 600;
}
}
rX = Main.screenWidth - 92 - (47 * 2);
rY = mapH + 174;
if (Main.netMode == 1)
{
rX -= 47;
}
EquipWingSlot.Position = new Vector2(rX, rY);
VanityWingSlot.Position = new Vector2(rX -= 47, rY);
WingDyeSlot.Position = new Vector2(rX -= 47, rY);
VanityWingSlot.Draw(spriteBatch);
EquipWingSlot.Draw(spriteBatch);
WingDyeSlot.Draw(spriteBatch);
Main.inventoryScale = origScale;
EquipWingSlot.Update();
VanityWingSlot.Update();
WingDyeSlot.Update();
UIUtils.UpdateInput();
}
}