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
| Name | Type | What it does |
|---|---|---|
self | RMAddon | Rotation Master addon instance (implicit with colon calls). |
Returns
| 1 | RMConditionLabel | Native 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
- Instance (widget)
local note = addon:CreateConditionLabel() - Engraved Rune (widget)
local label = addon:CreateConditionLabel() - Weapon Enchant Type (widget)
local label = addon:CreateConditionLabel() Conditions.bossmod.notelocal label = addon:CreateConditionLabel()Conditions.talent.textlocal label=addon:CreateConditionLabel();label:SetFullWidth(true);label:SetText(message);parent:AddChild(label)Conditions.talent.traitsWidgetlocal note=addon:CreateConditionLabel();note:SetFullWidth(true);parent:AddChild(note)
Dependencies
labelConstructor→UI.condition_display.labelConstructor
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)