Skip to content

Retr0Aa/Retr0GUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retr0GUI NuGet Version

Retr0GUI is simple console-based C# library.

Example

ExampleGif

This example code can be found in the example project.

API Reference

  • GUIControls - This class contains all basic controls
  • ControlStyle - This class defines the style of most controls, like title color and underline
  • TableStyle - This class is specifically for the table render.

Methods

// 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)

About

Retr0GUI is basic GUI library for C# Console.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages