A group of elements. This wraps Unity's GUILayout Area and GUI Group system.
More...
|
| Group (Rect box, string name=null, bool automaticLayout=false) |
| Initializes a new instance of the T:TechbloxModdingAPI.Interface.IMGUI.Group class. More...
|
|
int | AddElement (UIElement element) |
| Add an element to the group. More...
|
|
int | IndexOf (UIElement element) |
| Get the index of an element. More...
|
|
override void | OnGUI () |
| GUI operations to perform in the OnGUI scope. This is basically equivalent to a MonoBehaviour's OnGUI method. More...
|
|
bool | RemoveAt (int index) |
| Remove the element in a specific location. More...
|
|
bool | RemoveElement (UIElement element) |
| Remove an element from the group. More...
|
|
|
Rect | Box [get, set] |
| The rectangular area in the window that the UI group can use More...
|
|
bool | Enabled = true [get, set] |
| Whether to display the UI element or not. More...
|
|
int | Length [get] |
| The amount of elements in the group. More...
|
|
string | Name [get] |
| The element's name. This should be unique for every instance of the class. More...
|
|
A group of elements. This wraps Unity's GUILayout Area and GUI Group system.
◆ Group()
TechbloxModdingAPI.Interface.IMGUI.Group.Group |
( |
Rect |
box, |
|
|
string |
name = null , |
|
|
bool |
automaticLayout = false |
|
) |
| |
|
inline |
Initializes a new instance of the T:TechbloxModdingAPI.Interface.IMGUI.Group class.
- Parameters
-
box | The rectangular area to use in the window. |
name | Name of the group. |
automaticLayout | Whether to use automatic UI layout. |
◆ AddElement()
int TechbloxModdingAPI.Interface.IMGUI.Group.AddElement |
( |
UIElement |
element | ) |
|
|
inline |
Add an element to the group.
- Parameters
-
element | The element to add. |
- Returns
- Index of the new element.
◆ IndexOf()
int TechbloxModdingAPI.Interface.IMGUI.Group.IndexOf |
( |
UIElement |
element | ) |
|
|
inline |
Get the index of an element.
- Parameters
-
element | The element to search for. |
- Returns
- The element's index, or -1 if not found.
◆ OnGUI()
override void TechbloxModdingAPI.Interface.IMGUI.Group.OnGUI |
( |
| ) |
|
|
inlinevirtual |
◆ RemoveAt()
bool TechbloxModdingAPI.Interface.IMGUI.Group.RemoveAt |
( |
int |
index | ) |
|
|
inline |
Remove the element in a specific location.
- Parameters
-
index | Index of the element. |
- Returns
- Whether removal was successful.
◆ RemoveElement()
bool TechbloxModdingAPI.Interface.IMGUI.Group.RemoveElement |
( |
UIElement |
element | ) |
|
|
inline |
Remove an element from the group.
- Parameters
-
element | The element to remove. |
- Returns
- Whether removal was successful.
◆ Box
Rect TechbloxModdingAPI.Interface.IMGUI.Group.Box |
|
getset |
The rectangular area in the window that the UI group can use
◆ Enabled
bool TechbloxModdingAPI.Interface.IMGUI.UIElement.Enabled = true |
|
getsetinherited |
Whether to display the UI element or not.
◆ Length
int TechbloxModdingAPI.Interface.IMGUI.Group.Length |
|
get |
The amount of elements in the group.
◆ Name
string TechbloxModdingAPI.Interface.IMGUI.UIElement.Name |
|
getinherited |
The element's name. This should be unique for every instance of the class.
The documentation for this class was generated from the following file:
- TechbloxModdingAPI/Interface/IMGUI/Group.cs