Grid2

Grid2

11M Downloads

Feature request: Add text value in status 'summon'

Hursev opened this issue ยท 2 comments

commented

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

commented

Implemented in version 2.8.39-beta

commented

Thank you!
As far as I tested, it works as intended in the 2.8.39-beta.