GearBlocks
The GearBlocks Lua scripting API
Properties | List of all members
SmashHammer.UI.NumberField Class Reference

A number field UI element. More...

Inheritance diagram for SmashHammer.UI.NumberField:
SmashHammer.UI.Element SmashHammer.UI.INumberField SmashHammer.UI.IElement SmashHammer.UI.ISizeable SmashHammer.UI.IRotatable

Properties

float Value [get, set]
 The number field value.
 
bool WholeNumbers [get, set]
 Is the number field restricted to whole numbers?
 
- Properties inherited from SmashHammer.UI.Element
virtual bool IsVisible [get, set]
 Is the element visible?
 
- Properties inherited from SmashHammer.UI.IElement
bool IsVisible [get, set]
 Is the element visible?
 
bool IsInteractable [get, set]
 Is the element interactable?
 
bool IsTargetable [get, set]
 Is the element targetable?
 
- Properties inherited from SmashHammer.UI.INumberField
float Value [get, set]
 The number field value.
 
bool WholeNumbers [get, set]
 Is the number field restricted to whole numbers?
 

Additional Inherited Members

- Public Types inherited from SmashHammer.UI.ISizeable
enum  Align : byte {
  LeftEdge , RightEdge , TopEdge , BottomEdge ,
  HorizEdges , VertEdges , HorizCentre , VertCentre
}
 UI element alignment mode. More...
 
void SetAlignment (Align align, float paramA, float paramB)
 Set the element's alignment.
 
void SetRotation (float angle)
 Set the element's rotation.
 
- Events inherited from SmashHammer.UI.INumberField
ValueChangedHandler OnEndEdit
 Event that is raised when editing the number field has ended.
 

Detailed Description

A number field UI element.

Property Documentation

◆ Value

float SmashHammer.UI.NumberField.Value
getset

The number field value.

The current value of this number field.

Implements SmashHammer.UI.INumberField.

◆ WholeNumbers

bool SmashHammer.UI.NumberField.WholeNumbers
getset

Is the number field restricted to whole numbers?

true if this number field should only allow integer values; otherwise, false.

Implements SmashHammer.UI.INumberField.