Skip to content

Basic Elements

These are display-type elements for the UI. They cannot send information to any Lua scripts.

Each element has its own attributes specific to its type that work in addition to the common attributes.

Element Summary

Element Name Description  
<Text></Text> Adds basic text.
<Image></Image> Adds an image.
<ProgressBar></ProgressBar> Displays a progress bar which can be updated dynamically via script.

Element Details

Text

Adds basic text.

Attribute Name                       Description                                  Type / Options                       Default Value      
text This can be used to determine the text that appears. It can also be modified externally by the script. string (none)
alignment
  • UpperLeft
  • UpperCenter
  • UpperRight
  • MiddleLeft
  • MiddleCenter
  • MiddleRight
  • LowerLeft
  • LowerCenter
  • LowerRight
MiddleCenter
color #323232
fontStyle
  • Normal
  • Bold
  • Italic
  • BoldItalic
Normal
fontSize float 14
resizeTextForBestFit Resize text to fit? false
resizeTextMinSize Minimum font size float 10
resizeTextMaxSize Maximum font size float 40
horizontalOverflow
  • Wrap
  • Overflow
Overflow
verticalOverflow
  • Truncate
  • Overflow
Truncate

Image

Adds an image.

Attribute Name                       Description                                  Type / Options                       Default Value      
image The name of the file in the asset manager (upper right corner of the scripting window in-game). string (none)
color #FFFFFF
type Image Type
  • Simple
  • Sliced
  • Filled
  • Tiled
Simple
raycastTarget Should this image block clicks from passing through it? true

ProgressBar

Displays a progress bar which can be updated dynamically via script.

Attribute Name                       Description                                  Type / Options                       Default Value      
image Background Image (path to image) (none)
color Background Color #FFFFFF
fillImage Fill Image string (none)
fillImageColor Fill Color #FFFFFF
percentage Percentage to Display float 0
showPercentageText Is the percentage text displayed? true
percentageTextFormat Format to use for the percentage text string 0.00
textColor Percentage Text Color #000000
textShadow Percentage Text Shadow Color (none)
textOutline Percentage Text Outline Color (none)
textAlignment Percentage Text Alignment
  • UpperLeft
  • UpperCenter
  • UpperRight
  • MiddleLeft
  • MiddleCenter
  • MiddleRight
  • LowerLeft
  • LowerCenter
  • LowerRight
MiddleCenter