Как вызывать
Conditions.item.itemHelp(frame)
Запишите зависимость Conditions.item.itemHelp и вызывайте её по этому имени. Вызов через пространство имён не передаёт self: используйте вызов через двоеточие или передайте объект сами.
Что делает
Adds the item condition editors' help text to frame: the shared item widget help, a gap, and a note on how item sets, bag counts and restricted observations are evaluated.
Аргументы
| Имя | Тип | Что делает |
|---|---|---|
frame | table | Help container the text is added to. |
Возвращает
Ничего.
Издания
Встроенные помощники регистрируются во всех изданиях. Различается игровой API, который они читают; если нужного API нет, помощник использует запасной вариант или возвращает nil с причиной.
Не читает игровой API напрямую.
Как его вызывает аддон
- Предмет в сумках (help)
itemHelp(frame) - Предмет надет (help)
itemHelp(frame) - Предмет доступен (help)
itemHelp(frame) - Восстановление предмета (help)
itemHelp(frame) - Предмет в зоне досягаемости (help)
itemHelp(frame)
Зависимости
helpers(builtin:Conditions/item.lua:helpers)
Исходный код
Conditions/item.lua, строка 52. В игре только для чтения; «Дублировать» создаёт редактируемую копию.
Conditions.item.itemHelp(frame)
addon.layout_condition_itemwidget_help(frame)
frame:AddChild(helpers.Gap())
frame:AddChild(helpers.CreateText(L["Item sets are checked in priority order. Bag counts use the first carried candidate, not the sum. Availability, range and cooldown checks use the first carried or equipped candidate. Missing or restricted observations stay unavailable, including under NOT."]))