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

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

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

Public Member Functions

 Image (Rect box, Texture texture=null, string name=null)
 ‪Initializes a new instance of the T:GamecraftModdingAPI.Interface.IMGUI.Image class. More...
 
 Image (Texture texture=null, string name=null)
 ‪Initializes a new instance of the T:GamecraftModdingAPI.Interface.IMGUI.Image 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 in the window that the image can use More...
 
bool Enabled = true [get, set]
 ‪Whether to display the image and everything in it. More...
 
string Name [get]
 ‪The image element's unique name. 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]

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

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

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

◆ Image() [2/2]

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

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

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

Member Function Documentation

◆ OnGUI()

void GamecraftModdingAPI.Interface.IMGUI.Image.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.Image.Box = Rect.zero
getset

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

◆ Enabled

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

‪Whether to display the image and everything in it.

◆ Name

string GamecraftModdingAPI.Interface.IMGUI.Image.Name
get

‪The image element's unique name.

◆ Texture

Texture GamecraftModdingAPI.Interface.IMGUI.Image.Texture
getset

‪The image texture to display


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