Feature request: Add text value in status 'summon'
Hursev opened this issue ยท 2 comments
Hello,
Can you add a text value for the 'summon' status values?
The code can be something like this in StatusSummon.lua
local textDeclined = L["Declined"]
local textAccepted = L["Accepted"]
local textPending = L["Pending"]
function status:GetText(unit)
local state, text = IncomingSummonStatus(unit)
if state == 3 then -- declined(3)
color = textDeclined
elseif state == 2 then -- accepted(2)
text = textAccepted
elseif state == 1 then -- pending(1)
text = textPending
else -- none. We should never hit this line.
text = ""
end
return text
end
Plus the localization.
Thank you,
Hursev