‪TechbloxModdingAPI  ‪v2.2.0
‪The unofficial Techblox modding API
TechbloxModdingAPI.Interface.IMGUI.Image Class Reference

‪An image. This wraps Unity's IMGUI Label. More...

Inheritance diagram for TechbloxModdingAPI.Interface.IMGUI.Image:
TechbloxModdingAPI.Interface.IMGUI.UIElement

Public Member Functions

 Image (Rect box, Texture texture=null, string name=null)
 ‪Initializes a new instance of the T:TechbloxModdingAPI.Interface.IMGUI.Image class. More...
 
 Image (Texture texture=null, string name=null)
 ‪Initializes a new instance of the T:TechbloxModdingAPI.Interface.IMGUI.Image class with automatic layout. More...
 
override 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 in the window that the image can use More...
 
bool Enabled = true [get, set]
 ‪Whether to display the UI element or not. More...
 
string Name [get]
 ‪The element's name. This should be unique for every instance of the class. More...
 
Texture Texture [get, set]
 ‪The image texture to display More...
 

Detailed Description

An image. This wraps Unity's IMGUI Label.

Constructor & Destructor Documentation

◆ Image() [1/2]

TechbloxModdingAPI.Interface.IMGUI.Image.Image ( Texture  texture = null,
string  name = null 
)
inline

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

Parameters
textureImage to display.
name‪The element's name.

◆ Image() [2/2]

TechbloxModdingAPI.Interface.IMGUI.Image.Image ( Rect  box,
Texture  texture = null,
string  name = null 
)
inline

‪Initializes a new instance of the T:TechbloxModdingAPI.Interface.IMGUI.Image class.

Parameters
box‪Rectangular area for the image.
textureImage to display.
name‪The element's name.

Member Function Documentation

◆ OnGUI()

override void TechbloxModdingAPI.Interface.IMGUI.Image.OnGUI ( )
inlinevirtual

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

Implements TechbloxModdingAPI.Interface.IMGUI.UIElement.

Property Documentation

◆ Box

Rect TechbloxModdingAPI.Interface.IMGUI.Image.Box = Rect.zero
getset

‪The rectangular area in the window that the image can use

◆ Enabled

bool TechbloxModdingAPI.Interface.IMGUI.UIElement.Enabled = true
getsetinherited

‪Whether to display the UI element or not.

◆ Name

string TechbloxModdingAPI.Interface.IMGUI.UIElement.Name
getinherited

‪The element's name. This should be unique for every instance of the class.

◆ Texture

Texture TechbloxModdingAPI.Interface.IMGUI.Image.Texture
getset

‪The image texture to display


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