Skip to main content

Introduction

This UI control can be created via UI/GDTK: Stats/Stat Slider and allows you to display a slider for a Stat. The value will automatically update whenever the Stat changes and can optionally set the Stat's value as well.

"Stat Slider"

Fields#

NameDescription
SourceDetermine if source is a Direct Reference or in the Tool Registry
KeyKey used to find source
Value IdId of stat controlling value
Minimum IdId of stat controlling minimum (if different)
Maximum IdId of stat controlling maximum (if different)
ImageImage to display stat sprite
Set Value With SliderAllow the slider to update Stat's value

Properties#

NameDescription
statIdGets/Sets id of Stat to display information for. On set the UI is automatically updated.
statSourceGets/Sets BasicStats providing class information. On set the UI is automatically updated.

Methods#

NameDescription
SetStatIdAndSourceUpdates both the Stat Id and source at once and refreshes UI.
RebindUpdates the bindings and refreshes the UI