Add Ardenweald Gardening info to the tooltip.

This commit is contained in:
Robin 2021-01-21 18:20:18 +01:00
parent d1b8125f12
commit 0570533d7c
1 changed files with 8 additions and 0 deletions

View File

@ -247,6 +247,14 @@ local function OnTooltipShow(GameTooltip)
end
local nr = C_Garrison.GetInProgressMissions(GBM)
local nr2 = C_Garrison.GetAvailableMissions(GBM)
if(GBM == 123) then
if(C_ArdenwealdGardening.IsGardenAccessible()) then
local data = C_ArdenwealdGardening.GetGardenData()
if(data and data['ready'] and data['ready']>0) then
GameTooltip:AddLine(addon:colorize(format("Attention needed in your garden. (%ix)",data['ready']),'00ff00'))
end
end
end
if(num>0) then
GameTooltip:AddDoubleLine(addon:colorize("Follower:","ffffff"),num.."/"..C_Garrison.GetNumFollowers(GBM))
end