private static void RemoveHighlight(ImproveStatsOption option) { if (option == ImproveStatsOption.MaxHp) { Console.SetCursorPosition(OptionsX, OptionsY); Console.WriteLine(new string(' ', (SelectLength - "Max Health".Length) / 2) + "Max Health" + new string(' ', (SelectLength - "Max Health".Length) / 2 + (SelectLength - "Max Health".Length) % 2)); } if (option == ImproveStatsOption.MaxMp) { Console.SetCursorPosition(OptionsX, OptionsY + 1); Console.WriteLine(new string(' ', (SelectLength - "Max Magic Power".Length) / 2) + "Max Magic Power" + new string(' ', (SelectLength - "Max Magic Power".Length) / 2 + (SelectLength - "Max Magic Power".Length) % 2)); } if (option == ImproveStatsOption.Attack) { Console.SetCursorPosition(OptionsX, OptionsY + 2); Console.WriteLine(new string(' ', (SelectLength - "Attack".Length) / 2) + "Attack" + new string(' ', (SelectLength - "Attack".Length) / 2 + (SelectLength - "Attack".Length) % 2)); } if (option == ImproveStatsOption.MagicAttack) { Console.SetCursorPosition(OptionsX, OptionsY + 3); Console.WriteLine(new string(' ', (SelectLength - "Magic Attack".Length) / 2) + "Magic Attack" + new string(' ', (SelectLength - "Magic Attack".Length) / 2 + (SelectLength - "Magic Attack".Length) % 2)); } if (option == ImproveStatsOption.Evade) { Console.SetCursorPosition(OptionsX, OptionsY + 6); Console.WriteLine(new string(' ', (SelectLength - "Evade".Length) / 2) + "Evade" + new string(' ', (SelectLength - "Evade".Length) / 2 + (SelectLength - "Evade".Length) % 2)); } if (option == ImproveStatsOption.Defense) { Console.SetCursorPosition(OptionsX, OptionsY + 4); Console.WriteLine(new string(' ', (SelectLength - "Defense".Length) / 2) + "Defense" + new string(' ', (SelectLength - "Defense".Length) / 2 + (SelectLength - "Defense".Length) % 2)); } if (option == ImproveStatsOption.MagicDefense) { Console.SetCursorPosition(OptionsX, OptionsY + 5); Console.WriteLine(new string(' ', (SelectLength - "Magic Defense".Length) / 2) + "Magic Defense" + new string(' ', (SelectLength - "Magic Defense".Length) / 2 + (SelectLength - "Magic Defense".Length) % 2)); } if (option == ImproveStatsOption.Accuracy) { Console.SetCursorPosition(OptionsX, OptionsY + 7); Console.WriteLine(new string(' ', (SelectLength - "Accuracy".Length) / 2) + "Accuracy" + new string(' ', (SelectLength - "Accuracy".Length) / 2 + (SelectLength - "Accuracy".Length) % 2)); } if (option == ImproveStatsOption.Back) { Console.SetCursorPosition(OptionsX, OptionsY + 8); Console.WriteLine(new string(' ', (SelectLength - "Back".Length) / 2) + "Back" + new string(' ', (SelectLength - "Back".Length) / 2 + (SelectLength - "Back".Length) % 2)); } }
private static void HighlightOption(ImproveStatsOption option, Character character) { if (option == ImproveStatsOption.MaxHp) { Console.SetCursorPosition(OptionsX, OptionsY); Console.BackgroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.Black; Console.WriteLine(new string(' ', (SelectLength - "Max Health".Length) / 2) + "Max Health" + new string(' ', (SelectLength - "Max Health".Length) / 2 + (SelectLength - "Max Health".Length) % 2)); Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.White; DrawStats(character, "MaxHp"); } if (option == ImproveStatsOption.MaxMp) { Console.SetCursorPosition(OptionsX, OptionsY + 1); Console.BackgroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.Black; Console.WriteLine(new string(' ', (SelectLength - "Max Magic Power".Length) / 2) + "Max Magic Power" + new string(' ', (SelectLength - "Max Magic Power".Length) / 2 + (SelectLength - "Max Magic Power".Length) % 2)); Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.White; DrawStats(character, "MaxMp"); } if (option == ImproveStatsOption.Attack) { Console.SetCursorPosition(OptionsX, OptionsY + 2); Console.BackgroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.Black; Console.WriteLine(new string(' ', (SelectLength - "Attack".Length) / 2) + "Attack" + new string(' ', (SelectLength - "Attack".Length) / 2 + (SelectLength - "Attack".Length) % 2)); Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.White; DrawStats(character, "Attack"); } if (option == ImproveStatsOption.MagicAttack) { Console.SetCursorPosition(OptionsX, OptionsY + 3); Console.BackgroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.Black; Console.WriteLine(new string(' ', (SelectLength - "Magic Attack".Length) / 2) + "Magic Attack" + new string(' ', (SelectLength - "Magic Attack".Length) / 2 + (SelectLength - "Magic Attack".Length) % 2)); Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.White; DrawStats(character, "MagicAttack"); } if (option == ImproveStatsOption.Defense) { Console.SetCursorPosition(OptionsX, OptionsY + 4); Console.BackgroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.Black; Console.WriteLine(new string(' ', (SelectLength - "Defense".Length) / 2) + "Defense" + new string(' ', (SelectLength - "Defense".Length) / 2 + (SelectLength - "Defense".Length) % 2)); Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.White; DrawStats(character, "Defense"); } if (option == ImproveStatsOption.MagicDefense) { Console.SetCursorPosition(OptionsX, OptionsY + 5); Console.BackgroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.Black; Console.WriteLine(new string(' ', (SelectLength - "Magic Defense".Length) / 2) + "Magic Defense" + new string(' ', (SelectLength - "Magic Defense".Length) / 2 + (SelectLength - "Magic Defense".Length) % 2)); Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.White; DrawStats(character, "MagicDefense"); } if (option == ImproveStatsOption.Evade) { Console.SetCursorPosition(OptionsX, OptionsY + 6); Console.BackgroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.Black; Console.WriteLine(new string(' ', (SelectLength - "Evade".Length) / 2) + "Evade" + new string(' ', (SelectLength - "Evade".Length) / 2 + (SelectLength - "Evade".Length) % 2)); Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.White; DrawStats(character, "Evade"); } if (option == ImproveStatsOption.Accuracy) { Console.SetCursorPosition(OptionsX, OptionsY + 7); Console.BackgroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.Black; Console.WriteLine(new string(' ', (SelectLength - "Accuracy".Length) / 2) + "Accuracy" + new string(' ', (SelectLength - "Accuracy".Length) / 2 + (SelectLength - "Accuracy".Length) % 2)); Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.White; DrawStats(character, "Accuracy"); } if (option == ImproveStatsOption.Back) { Console.SetCursorPosition(OptionsX, OptionsY + 8); Console.BackgroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.Black; Console.WriteLine(new string(' ', (SelectLength - "Back".Length) / 2) + "Back" + new string(' ', (SelectLength - "Back".Length) / 2 + (SelectLength - "Back".Length) % 2)); Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.White; Console.SetCursorPosition(StatsX, StatsY); Console.Write(new string(' ', 40)); } }