Call as
Conditions.raid_marks.markListText(mark)
Record the dependency Conditions.raid_marks.markListText, 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
Formats a valid list of markers in priority order.
Arguments
| Name | Type | What it does |
|---|---|---|
mark | string | A validated comma-separated list of marker names. |
Returns
| 1 | string | Localized marker names separated by commas. |
|---|
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
- Raid Mark (print)
local text = markListText(mark)
Dependencies
MARK_ORDER(builtin:Conditions/raid_marks.lua:MARK_ORDER)markName→Conditions.raid_marks.markName
Source
Conditions/raid_marks.lua, line 87. Read only in game; Duplicate makes an editable copy.
Conditions.raid_marks.markListText(mark)
local names = {}
for _, key in ipairs(MARK_ORDER) do
if mark:find(key, 1, true) then names[#names + 1] = markName(key) end
end
return table.concat(names, ", ")