API Reference

W_CatchupHealthbarBase

Methods

Initialize Values









Convenience function. Current Value should be the current health, Max Value should be the maximum health. Consumer Will Manually Update? controls if the widget should handle updating itself or not (false = automatically update, true = manually update).


Set Current Value







Sets the current healthbar value to New Value. Triggers events if the value has changed.


Set Max Value







Sets the maximum healthbar value to New Value. Triggers events if the value has changed.


Manual Tick







Updates the catchup healthbar. Should only be called if Consumer Will Manually Update? is set to true, otherwise the widget itself will call this function unnecessarily. Delta Time should be set to the delta time of the calling tick event, or the world delta time.


Event Dispatchers

Damage Taken





Called when the current healthbar value decreases. Damage is the absolute value of the decrease.


Healing Applied





Called when the current healthbar value increases. Healing is the absolute value of the increase.


Main Percent Changed





Called when the main healthbar percent (0-1) changes. New Value is the percent after the change.


Catchup Percent Changed





Called when the catchup healthbar percent (0-1) changes. New Value is the percent after the change.