PitBull Unit Frames 4.0

API/ModuleHandling/TextProviderModule

TextProviderModule:ClearFrame(frame)

Clear the texts for the current module if it exists.

Parameters

frame
the Unit Frame to clear

Return value

whether the update requires :UpdateLayout to be called

Usage

local update_layout = MyModule:ClearFrame(frame)


TextProviderModule:ForceTextUpdate(frame)

Forces all texts for the frame to be rebuilt.

Parameters

frame
the Unit Frame to update

Usage

MyModule:ForceTextUpdate(frame)
Used to force all the texts to be cleared and rebulit.
Particularly after a config change.


TextProviderModule:UpdateFrame(frame)

Update the texts for the current module

Parameters

frame
the Unit Frame to update

Return value

whether the update requires :UpdateLayout to be called

Usage

local update_layout = MyModule:UpdateIcon(frame)


You must login to post a comment. Don't have an account? Register to get one!