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-20-13, 09:10 AM  
MoonWitch
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 455
File comments: 162
Uploads: 9
Zork,

I just wanted to thank you and tell you (hoping you aren't mad) that I "forked" rTooltip. I am building upon it to further customise it. I've given credit though. It's nothing I am releasing, just for myself. https://github.com/moonwitch/rTooltip
Report comment to moderator  
Reply With Quote
Unread 09-30-13, 05:11 AM  
Imithat
A Fallenroot Satyr
 
Imithat's Avatar
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 201
Uploads: 7
perfekt!

danke zork für mal wieder ein tolles addon!
Report comment to moderator  
Reply With Quote
Unread 09-30-13, 01:44 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 Fixeh
...
NOOOOOOOOOO!!!

Don't do this. This is really bad. OnUpdate scripts run on every single frame that is printed to the screen. What the hell.

Actually the solution is much easier. All you have to do is to apply a hex color instead of a textcolor.

I already apply a textcolor but Blizzard is currently overriding it under ceirtan circumstances and currently I leave it that way because I don't mind.

A solution is to wrap the GameTooltipTextLeft1 text string in a hex color.
Lua Code:
  1. if UnitIsGhost(unit) then
  2.   self:AppendText(" |cffaaaaaa<GHOST>|r")
  3.   GameTooltipTextLeft1:SetText(("|cff%s%s|r"):format(GetHexColor({r=0.5,g=0.5,b=0.5}), GameTooltipTextLeft1:GetText()))
  4. elseif UnitIsDead(unit) then
  5.   self:AppendText(" |cffaaaaaa<DEAD>|r")
  6.   GameTooltipTextLeft1:SetText(("|cff%s%s|r"):format(GetHexColor({r=0.5,g=0.5,b=0.5}), GameTooltipTextLeft1:GetText()))
  7. end

The stausbar recoloring is another thing I actually like. Blizzard updates the healthbar color on value changes. All you would have to do is hook the OnValueChanged event and update the color if you want.

Lua Code:
  1. local GameTooltipStatusBar = GameTooltipStatusBar
  2.  
  3. local function UpdateStatusbarColor()
  4.   --do sth
  5.   if GameTooltipStatusBar.color then
  6.     GameTooltipStatusBar:SetStatusbarColor(color)
  7.   end
  8. end
  9.  
  10. GameTooltipStatusBar:HookScript("OnValueChanged", UpdateStatusbarColor)
  11.  
  12. --for each unit update the color
  13. GameTooltipStatusBar.color = color
  14. GameTooltipStatusBar:SetStatusbarColor(color)
__________________
| 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 : 09-30-13 at 02:02 AM.
Report comment to moderator  
Reply With Quote
Unread 09-29-13, 03:27 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Added the UnitTarget info and some more aura informations.
__________________
| 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 09-22-13, 06:18 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Re: Hi~

@hoslam
No thanks. Just use a tooltip that does it for you then.
__________________
| 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 09-21-13, 10:58 PM  
hoslam1
A Murloc Raider
 
hoslam1's Avatar

Forum posts: 4
File comments: 27
Uploads: 0
Hi~

Hi, fix the game system in tooltip. please...

I can see another person's target when I select another person.

but I cannot see them in your tooltip. And add the info about level in guild, if you possible.
Report comment to moderator  
Reply With Quote
Unread 09-17-13, 05:11 PM  
Dzl
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
thank you!
Report comment to moderator  
Reply With Quote
Unread 09-17-13, 01:43 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
@Dzl
Sure. Get rid of this:
Lua Code:
  1. --loop
  2.     for i = 2, GameTooltip:NumLines() do
  3.       local line = _G["GameTooltipTextLeft"..i]
  4.       if line then
  5.         line:SetTextColor(0.5,0.5,0.5)
  6.       end
  7.     end
Alternatively change the color to whatever you like.
__________________
| 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 : 09-17-13 at 01:44 AM.
Report comment to moderator  
Reply With Quote
Unread 09-16-13, 10:17 PM  
Dzl
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Hey Zork, is there any way to change the font colour from grey?
Report comment to moderator  
Reply With Quote
Unread 09-16-13, 03:18 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
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
__________________
| 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 : 09-16-13 at 03:19 PM.
Report comment to moderator  
Reply With Quote
Unread 09-16-13, 02:17 PM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 117
Uploads: 1
Hello Zork,

Wow another nice addon mate. Could u please add mouse anchor option?? I want to have the tooltip above my mouse pointer
Report comment to moderator  
Reply With Quote
Unread 09-14-13, 12:35 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
I applied a fix. Download 50400.03 once it is available. I forgot to add a check on unit is nil.
Lua Code:
  1. if not unit or (unit and type(unit) ~= "string") then return 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 : 09-14-13 at 12:40 PM.
Report comment to moderator  
Reply With Quote
Unread 09-14-13, 12:21 PM  
lorgi
A Kobold Labourer

Forum posts: 0
File comments: 36
Uploads: 0
Yes, that was the entire error message and after we started and i closed it then it didn't appear again.
Report comment to moderator  
Reply With Quote
Unread 09-14-13, 11:57 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
That sounds odd. I'm doing this.
Lua Code:
  1. --OnTooltipSetUnit
  2. local unit = select(2, self:GetUnit()) or (GetMouseFocus() and GetMouseFocus():GetAttribute("unit")) or (UnitExists("mouseover") and "mouseover")
  3. local guid = UnitGUID(unit) or nil
  4. if not guid then return end

Nothing fancy. I doubt UnitGUID() will result in a Lua error if unit is nil or "wierd". It would just return nil.

Was that the full lua error message?
__________________
| 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 : 09-14-13 at 12:07 PM.
Report comment to moderator  
Reply With Quote
Unread 09-14-13, 10:57 AM  
lorgi
A Kobold Labourer

Forum posts: 0
File comments: 36
Uploads: 0
Code:
Message: Interface\AddOns\rTooltip\core.lua:128: Usage: UnitGUID("unit")
Time: 09/14/13 18:55:34
Count: 8
Stack: [C]: in function `UnitGUID'
Interface\AddOns\rTooltip\core.lua:128: in function <Interface\AddOns\rTooltip\core.lua:126>
[C]: ?

Locals: (*temporary) = nil
This keeps popping up while I did flex.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: