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

‪Keeps track of UIElement instances. This also handles displaying and processing them during the MonoBehaviour.OnGUI phase of screen updates. Most of this functionality is handled implicitly by the included UIElement implementations, but this is left as a public API so it can be expanded. More...

Static Public Member Functions

static void AddElement (UIElement e)
 ‪Add an UIElement instance to be managed by IMGUIManager. More...
 
static bool ExistsElement (string name)
 ‪Determine whether the UIElement instance is already tracked by IMGUIManager. More...
 
static bool ExistsElement (UIElement element)
 ‪Determine whether the UIElement instance is already tracked by IMGUIManager. More...
 
static bool RemoveElement (string name)
 ‪Remove an UIElement instance from IMGUIManager. The UIElement will become invisible and stop generating events. More...
 
static bool RemoveElement (UIElement element)
 ‪Remove an UIElement instance from IMGUIManager. The UIElement will become invisible and stop generating events. More...
 

Static Package Functions

static void Init ()
 

Static Package Attributes

static OnGuiRunner ImguiScheduler = new OnGuiRunner("GamecraftModdingAPI_IMGUIScheduler")
 

Detailed Description

Keeps track of UIElement instances. This also handles displaying and processing them during the MonoBehaviour.OnGUI phase of screen updates. Most of this functionality is handled implicitly by the included UIElement implementations, but this is left as a public API so it can be expanded.

Member Function Documentation

◆ AddElement()

static void GamecraftModdingAPI.Interface.IMGUI.IMGUIManager.AddElement ( UIElement  e)
inlinestatic

‪Add an UIElement instance to be managed by IMGUIManager.

Parameters
e‪The UIElement instance.

◆ ExistsElement() [1/2]

static bool GamecraftModdingAPI.Interface.IMGUI.IMGUIManager.ExistsElement ( string  name)
inlinestatic

‪Determine whether the UIElement instance is already tracked by IMGUIManager.

Parameters
name‪The UIElement's unique name.
Returns
‪Whether the UIElement instance is already tracked by IMGUIManager (true) or not (false).

◆ ExistsElement() [2/2]

static bool GamecraftModdingAPI.Interface.IMGUI.IMGUIManager.ExistsElement ( UIElement  element)
inlinestatic

‪Determine whether the UIElement instance is already tracked by IMGUIManager.

Parameters
element‪The UIElement instance.
Returns
‪Whether the UIElement instance is already tracked by IMGUIManager (true) or not (false).

◆ Init()

static void GamecraftModdingAPI.Interface.IMGUI.IMGUIManager.Init ( )
inlinestaticpackage

◆ RemoveElement() [1/2]

static bool GamecraftModdingAPI.Interface.IMGUI.IMGUIManager.RemoveElement ( string  name)
inlinestatic

‪Remove an UIElement instance from IMGUIManager. The UIElement will become invisible and stop generating events.

Parameters
name‪The UIElement's unique name.
Returns
‪Whether the UIElement instance existed in IMGUIManager (true) or not (false).

◆ RemoveElement() [2/2]

static bool GamecraftModdingAPI.Interface.IMGUI.IMGUIManager.RemoveElement ( UIElement  element)
inlinestatic

‪Remove an UIElement instance from IMGUIManager. The UIElement will become invisible and stop generating events.

Parameters
element‪The UIElement instance.
Returns
‪Whether the UIElement instance existed in IMGUIManager (true) or not (false).

Member Data Documentation

◆ ImguiScheduler

OnGuiRunner GamecraftModdingAPI.Interface.IMGUI.IMGUIManager.ImguiScheduler = new OnGuiRunner("GamecraftModdingAPI_IMGUIScheduler")
staticpackage

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