api/module-handling/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:LibSharedMedia_Registered(event, mediatype, key)
Handle a new media key being added to SharedMedia
Parameters
- event
- the event from LibSharedMedia
- mediatype
- the type of the media being added (e.g. "font", "statusbar")
- key
- the name of the new media
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)
Comments