Download
(3Kb)
Download
Updated: 09-02-18 03:39 AM
Pictures
File Info
Compatibility:
Battle for Azeroth (8.0.1)
Updated:09-02-18 03:39 AM
Created:09-13-13 07:15 PM
Downloads:10,564
Favorites:39
MD5:

rTooltip  Popular! (More than 5000 hits)

Version: 800.20180901
by: zork [More]


Intro

rTooltip adjusts the graphical appearance of the game tooltip.
Git
https://github.com/zorker/rothui/tre...ow8.0/rTooltip

Optional Files (0)


Post A Reply Comment Options
Unread 11-01-14, 11:25 AM  
MoonWitch
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 455
File comments: 162
Uploads: 9
Re: Re: background color

Originally Posted by zork
@jack
I know! I tried to fix it but failed because I could not find the event that does the color change. Pretty wierd. I ignore it for now.
So I am not the only one stuck with that bug. I rewrote mine about 5 times now to fix it, but if you encountered the same - not likely I'll fix it. :P

ps. thank you for being inspiring as coder
__________________
Report comment to moderator  
Reply With Quote
Unread 11-08-14, 07:31 PM  
Dakini
A Defias Bandit
 
Dakini's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 7
Uploads: 1
Re: Re: Re: background color

Originally Posted by MoonWitch
Originally Posted by zork
@jack
I know! I tried to fix it but failed because I could not find the event that does the color change. Pretty wierd. I ignore it for now.
So I am not the only one stuck with that bug. I rewrote mine about 5 times now to fix it, but if you encountered the same - not likely I'll fix it. :P

ps. thank you for being inspiring as coder
I don't know if this is bad coding, but I changed this:
--HookScript GameTooltip OnTooltipCleared
GameTooltip:HookScript("OnTooltipCleared", function(self)
GameTooltip_ClearStatusBars(self)
end)

to this:
--HookScript GameTooltip OnTooltipCleared
GameTooltip:HookScript("OnTooltipCleared", function(self)
GameTooltip_ClearStatusBars(self)
self:SetBackdropColor(unpack(cfg.backdrop.bgColor))
end)

and it seems to work. World tips still change to blue, but it doesn't linger anymore.
Last edited by Dakini : 11-08-14 at 07:39 PM.
Report comment to moderator  
Reply With Quote
Unread 11-09-14, 08:18 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Re: Re: Re: Re: background color

@Daikini
Thanks. Tested it. Gonna add it.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 11-23-14, 10:43 AM  
Turulo
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
There is one tooltip frame missing in the loop list, the tooltip that appears in the Map & Quest Log when the cursor is over the zone button above the quests names. The tooltip shows the story progress quests. I don't know the name of that tooltip frame.

I tweaked a lot so I'm not sure if I screwed it up but I noticed that the border size changes for some of the tooltips and also the copper coins icons are outside of the tooltip border.

And finally I used IsShiftKeyDown() to filter Spell ID and Caster rows because most of the time that information is not needed.

Awesome work as always, I use most of your stuff.
Report comment to moderator  
Reply With Quote
Unread 01-15-15, 09:44 PM  
jmt0101
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
It doesn't seem to skin the tooltips for when you hover over items in your bags.

Edit: Nevermind, white items just appears normal.
Last edited by jmt0101 : 01-20-15 at 04:37 AM.
Report comment to moderator  
Reply With Quote
Unread 01-31-15, 02:46 PM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 117
Uploads: 1
Originally Posted by zork
Just edit the function http://code.google.com/p/rothui/sour...ip/core.lua#64
Lua Code:
  1. --edit
  2.     tooltip:SetOwner(parent, "ANCHOR_CURSOR")
  3.     --[[
  4.     if cursor and GetMouseFocus() == WorldFrame then
  5.       tooltip:SetOwner(parent, "ANCHOR_CURSOR")
  6.     else
  7.       tooltip:SetOwner(parent, "ANCHOR_NONE")
  8.       tooltip:SetPoint(unpack(cfg.pos))
  9.     end
  10.     ]]--

You can use different anchor types: http://wowprogramming.com/docs/widge.../SetAnchorType
Thanks for that but is there a way to add offset little above ?? Thanks
Report comment to moderator  
Reply With Quote
Unread 02-02-15, 01:54 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
@Cashtro
Yes. There are two more arguments that you can add to the function: x and y. Like:
Lua Code:
  1. tooltip:SetOwner(parent, "ANCHOR_CURSOR", x, y)
Instead of variable you can just use numbers like 20.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 02-02-15 at 01:54 AM.
Report comment to moderator  
Reply With Quote
Unread 02-02-15, 09:47 AM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 117
Uploads: 1
Originally Posted by zork
@Cashtro
Yes. There are two more arguments that you can add to the function: x and y. Like:
Lua Code:
  1. tooltip:SetOwner(parent, "ANCHOR_CURSOR", x, y)
Instead of variable you can just use numbers like 20.
Dear Zork,

It's not working i tried it yesterday
Code:
  hooksecurefunc("GameTooltip_SetDefaultAnchor", function(tooltip, parent)
      tooltip:SetOwner(parent, "ANCHOR_CURSOR", 0, 100)
  end)
Report comment to moderator  
Reply With Quote
Unread 02-03-15, 02:30 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Here is the API description. Maybe you are editing the wrong line?
http://wowprogramming.com/docs/widge...oltip/SetOwner

You should give it another try.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 02-04-15, 11:13 AM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 117
Uploads: 1
Originally Posted by zork
Here is the API description. Maybe you are editing the wrong line?
http://wowprogramming.com/docs/widge...oltip/SetOwner

You should give it another try.
Thank u friend but i tried that link a week ago and i am stuck thats why i asked u ... its killing me :P
Report comment to moderator  
Reply With Quote
Unread 04-13-15, 07:35 AM  
hoslam1
A Murloc Raider
 
hoslam1's Avatar

Forum posts: 4
File comments: 27
Uploads: 0
hi, zork.

I am a Korean user using "rTooltip" by zork.

Like the screen below, the HP color shown in the tooltip is described as Class Color.

If It is not on Max HP, It turns to color green.

Can I adjust all these parts to be shown only with Class Color without color change?

for sum up, I want the color is fixed with Class Color regardless of reaching Max HP or less Max HP.


__________________
Report comment to moderator  
Reply With Quote
Unread 04-14-15, 04:47 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Originally Posted by hoslam1
If It is not on Max HP, It turns to color green.
Yes that is correct. Currently I use the default Blizzard GameTooltipStatusBar. There are scripts running on the bar that constantly updates the statusbar color.

Basically you need to hook the OnValueChanged event on the statusbar and when it fires reset the color to whatever unit color is currently set. The unit color you need to apply is set in the OnTooltipSetUnit function. You need to save that to a variable so you can access it in the OnValueChanged function.

Basically like this:
Lua Code:
  1. --HookScript GameTooltipStatusBar OnValueChanged
  2.   GameTooltipStatusBar:HookScript("OnValueChanged", function(self)
  3.     if not self.color then
  4.       self.color = {r=0,g=1,b=0}
  5.     end
  6.     self:SetStatusBarColor(self.color.r,self.color.g,self.color.b)
  7.   end)
  8.  
  9.  
  10.   --HookScript GameTooltip OnTooltipSetUnit
  11.   GameTooltip:HookScript("OnTooltipSetUnit", function(self,...)
  12.     local unit = select(2, self:GetUnit()) or (GetMouseFocus() and GetMouseFocus():GetAttribute("unit")) or (UnitExists("mouseover") and "mouseover")
  13.     if not unit or (unit and type(unit) ~= "string") then return end
  14.     if not UnitGUID(unit) then return end
  15.     if UnitIsPlayer(unit) then
  16.       local _, unitClass = UnitClass(unit)
  17.       local color = RAID_CLASS_COLORS[unitClass]
  18.       GameTooltipStatusBar.color = color
  19.       GameTooltipStatusBar:SetStatusBarColor(color.r,color.g,color.b)
  20.     else
  21.       local reaction = UnitReaction(unit, "player")
  22.       if reaction then
  23.         local color = FACTION_BAR_COLORS[reaction]
  24.         if color then
  25.           GameTooltipStatusBar.color = color
  26.           GameTooltipStatusBar:SetStatusBarColor(color.r,color.g,color.b)
  27.         end
  28.       end
  29.     end
  30.   end)
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 04-14-15 at 04:47 AM.
Report comment to moderator  
Reply With Quote
Unread 04-14-15, 08:11 AM  
hoslam1
A Murloc Raider
 
hoslam1's Avatar

Forum posts: 4
File comments: 27
Uploads: 0
Thank you for answering my message.


Originally Posted by zork
Originally Posted by hoslam1
If It is not on Max HP, It turns to color green.
Yes that is correct. Currently I use the default Blizzard GameTooltipStatusBar. There are scripts running on the bar that constantly updates the statusbar color.

Basically you need to hook the OnValueChanged event on the statusbar and when it fires reset the color to whatever unit color is currently set. The unit color you need to apply is set in the OnTooltipSetUnit function. You need to save that to a variable so you can access it in the OnValueChanged function.
__________________
Last edited by hoslam1 : 04-14-15 at 08:23 AM.
Report comment to moderator  
Reply With Quote
Unread 10-04-16, 05:53 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
rTooltip updated for Legion.

Save this for later.
Code:
/console showQuestTrackingTooltips 0
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 10-04-16 at 07:12 AM.
Report comment to moderator  
Reply With Quote
Unread 11-01-16, 04:54 AM  
hsings
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Originally Posted by zork
rTooltip updated for Legion.

Save this for later.
Code:
/console showQuestTrackingTooltips 0
hi·
How to display the “hp” value?
And hp% ?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: