api/module-handling/CustomTextModule

CustomTextModule:ClearFrame(frame)

Does nothing.
This should be implemented by the module. When implementing, this should return whether :UpdateLayout(frame) should be called.

Parameters

frame
the Unit Frame to update

Usage

local update_layout = MyModule:ClearFrame(frame)


CustomTextModule:GetFont(frame)

Return the font and size to use for the given frame.

Parameters

frame
the unit frame

Return values

  1. the font path
  2. the font size

Usage

local font, size = MyModule:GetFont(some_frame)
some_frame.MyModule:SetFont(font, size)


CustomTextModule:OnHide(frame)

Handle the frame being hidden

Parameters

frame
the Unit Frame hidden.

Usage

MyModule:OnHide(frame)


CustomTextModule:UpdateFrame(frame)

Does nothing.
This should be implemented by the module. When implementing, this should return whether :UpdateLayout(frame) should be called.

Parameters

frame
the Unit Frame to update

Return value

false

Usage

local update_layout = MyModule:UpdateFrame(frame)



Comments

Posts Quoted:
Reply
Clear All Quotes