public static void Back() { conTol.WriteLine("Press any key to go back"); Console.ReadKey(true); conTol.Clear(); conTol = new ConsoleTools(ConsoleColor.Green); conTol.WriteLine("[Keen|Mate] Training - Done by Damien Clément", true); }
public static void Init() { conTol = new ConsoleTools(ConsoleColor.Green); conTol.WriteLine("[Keen|Mate] Training - Done by Damien Clément", true); conTol.NextRow(3); Update(); //WriteFunctions(); //SelectFunction(); }
public void Draw(ConsoleTools t_consT) { //NOTE Set color as defualt t_consT.Set_Color(ConsoleColor.Green, m_default_background); t_consT.Set_Cursor_Position((Console.WindowWidth / 2) - (m_label.Length / 2), m_pos_y - 2); t_consT.WriteLine(m_label); t_consT.Set_Color(m_default_foreground, m_default_background); for (int i = 0; i < m_elements.Length; i++) { t_consT.Set_Cursor_Position((Console.WindowWidth / 2) - (m_elements[i].Length / 2), m_pos_y + i); if (pointer == i) { t_consT.Set_Color(m_selected_foreground, m_selected_background); t_consT.WriteLine(m_elements[i]); //NOTE Set color to default t_consT.Set_Color(m_default_foreground, m_default_background); } else { t_consT.WriteLine(m_elements[i]); } } }