‪GamecraftModdingAPI  ‪v1.8.0
‪The unofficial Gamecraft modding API
GamecraftModdingAPI.Interface.IMGUI.Label Class Reference

‪A simple text label. This wraps Unity IMGUI's Label. More...

Inheritance diagram for GamecraftModdingAPI.Interface.IMGUI.Label:
GamecraftModdingAPI.Interface.IMGUI.UIElement

Public Member Functions

 Label (Rect box, string initialText=null, string name=null)
 ‪Initializes a new instance of the T:GamecraftModdingAPI.Interface.IMGUI.Label. More...
 
 Label (string initialText=null, string name=null)
 ‪Initializes a new instance of the T:GamecraftModdingAPI.Interface.IMGUI.Label class with automatic layout. More...
 
void OnGUI ()
 ‪GUI operations to perform in the OnGUI scope. This is basically equivalent to a MonoBehaviour's OnGUI method. More...
 

Properties

Rect Box = Rect.zero [get, set]
 ‪The rectangular area that the label can use. More...
 
bool Enabled = true [get, set]
 ‪Whether to display the label. More...
 
string Name [get]
 ‪The label's unique name. More...
 
string Text [get, set]
 ‪String to display on the label. More...
 

Detailed Description

A simple text label. This wraps Unity IMGUI's Label.

Constructor & Destructor Documentation

◆ Label() [1/2]

GamecraftModdingAPI.Interface.IMGUI.Label.Label ( string  initialText = null,
string  name = null 
)
inline

‪Initializes a new instance of the T:GamecraftModdingAPI.Interface.IMGUI.Label class with automatic layout.

Parameters
initialText‪Initial string to display on the label.
name‪The element's name.

◆ Label() [2/2]

GamecraftModdingAPI.Interface.IMGUI.Label.Label ( Rect  box,
string  initialText = null,
string  name = null 
)
inline

‪Initializes a new instance of the T:GamecraftModdingAPI.Interface.IMGUI.Label.

Parameters
box‪Rectangular area for the label.
initialText‪Initial string to display on the label.
name‪The element's name.

Member Function Documentation

◆ OnGUI()

void GamecraftModdingAPI.Interface.IMGUI.Label.OnGUI ( )
inline

‪GUI operations to perform in the OnGUI scope. This is basically equivalent to a MonoBehaviour's OnGUI method.

Implements GamecraftModdingAPI.Interface.IMGUI.UIElement.

Property Documentation

◆ Box

Rect GamecraftModdingAPI.Interface.IMGUI.Label.Box = Rect.zero
getset

‪The rectangular area that the label can use.

◆ Enabled

bool GamecraftModdingAPI.Interface.IMGUI.Label.Enabled = true
getset

‪Whether to display the label.

◆ Name

string GamecraftModdingAPI.Interface.IMGUI.Label.Name
get

‪The label's unique name.

◆ Text

string GamecraftModdingAPI.Interface.IMGUI.Label.Text
getset

‪String to display on the label.


The documentation for this class was generated from the following file: