Reference › Function reference › Conditions

Conditions.talent.block

dependency

Call as

Conditions.talent.block(parent)

Record the dependency Conditions.talent.block, 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 group laid out as icon rows (the icon on the left, the picker rows beside it) to a condition widget.

Arguments

NameTypeWhat it does
parenttableCondition widget group the block is added to.

Returns

1tableThe new group, already added to parent.

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/talent.lua, line 155. Read only in game; Duplicate makes an editable copy.

Conditions.talent.block(parent)
    local widget=addon:CreateConditionGroup();widget:SetFullWidth(true);widget:SetLayout("RM-IconRows");parent:AddChild(widget)
    return widget

Back to Function reference