Hi all,
I am using this code to add a line (m+ score) to a player tooltip.
Lua Code:
if event == "UPDATE_MOUSEOVER_UNIT" then
if UnitIsPlayer("mouseover") then
local score = C_PlayerInfo.GetPlayerMythicPlusRatingSummary("mouseover").currentSeasonScore
local r, g, b = C_ChallengeMode.GetDungeonScoreRarityColor(C_PlayerInfo.GetPlayerMythicPlusRatingSummary("mouseover").currentSeasonScore):GetRGB()
GameTooltip:AddLine(" ")
GameTooltip:AddDoubleLine(_G["DUNGEON_SCORE"],score,1,1,0,r,g,b)
GameTooltip:Show()
end
end
... and it works if I mouseover a player.
The strange things is that it seems to works also if I mouseover my (player) unitframe, but not always.
Sometime I am able to see the line, sometimes it doesnt show, sometimes it appears and then suddendly it is rewritten by a new tooltip without it.
On the raid/party frame it usually not display the line and if it happens only for a few nanoseconds
and then disappears.
So I am here to ask if there is a specific thing to check when the mouse over the raid/party frames because I was not able to find it and I am arrived to think that probably it is not possible to do
Thanks to all as usually.
P.s.
I see that 10.0.2 has make a lot of changes in management in tooltip info, but as I can understand only in reading data from it and not to write data in it.