Reference › Function reference › Conditions

Conditions.bossmod.note

dependency

Call as

Conditions.bossmod.note(parent, text)

Record the dependency Conditions.bossmod.note, then call it by that name. A namespaced call does not pass self: use a colon call or pass the object yourself.

What it does

Adds a full-width text label to a boss-mod condition editor; used for the encounter and timer status lines.

Arguments

NameTypeWhat it does
parenttableCondition widget group the control is added to.
textstringText to show.

Returns

Nothing.

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

Source

Conditions/bossmod.lua, line 87. Read only in game; Duplicate makes an editable copy.

Conditions.bossmod.note(parent, text)
    local label = addon:CreateConditionLabel()
    label:SetFullWidth(true)
    label:SetText(text)
    parent:AddChild(label)

Back to Function reference