Add Ardenweald Gardening info to the tooltip.
This commit is contained in:
parent
d1b8125f12
commit
0570533d7c
8
core.lua
8
core.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue