PowerQuest  0.15.3
GuiScripts Class Reference

Detailed Description

Each gui you create will have its own GuiScript file These are created automatically with the name appended, eg: GuiKeypad.cs

From Gui scripts you have some helpful properties give access to their own IGui, and Controls. View the full list is here.

Eg:

  • Label.KeypadReadout.Text = "ENTER PASSWORD";
  • Button.KeypadEnter.Color = Color.Red;
  • Data.Hide();

Inherits GuiScript.

Public Member Functions

void OnShow ()
 Called when the Gui is made visible. More...
 
void Update ()
 Called every frame. Non-blocking functions only. More...
 
IEnumerator OnAnyClick (IGuiControl control)
 Blocking script called when ANY click is made on the gui. More...
 
IEnumerator OnClick (IGuiControl control)
 Blocking script called when a button is clicked. The name is appended to the function, eg: OnClickAcceptButton(...). More...
 

Member Function Documentation

◆ OnShow()

void OnShow ( )

Called when the Gui is made visible.

◆ Update()

void Update ( )

Called every frame. Non-blocking functions only.

◆ OnAnyClick()

IEnumerator OnAnyClick ( IGuiControl  control)

Blocking script called when ANY click is made on the gui.

◆ OnClick()

IEnumerator OnClick ( IGuiControl  control)

Blocking script called when a button is clicked. The name is appended to the function, eg: OnClickAcceptButton(...).