Text block widget. Displays text to the user.
Verse using statement |
using { /Fortnite.com/UI } |
Inheritance Hierarchy
This class is derived from the following hierarchy, starting with widget:
| Name | Description |
|---|---|
widget |
Base class for all UI elements drawn on the |
text_base |
Base widget for text widget. |
Members
This class has both data members and functions.
Data
| Data Member Name | Type | Description |
|---|---|---|
DefaultJustification |
text_justification |
The justification to display to the user. Used only during initialization of the widget and not modified by SetJustification. |
DefaultOverflowPolicy |
text_overflow_policy |
The policy that determine what happens when the text is longer than its allowed length. Used only during initialization of the widget and not modified by SetOverflowPolicy. |
DefaultShadowColor |
color |
The color of the shadow. Used only during initialization of the widget and not modified by SetShadowColor. |
DefaultShadowOffset |
?vector2 |
The direction the shadow is cast. Used only during initialization of the widget and not modified by SetShadowOffset. |
DefaultShadowOpacity |
float |
The opacity of the shadow. Used only during initialization of the widget and not modified by SetShadowOpacity. |
DefaultText |
message |
The text to display to the user. Used only during initialization of the widget and not modified by SetText. |
DefaultTextColor |
color |
The color of the displayed text. Used only during initialization of the widget and not modified by SetTextColor. |
DefaultTextOpacity |
float |
The opacity of the displayed text. Used only during initialization of the widget and not modified by SetTextOpacity. |
DefaultTextSize |
float |
The size of the displayed text. Used only during initialization of the widget and not modified by SetTextSize. |
Functions
| Function Name | Description |
|---|---|
GetJustification |
Gets the text justification in the widget. |
GetOverflowPolicy |
Gets the policy that determine what happens when the text is longer than its allowed length. |
GetParentWidget |
Returns the |
GetRootWidget |
Returns the |
GetShadowColor |
Gets the color of the shadow. |
GetShadowOffset |
Gets the direction the shadow is cast. |
GetShadowOpacity |
Gets the opacity of the shadow. |
GetText |
Gets the text currently in the widget. |
GetTextColor |
Gets the color of the displayed text. |
GetTextOpacity |
Gets the opacity of the displayed text. |
GetTextSize |
Gets the size of the displayed text. |
GetVisibility |
Returns the current |
IsEnabled |
|
SetEnabled |
Enables or disables whether the |
SetJustification |
Sets the text justification in the widget. |
SetOverflowPolicy |
Sets the policy that determine what happens when the text is longer than its allowed length. |
SetShadowColor |
Sets the color of the shadow. |
SetShadowOffset |
Sets the direction the shadow is cast. |
SetShadowOpacity |
Sets the opacity of the shadow. |
SetText |
Sets the text displayed in the widget. |
SetTextColor |
Sets the color of the displayed text. |
SetTextOpacity |
Sets the opacity of the displayed text. |
SetTextSize |
Sets the size of the displayed text. |
SetVisibility |
Shows or hides the |