public static void Open()
{
Main.playerInventory = false;
Main.editChest = false;
Main.npcChatText = "";
Main.PlaySound(10, -1, -1, 1);
Main.ingameOptionsWindow = true;
IngameOptions.category = 0;
for (int index = 0; index < IngameOptions.leftScale.Length; ++index)
IngameOptions.leftScale[index] = 0.0f;
for (int index = 0; index < IngameOptions.rightScale.Length; ++index)
IngameOptions.rightScale[index] = 0.0f;
IngameOptions.leftHover = -1;
IngameOptions.rightHover = -1;
IngameOptions.oldLeftHover = -1;
IngameOptions.oldRightHover = -1;
IngameOptions.rightLock = -1;
IngameOptions.inBar = false;
IngameOptions.notBar = false;
IngameOptions.noSound = false;
}