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
| Name | Type | What it does |
|---|---|---|
parent | table | Condition widget group the block is added to. |
Returns
| 1 | table | The 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
Conditions.talent.gridWidgetlocal box=block(parent)Conditions.talent.traitsWidgetlocal box=block(parent)Conditions.talent.treeWidgetlocal box=block(parent)
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