Clone wiki

FlowGUI / GUI element basics

The GUI Elements

All GUI elements share some functionality.

Functions

  • SetStyle( style ) --Sets the GUI style for the element
  • SetPosition(Vector2 position) -- Set the position of the GUI element.
  • GetPosition() --Returns the Vector2 position of the GUI element.
  • SetScale(Vector2 scale) --Sets the drawing scale of the GUI element.
  • GetScale() --Returns the drawing scale of the GUI element.
  • SetEnabled(bool enabled) -- Enables or disables the GUI element.
  • GetEnabled() -- Returns a boolean which tells whether the GUI element is enabled.
  • SetGroup( groupNumber) -- Sets the group number for the GUI element.
  • GetGroup() -- Returns the group number of the GUI element.
  • SetLayer ( layerNumber) -- Sets the layer number for the GUI element.
  • GetLayer () -- Returns the layer number of the GUI element.
  • SetResolutionScaling(bool) --Enables auto resolution scaling when the guiManager calls the SetResolution() command.
  • GetResolutionScaling() --Returns whether the GUI element makes use of autoscaling.

Updated