PowerQuest 0.18.9
IGuiControl Interface Reference

Detailed Description

All gui controls inherit from IGuiControl. (Buttons, Labels, etc)

    Label.ErrorMessage.Show();
    Image.Crosshair.Position = E.MousePosition();
    Button.Accept.Hide();

Also see specific gui controls: IButton, IImage, ILabel, IInventoryPanel

See also
IButton
IImage
ILabel
IInventoryPanel

Inherited by IButton, IContainer, IImage, IInventoryPanel, ILabel, ISlider, and ITextField.

Properties

MonoBehaviour Instance [get]
 Access to the actual game object component in the scene. Note that controls themselves can be cast to their component type if known. More...
 
bool Visible [get, set]
 Sets the control visible invisible the control. More...
 
Vector2 Position [get, set]
 
bool Focused [get]
 
bool HasKeyboardFocus [get, set]
 

Public Member Functions

void Show ()
 Shows the control. More...
 
void Hide ()
 Hides the control. More...
 
void SetPosition (float x, float y)
 Sets the position of the control. Note that this will be overridden if using AlignTo or FitTo component. More...
 

Property Documentation

◆ Instance

MonoBehaviour Instance
get

Access to the actual game object component in the scene. Note that controls themselves can be cast to their component type if known.

◆ Visible

bool Visible
getset

Sets the control visible invisible the control.

Member Function Documentation

◆ Show()

void Show ( )

Shows the control.

◆ Hide()

void Hide ( )

Hides the control.

◆ SetPosition()

void SetPosition ( float  x,
float  y 
)

Sets the position of the control. Note that this will be overridden if using AlignTo or FitTo component.