User Tools

Site Tools


communityapi:ebf:comp_number_display

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
communityapi:ebf:comp_number_display [2021/11/03 19:33] – created minotoriouscommunityapi:ebf:comp_number_display [2021/11/03 19:36] minotorious
Line 168: Line 168:
  
 ''void **initDisplay**()'' ''void **initDisplay**()''
 +
 +Initialises the number display. Must be called before a value can be set, you have to call this function in the ''init()'' method of your custom component that will be setting the values.
  
 ==== setValue ==== ==== setValue ====
Line 176: Line 178:
 | //''value''// | ''integer'' | The value to display | | //''value''// | ''integer'' | The value to display |
  
-Sets the value on the display. The value:+Sets the value on the display. The value:\\
   - Must have as many or fewer digits as the number of nodes set in ''DigitNodeNames''   - Must have as many or fewer digits as the number of nodes set in ''DigitNodeNames''
   - Must be input as an integer value, i.e. to display 123.45 you need to use '':setValue(12345)'' and have positioned the decimal node accordingly in the ''NumberDisplayPrefab''   - Must be input as an integer value, i.e. to display 123.45 you need to use '':setValue(12345)'' and have positioned the decimal node accordingly in the ''NumberDisplayPrefab''
   - Can be positive or negative but the sign will only be displayed if you have included a node for it.   - Can be positive or negative but the sign will only be displayed if you have included a node for it.
  
communityapi/ebf/comp_number_display.txt · Last modified: 2021/11/08 15:57 by minotorious

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki