> For the complete documentation index, see [llms.txt](https://danil-dukhovenko.gitbook.io/force/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://danil-dukhovenko.gitbook.io/force/force-scripting-api/forceeditor/gui.md).

# GUI

class ForceEditor.GUI

### Description

**GUI** contains number of widgets to debug scripts throw [GUIPanel](/force/force-scripting-api/forceeditor/guipanel.md)'s.\
Also this **GUI** class will use Force **GUI library** as for editor itself, so this widgets will display a little different that standard ImGui widgets.

<table><thead><tr><th width="150"></th><th></th></tr></thead><tbody><tr><td><mark style="color:red;">AddText</mark></td><td>Add text to started panel window.</td></tr><tr><td><mark style="color:red;">AddText(string text, Color color)</mark></td><td>Add colored text to started panel window.</td></tr><tr><td><mark style="color:red;">AddButton</mark></td><td>Add button to started panel window.</td></tr><tr><td><mark style="color:red;">AddButton(string text, Vector2f size)</mark></td><td>Add button with custom size to started panel window.</td></tr><tr><td><mark style="color:red;">AddButton(string text, Color color, Color colorActive, Color colorHovered)</mark></td><td>Add colored button to started panel window.</td></tr><tr><td><mark style="color:red;">AddButton(string text, Color color)</mark></td><td>Add colored button to started panel window.</td></tr><tr><td><mark style="color:red;">AddButton(string text, Color color, Vector2f size)</mark></td><td>Add colored button with custom size to this panel window.</td></tr><tr><td><mark style="color:red;">AddButton(string text, Color color, Color colorActive, Color colorHovered, Vector2f size)</mark></td><td>Add colored button to started panel window with custom size.</td></tr><tr><td><mark style="color:red;">AddButtonArrow</mark></td><td>Add arrow button to started panel window.</td></tr><tr><td><mark style="color:red;">AddButtonRatio</mark></td><td>Add ratio button to started panel window.</td></tr><tr><td><mark style="color:red;">AddCheckbox</mark></td><td>Add checkbox to started panel window.</td></tr><tr><td><mark style="color:red;">AddBullet</mark></td><td>Add bullet widget to started panel window.</td></tr><tr><td><mark style="color:red;">AddSeparator</mark></td><td>Add horizontal separator to started panel window.</td></tr><tr><td><mark style="color:red;">AddSeparator(bool vertical)</mark></td><td>Add horizontal/vertical separator to started panel window.</td></tr><tr><td><mark style="color:red;">AddCombo</mark></td><td>Add combo widget that previews and selects strings.</td></tr><tr><td><mark style="color:red;">AddWidgetInt</mark></td><td>Add widget witch modifies <code>int</code> value to started panel window.</td></tr><tr><td><mark style="color:red;">AddWidgetInt64</mark></td><td>Add widget witch modifies <code>System.Int64 (long)</code> value to started panel window.</td></tr><tr><td><mark style="color:red;">AddWidgetUInt64</mark></td><td>Add widget witch modifies <code>System.UInt64 (ulong)</code> value to started panel window.</td></tr><tr><td><mark style="color:red;">AddWidgetFloat</mark></td><td>Add widget witch modifies <code>float</code> value to started panel window.</td></tr><tr><td><mark style="color:red;">AddWidgetFloat2</mark></td><td>Add widget witch modifies float values in range of <a href="/force/force-scripting-api/force/vector2f.md">Vector2f </a>to started panel window.</td></tr><tr><td><mark style="color:red;">AddWidgetFloat3</mark></td><td>Add widget witch modifies float values in range of <a href="/force/force-scripting-api/force/vector3f.md">Vector3f </a>to started panel window.</td></tr><tr><td><mark style="color:red;">AddWidgetFloat4</mark></td><td>Add widget witch modifies float values in range of <a href="/force/force-scripting-api/force/vector4f.md">Vector4f </a>to started panel window.</td></tr><tr><td><mark style="color:red;">AddWidgetDouble</mark></td><td>Add widget witch modifies <code>double</code> value to started panel window.</td></tr><tr><td><mark style="color:red;">AddColorEdit</mark></td><td>Add color edit widget witch modifies <a href="/force/force-scripting-api/force/color.md">Color</a> value to started panel window.</td></tr><tr><td><mark style="color:red;">AddInputText</mark></td><td>Add input text widget witch modifies <code>string</code> value to started panel window as multiline.</td></tr><tr><td><mark style="color:red;">AddInputTextMultiline</mark></td><td>Add input text widget witch modifies <code>string</code> value to started panel window as multiline.</td></tr><tr><td><mark style="color:red;">SameLine</mark></td><td>Continue to draw on current line.</td></tr><tr><td><mark style="color:red;">NewLine</mark></td><td>Makes a new line.</td></tr><tr><td><mark style="color:red;">GetAvaliableSpace</mark></td><td>Retrives the panel avaliable space in pixels from a given point.</td></tr></tbody></table>

### See Also

[GUIPanel](/force/force-scripting-api/forceeditor/guipanel.md), [Vector2f](/force/force-scripting-api/force/vector2f.md), [Vector3f](/force/force-scripting-api/force/vector3f.md), [Vector4f](/force/force-scripting-api/force/vector4f.md), [Color](/force/force-scripting-api/force/color.md)
