UnSkyToo / LiteGui

Immediate Mode GUI From Scratch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LiteGui

Introduction

Immediate Mode GUI from scratch based on .Net Standard 2.0

Currently only bindings WinForm

Plan more platforms in the future


Plan

  1. Text
  2. Button
  3. Frame
    1. Clipping
    2. Scrollbar
  4. Group
  5. InputText
    1. Input Filter
    2. Undo/Redo
    3. Selection
    4. Copy/Paste/Cut
    5. Single/Mulit
    6. History
  6. Slider
  7. Separator
  8. CheckBox
  9. Texture
  10. RadioButton
  11. ToolTips
  12. Menu
  13. DragInput
  14. Layout
    1. Vertical
    2. Horizontal
    3. Custom
  15. SameLine/NextLine
  16. ListBox
  17. Tree
  18. FreeType
  19. ColorPikcer
  20. Popup
  21. Selectable
  22. Combox
  23. Window
    1. Drag
    2. Title
    3. Sizable
    4. Collapse
  24. ProgressBar

Usage

Use LGui.XXX() between LGui.Begin() and LGui.End() The next examples to omit this part and variable define

Code

LGui.Text("Lite Gui {0}", Value);
if (LGui.Button("Click Me"))
{

}
LGui.Slider("SliderV", ref Value, 0, 10, 1);

Result Usage1

Code

if (LGui.ColorButton("ColorButton1", Color, new LGuiVec2(30, 30)))
{
    LGui.OpenPopup("Popup 1");
}

if (LGui.BeginPopup("Popup 1", new LGuiVec2(260, 310)))
{
    LGui.ColorPicker("Color Picker 1", ref Color);
    LGui.EndPopup();
}

LGui.ListBox("ListBox", ref ItemIndex, Items, new LGuiVec2(100, 150));
LGui.Text("Current Item : {0}", Items[ItemIndex]);

Result Usage2

MemoryEditor & Window Usage3

Demo UsageWhole

About

Immediate Mode GUI From Scratch

License:MIT License


Languages

Language:C# 100.0%