Aufruf als
Conditions.bossmod.encounterNote()
Erfassen Sie die Abhängigkeit Conditions.bossmod.encounterNote und rufen Sie sie dann unter diesem Namen auf. Ein Aufruf über den Namensraum übergibt kein self: Verwenden Sie einen Doppelpunkt-Aufruf oder übergeben Sie das Objekt selbst.
Was sie bewirkt
Builds the status line the boss-mod condition editors show about the current encounter. Reads addon:GetBossModEncounter and reports the encounter name, ID and stage, that no encounter is in progress, or why boss-mod data is unavailable (adapter-unavailable when the adapter API is missing).
Argumente
Keine.
Rückgabewerte
| 1 | string | Localized one-line status text; never nil. |
|---|
Editionen
Integrierte Hilfsfunktionen werden auf jeder Edition registriert. Unterschiedlich ist die Spiel-API, die sie lesen; fehlt eine, weicht die Hilfsfunktion aus oder gibt nil mit einem Grund zurück.
Sie liest keine Spiel-API direkt.
Wie das Addon sie aufruft
- Boss-Mod-Begegnung (widget)
note(parent, encounterNote()) - Phase der Boss-Mod-Begegnung (widget)
note(parent, encounterNote())
Quelle
Conditions/bossmod.lua, Zeile 97. Im Spiel schreibgeschützt; Duplizieren erstellt eine bearbeitbare Kopie.
Conditions.bossmod.encounterNote()
if type(addon.GetBossModEncounter) ~= "function" then return string.format(L["Boss mod data unavailable: %s"], "adapter-unavailable") end
local active, id, stage, detail = addon:GetBossModEncounter()
if active == nil then return string.format(L["Boss mod data unavailable: %s"], tostring(detail or "unknown")) end
if not active then return L["No boss-mod encounter is in progress."] end
return string.format(L["Current encounter: %s (ID %s), stage %s"], detail or L["Unknown"], id and tostring(id) or L["none"], tostring(stage))