Category: Component
Mod Dependency: Foundation EBF
Parent class: COMPONENT
PREFAB
nil
string
Node.NumberDisplay
list<string>
{ “Node.Thousand”, “Node.Hundred”, “Node.Ten”, “Node.One”, “Node.Decimal” }
string
Node.DecimalPoint
string
Node.Sign
string
Node.Unit
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
PREFAB
asset ID
nil
void initDisplay()
Initialises the number display.
In case you did not use the BUILDING_FUNCTION_NUMBER_DISPLAY this method must be called before a value can be set, you have to call this method in the init()
method of your custom component that will be setting the display values.
An Example of how this is done can be found in the Ruler mod, in case of problems contact me on discord!
void setValue(value)
Name | Type | Description |
---|---|---|
value | integer | The value to display |
Sets the value on the display. The value:
DigitNodeNames
:setValue(12345)
and have positioned the decimal point node accordingly in the NumberDisplayPrefab