Quantcast
Download
(4 Kb)
Download
Updated: 01-20-18 05:02 AM
Pictures
File Info
Compatibility:
Shadows of Argus (7.3.0)
Updated:01-20-18 05:02 AM
Created:09-13-13 07:15 PM
Downloads:6,847
Favorites:39
MD5:

rTooltip  Popular! (More than 5000 hits)

Version: 730.20180120
by: zork [More]


Intro

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

Optional Files (0)


Archived Files (9)
File Name
Version
Size
Author
Date
710.20161101
4kB
zork
11-01-16 12:13 AM
710.20161027
4kB
zork
10-27-16 12:37 PM
700.20161010
3kB
zork
10-10-16 11:02 AM
700.20161004
3kB
zork
10-04-16 04:27 AM
60000.01
5kB
zork
10-24-14 08:02 PM
50400.04
4kB
zork
09-29-13 03:23 PM
50400.03a
3kB
zork
09-14-13 12:39 PM
50400.02
3kB
zork
09-14-13 06:50 AM
50400.01
2kB
zork
09-13-13 07:15 PM


Post A Reply Comment Options
Unread 07-06-18, 11:56 PM  
Trommy
A Fallenroot Satyr
 
Trommy's Avatar

Forum posts: 22
File comments: 90
Uploads: 0
Nice addon.Can u answer me, how i can remove class text (cus have name color)
Last edited by Trommy : 07-07-18 at 12:32 AM.
Report comment to moderator  
Reply With Quote
Unread 05-27-18, 02:04 PM  
apfelei
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Hey! Great Addon!
Would you tell me how to add my actual reputation into the tooltip from rep tokens?
Report comment to moderator  
Reply With Quote
Unread 03-19-18, 02:59 AM  
Clarity88
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Originally Posted by illum1n4ti
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)
Thanks for your hard work on this addon I am trying to offset the anchor point also. Does this code still work because I am having trouble with it? Thanks!
Report comment to moderator  
Reply With Quote
Unread 02-14-18, 08:00 PM  
defzone
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Is it possible to add a key modifier in showiing the box?
Report comment to moderator  
Reply With Quote
Unread 01-25-18, 12:15 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1685
File comments: 3656
Uploads: 120
@Vampyrate
You only need to add the two "--" infront of that line. That will comment it out and the tooltip will be at the default position.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 01-24-18, 08:02 PM  
Vampyrate
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 75
Uploads: 3
Originally Posted by zork
@Vampyrate
https://github.com/zorker/rothui/blo...p/core.lua#L42
Lua Code:
  1. --cfg.pos = "ANCHOR_CURSOR"
Was the previous config bottomright prior to the most recent download? I feel like it was.
Report comment to moderator  
Reply With Quote
Unread 01-24-18, 02:20 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1685
File comments: 3656
Uploads: 120
@Vampyrate
https://github.com/zorker/rothui/blo...p/core.lua#L42
Lua Code:
  1. --cfg.pos = "ANCHOR_CURSOR"
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 01-23-18, 07:51 PM  
Vampyrate
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 75
Uploads: 3
My rTooltip after today's download is now suddenly stuck at my cursor. How can I access options to fix it?
Report comment to moderator  
Reply With Quote
Unread 11-04-16, 06:13 AM  
hsings
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Originally Posted by zork
By default? You don't.
But you can write a hack and add a fontstring.
Lua Code:
  1. local function CreateHealthText(self)
  2.   local health = self:CreateFontString(nil, "LOW")
  3.   --health settings here
  4.   self.health = self
  5.   return self
  6. end
  7.  
  8. local function OnValueChanged(self,...)
  9.   print(self:GetMinMaxValues(),...)
  10.   --calculate value
  11.   local value = ""
  12.   local health = self.health or CreateHealthText(self)
  13.   health:SetText(value)
  14. end
  15. GameTooltipStatusBar:HookScript("OnValueChanged",OnValueChanged)
.... I can't write it..thx` So hard...
Last edited by hsings : 11-04-16 at 06:18 AM.
Report comment to moderator  
Reply With Quote
Unread 11-02-16, 05:39 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1685
File comments: 3656
Uploads: 120
Blizzard is replacing the text color for GameTooltipTextLeft1 for the "player" unit. Not a huge issue imo.
Instead of text color I could set the color in hex color around the string. This overrides the text color.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"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-01-16, 05:48 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1685
File comments: 3656
Uploads: 120
By default? You don't.
But you can write a hack and add a fontstring.
Lua Code:
  1. local function CreateHealthText(self)
  2.   local health = self:CreateFontString(nil, "LOW")
  3.   --health settings here
  4.   self.health = self
  5.   return self
  6. end
  7.  
  8. local function OnValueChanged(self,...)
  9.   print(self:GetMinMaxValues(),...)
  10.   --calculate value
  11.   local value = ""
  12.   local health = self.health or CreateHealthText(self)
  13.   health:SetText(value)
  14. end
  15. GameTooltipStatusBar:HookScript("OnValueChanged",OnValueChanged)
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"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-01-16, 04:54 AM  
hsings
A Kobold Labourer

Forum posts: 0
File comments: 3
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
Unread 10-04-16, 05:53 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1685
File comments: 3656
Uploads: 120
rTooltip updated for Legion.

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

"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 04-14-15, 08:11 AM  
hoslam1
A Kobold Labourer
 
hoslam1's Avatar

Forum posts: 0
File comments: 23
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 04-14-15, 04:47 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1685
File comments: 3656
Uploads: 120
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) | TDMOG

"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
Post A Reply



Category Jump: