Download
(4 Kb)
Download
Updated: 09-29-13 03:23 PM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:09-29-13 03:23 PM
Created:09-13-13 07:15 PM
Downloads:1,032
Favorites:23
MD5:
5.4
rTooltip
Version: 50400.04
by: zork [More]
Info
A simple tooltip addon.
Config
Basically none. You can adjust values directly in the core.lua if you like.
Credits
Wildbreath, Freebaser
SVN:
http://code.google.com/p/rothui/sour...w5.0/rTooltip/
50400.04
- added UnitAura caster info
- added UnitAura isBossDebuff info
- added UnitTarget info

50400.03
- fixing the unit = nil error

50400.02
- added classification icons (rare, elite, boss)
- added dead/ghost strings

50400.01
- initial release
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Author
Date
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
Old 01-13-14, 11:26 AM  
Mirrikh
A Cyclonian
 
Mirrikh's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 47
File comments: 39
Uploads: 2
cool thank you zork.
Mirrikh is offline Report comment to moderator  
Reply With Quote
Old 01-13-14, 05:51 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1289
File comments: 3270
Uploads: 84
Open rTooltip/core.lua and change the font variable to
Lua Code:
  1. cfg.font.family = "FONTS\\myfont" --or any other font path
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | Zork | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Old 01-12-14, 11:00 PM  
Mirrikh
A Cyclonian
 
Mirrikh's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 47
File comments: 39
Uploads: 2
Hey zork, love your tooltip, i was wondering how would i change the font for it? trying to make it fit with the rest of my Ui.
Mirrikh is offline Report comment to moderator  
Reply With Quote
Old 11-20-13, 08:10 AM  
MoonWitch
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 342
File comments: 148
Uploads: 8
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
MoonWitch is offline Report comment to moderator  
Reply With Quote
Old 09-30-13, 05:11 AM  
Imithat
A Deviate Faerie Dragon
 
Imithat's Avatar
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 125
Uploads: 3
perfekt!

danke zork für mal wieder ein tolles addon!
__________________
░█▀▀ ░█▀█ ░█ ░█▀▀ ░░█▀▀ ░█▀█ ░█ ░█ ░░░
░█▀▀ ░█▀▀ ░█ ░█ ░░░░█▀▀ ░█▀█ ░█ ░█ ░░░
░▀▀▀ ░▀ ░░░▀ ░▀▀▀ ░░▀ ░░░▀░▀ ░▀ ░▀▀▀ ░

Author of
SquidMod [Grafic Patch]
Nameplate xHide
Imithat is offline Report comment to moderator  
Reply With Quote
Old 09-30-13, 01:44 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1289
File comments: 3270
Uploads: 84
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.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | Zork | Guild | zorker.de

"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.
zork is offline Report comment to moderator  
Reply With Quote
Old 09-29-13, 03:27 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1289
File comments: 3270
Uploads: 84
Added the UnitTarget info and some more aura informations.
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | Zork | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Old 09-22-13, 06:18 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1289
File comments: 3270
Uploads: 84
Re: Hi~

@hoslam
No thanks. Just use a tooltip that does it for you then.
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | Zork | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Old 09-21-13, 10:58 PM  
hoslam1
A Kobold Labourer

Forum posts: 0
File comments: 17
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.
hoslam1 is offline Report comment to moderator  
Reply With Quote
Old 09-17-13, 05:11 PM  
Dzl
A Kobold Labourer

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

Forum posts: 1289
File comments: 3270
Uploads: 84
@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.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | Zork | Guild | zorker.de

"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.
zork is offline Report comment to moderator  
Reply With Quote
Old 09-16-13, 10:17 PM  
Dzl
A Kobold Labourer

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

Forum posts: 1289
File comments: 3270
Uploads: 84
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.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | Zork | Guild | zorker.de

"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.
zork is offline Report comment to moderator  
Reply With Quote
Old 09-16-13, 02:17 PM  
Cashtro
A Defias Bandit
 
Cashtro's Avatar

Forum posts: 3
File comments: 67
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
__________________
Cashtro is offline Report comment to moderator  
Reply With Quote
Old 09-14-13, 12:35 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1289
File comments: 3270
Uploads: 84
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.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | Zork | Guild | zorker.de

"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.
zork is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: