Category: Component
Mod Dependency: Foundation EBF
Parent class: COMPONENT
PREFABnilstringNode.NumberDisplaylist<string>{ “Node.Thousand”, “Node.Hundred”, “Node.Ten”, “Node.One”, “Node.Decimal” }stringNode.DecimalPointstringNode.SignstringNode.UnitPREFABasset IDnilPREFABasset IDnilPREFABasset IDnilPREFABasset IDnilPREFABasset IDnilPREFABasset IDnilPREFABasset IDnilPREFABasset IDnilPREFABasset IDnilPREFABasset IDnilPREFABasset IDnilPREFABasset IDnilPREFABasset IDnilPREFABasset IDnil
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