private void IngameOptions_Draw(On.Terraria.IngameOptions.orig_Draw orig, Main mainInstance, SpriteBatch sb) { /*int num17 = 20; * Vector2 value4 = new Vector2(Main.screenWidth, Main.screenHeight); * // Vector2 value2 = new Vector2(670f, 480f); * Vector2 value2 = new Vector2(670f, 250f); * Vector2 value3 = value4 / 2f - value2 / 2f; * int num21 = 1; * int num22 = 5 + num21 + 2 + 1; * var vector = new Vector2(value3.X + value2.X / 4f, value3.Y + (num17 * 5 / 2)); * Vector2 vector2 = new Vector2(0f, value2.Y - (num17 * 5)) / (num22 + 1); * int index = 8; * bool click = Main.mouseLeft && Main.mouseLeftRelease;*/ orig(mainInstance, sb); /* * if (IngameOptions.DrawLeftSide(sb, "Slender Options", index, vector, vector2, IngameOptions.leftScale)) * { * IngameOptions.leftHover = index; * if (click) * { * IngameFancyUI.CoverNextFrame(); * * Main.playerInventory = false; * Main.editChest = false; * Main.npcChatText = ""; * Main.inFancyUI = true; * * * Main.InGameUI.SetState(SlenderMenuModeID.UIStates.SlenderIngameInterface); * } * } * if (Main.InGameUI.CurrentState == SlenderMenuModeID.UIStates.SlenderIngameInterface) * { * * }*/ }
private static void DrawBG(On.Terraria.IngameOptions.orig_Draw orig, Main mainInstance, SpriteBatch spriteBatch) { spriteBatch.Draw(Main.magicPixel, new Rectangle(0, 0, Main.screenWidth, Main.screenHeight), Color.Black * 0.5f); orig(mainInstance, spriteBatch); }