Retr0GUI is simple console-based C# library.
This example code can be found in the example project.
GUIControls- This class contains all basic controlsControlStyle- This class defines the style of most controls, like title color and underlineTableStyle- This class is specifically for the table render.
// This method creates vertical menu that can be navigated with left and right arrows
public static int VerticalMenu(
string title,
string[] options,
ControlStyle style)// This method creates horizontal toggle switch that can be navigated with up and down arrows
public static bool HorizontalSwitch(
string title,
string firstOption,
string secondOption,
ControlStyle style)// This method creates text field that can be typed on
public static string InputField(
string title,
string description,
ControlStyle style,
bool isPassword = false,
bool required = false,
bool backgroundField = false)// Draws table spreadsheet in the console and waits for user's input so it can close the table.
public static void DrawTable(
string title,
string[,] data,
ControlStyle style,
TableStyle tableStyle = TableStyle.None)// Opens edit screen that can edit object by its properties
public static void EditObject(
T obj,
ControlStyle style)