Hook handlers of the bars library, registered as FLBarHooks: they keep the bars positioned and up to date, animate their fill and hide them outside their display range.

Summary

Methods

Repositions the top bars and refreshes the value of every bar that has a callback.
Calculates the fill width of the bar, advancing its value animation, and converts its texts to upper case.
Hides the bar while its value is outside of its display range.

Methods

Repositions the top bars and refreshes the value of every bar that has a callback.

Bars:PreDrawBar(bar)

client packages/active_ui/lib/cl_bars.lua:343

Calculates the fill width of the bar, advancing its value animation, and converts its texts to upper case.

Parameters

  • bar Map bar data

Bars:ShouldDrawBar(bar)

client packages/active_ui/lib/cl_bars.lua:374

Hides the bar while its value is outside of its display range.

Parameters

  • bar Map bar data

Returns

  • Boolean false if the bar should not be drawn, nothing otherwise

Defined in