public static void Draw(SpriteBatch spritebatch)
{
if (Main.player[Main.myPlayer].chest != -1 && !Main.recBigList)
{
Main.inventoryScale = 0.755f;
if (Utils.FloatIntersect((float)Main.mouseX, (float)Main.mouseY, 0.0f, 0.0f, 73f, (float)Main.instance.invBottom, 560f * Main.inventoryScale, 224f * Main.inventoryScale))
{
Main.player[Main.myPlayer].mouseInterface = true;
}
ChestUI.DrawName(spritebatch);
ChestUI.DrawButtons(spritebatch);
ChestUI.DrawSlots(spritebatch);
}
else
{
for (int index = 0; index < 6; ++index)
{
ChestUI.ButtonScale[index] = 0.75f;
ChestUI.ButtonHovered[index] = false;
}
}
}