Reference › Function reference › UI

UI.condition_display.CreateConditionLabel

public

Call as

addon:CreateConditionLabel()

Available directly through addon; no dependency is needed.

What it does

Create native wrapping text that measures its height from its width and font. SetText, SetFont or SetFontObject configure its contents. Add it to the callback parent with parent:AddChild(widget) so layout can track its measured height.

Arguments

NameTypeWhat it does
selfRMAddonRotation Master addon instance (implicit with colon calls).

Returns

1RMConditionLabelNative wrapping text control with font, color and alignment methods.

Editions

Built In helpers are registered on every edition. What differs is the game API they read; where one is missing the helper falls back or returns nil with a reason.

It reads no game API directly.

How the addon calls it

Dependencies

Source

UI/condition_display.lua, line 144. Read only in game; Duplicate makes an editable copy.

UI.condition_display.CreateConditionLabel(self)
 return self:AcquireConditionWidget('RM-ConditionLabel',labelConstructor)

Back to Function reference