Int And Double To Text Functions
Pass Integer or Float variables to a widget using the ToText(Int) and ToText(Double) Conversion Functions. The "ToText" conversion functions convert a variable of type Integer or Float to a Text type you can display on your widget. A variable will not display on your widget if they remain as a non-Text type.
The conversion function is actually called To Text (Double) in the Editor instead of To Text (Double), but they serve the same purpose.
Below are two examples that illustrate the use of both conversion functions.
- To Text (Int) example: A custom Tracker widget tracks a player’sr progress when they pick up a number of bacon.
- To Text (Double) example: A custom Popup Dialog widget opens a pop-up with possible answers to a trivia question. A countdown timer is used to close the timer if an answer hasn’t been selected before the time is up.
To Text (Int)
In this example, a custom Tracker widget is created to track how many bacon the player has collected. Use the steps in the UI Pop-Ups document to create a User Widget and name it Tracker_Widget.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.