‪TechbloxModdingAPI  ‪v2.2.0
‪The unofficial Techblox modding API
TechbloxModdingAPI.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("TechbloxModdingAPI_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 TechbloxModdingAPI.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 TechbloxModdingAPI.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 TechbloxModdingAPI.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 TechbloxModdingAPI.Interface.IMGUI.IMGUIManager.Init ( )
inlinestaticpackage

◆ RemoveElement() [1/2]

static bool TechbloxModdingAPI.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 TechbloxModdingAPI.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 TechbloxModdingAPI.Interface.IMGUI.IMGUIManager.ImguiScheduler = new("TechbloxModdingAPI_IMGUIScheduler")
staticpackage

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