Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(101 Kb)
Download
Updated: 02-28-10 11:20 PM
Pictures
File Info
Updated:02-28-10 11:20 PM
Created:unknown
Downloads:39,407
Favorites:214
MD5:

RantTooltip  Popular! (More than 5000 hits)

Version: 0.28
by: Stuck [More]

RantTooltip (GUI) Options here.

(NOTE: If you plan on using a layout other than the default layout, you need to delete the RantTooltip_Layout folder first.)

RantTooltip is a tooltip addon that was influenced by oUF to include a layout system for tooltips. You'll find it very similar to oUF. A sample layout is included, based on p3lim's oUF layout. It was designed to match p3lim's layout due to my personal use of it. I take no credit for the design.

The documentation included in the zip file should give you all the information you need on how you create your own tooltip layout.

For everyone who prefers the original RantTooltip look, I've uploaded a layout called RantTooltip Classic.

-[Rum] (Stuck)

0.28 - "<" and ">" will now be colored according to the tag variable the encompass.
- The last player's talent spec will now be cached. This will stop the "Loading" text from flashing in some cases.

0.27 - Colons next to tag variables are no longer colored to be consistent with the adjacent variable. This was conflicting with tag updates.
- Added two more new tags: $curshort and $maxshort. These variables will display health and power values but will reduce their size if necessary.
- For example: 125000 becomes 125k. 1500000 becomes 1.5m.
- Added a $spec tag which will display the player's current spec - their talent tree with the most points in it.
- Do not use $spec and $talents in the same conditional. It will not work. If you want them on the same line, put them in separate conditionals, like this:
Code:
"{Talents: [$spec]}{ ($talents)}",
instead of:
Code:
"{Talents: [$spec] ($talents)}",

0.26 - Added $talents tag which displays the player's talents.
- Fixed a small issue with tag updates.
- Fixed an error concerning layouts without raid icons or combat icons.
- Various small changes.

0.25 - Fixed a few errors involving the DeleteLine function and unit tags.
- Updated the library.
- Other minor changes.

0.24 - Fixed a tag update issues that concerned "$target".
- Added PreOnSizeChanged and PostOnSizeChanged functions for every tooltip.
- Fixed an issue concerning GameTooltip.FindLine in the library.

0.23 - Updated a few things.
- Colons are now colored according to the tag variable to the left of them.
- Fixed and changed the library.
- Cleaned up code.
- Other miscellaneous changes.

0.22 - Fixed a conflict with GearScore. GearScore tooltip text now displays properly.
-Add override functions (i.e.):
GameTooltip.OverrideSetDefaultAnchor(self, parent)
GameTooltip:PreSetUnit(unit)
GameTooltip:PostSetUnit(unit)
GameTooltip:PreOnShow()
GameTooltip:PostOnShow()
GameTooltip:PreOnHide()
GameTooltip:PostOnHide()
GameTooltip:OverrideUpdateHealthBar(bar, cur, max)
GameTooltip:PreUpdateHealthBar(bar, cur, max)
GameTooltip:PostUpdateHealthBar(bar, cur, max)
GameTooltip:OverrideUpdatePowerBar(bar, cur, max)
GameTooltip:PreUpdatePowerBar(bar, cur, max)
GameTooltip:PostUpdatePowerBar(bar, cur, max)

0.21 - Fixed health bar text, fixed text color, and a few other things changed.

0.2 - Updated to fix memory problem.
Optional Files (0)


Archived Files (17)
File Name
Version
Size
Author
Date
0.27
101kB
Stuck
01-28-10 02:38 AM
0.26
97kB
Stuck
01-26-10 02:30 AM
0.25
97kB
Stuck
01-13-10 08:00 PM
0.24
97kB
Stuck
01-10-10 10:52 PM
0.23
76kB
Stuck
01-09-10 01:09 AM
0.22
76kB
Stuck
12-31-09 05:37 PM
0.21
76kB
Stuck
12-31-09 08:58 AM
0.2
76kB
Stuck
12-29-09 03:05 PM
0.2
76kB
Stuck
12-29-09 12:36 PM
0.2
76kB
Stuck
12-29-09 11:33 AM
66
23kB
Stuck
08-05-09 04:56 PM
65
21kB
Stuck
04-16-09 11:25 AM
65
17kB
Stuck
04-15-09 11:40 PM
65
21kB
Stuck
04-15-09 08:33 AM
r64
16kB
Stuck
11-27-08 01:16 PM
r64
16kB
Stuck
11-27-08 08:46 AM
r63
14kB
Stuck
11-18-08 04:01 PM


Post A Reply Comment Options
Unread 07-11-10, 10:37 PM  
Arcadian Del Sol
A Fallenroot Satyr

Forum posts: 29
File comments: 56
Uploads: 0
Originally posted by GUN3R
how in hell do i open the config window im going crazy help me out please and perhaps someone who got it working can post a step by step of how he installed the new update all i have now is the tooltip floating free abuff players heads when i mouseover them cant ancor it no where

You have to install RantToolTip Options. Its a seperate addon.
Unfortunately, it also lacks documentation as to how one would open it.
Last edited by Arcadian Del Sol : 07-11-10 at 10:40 PM.
Arcadian Del Sol is offline Report comment to moderator  
Reply With Quote
Unread 07-02-10, 12:34 PM  
GUN3R
A Deviate Faerie Dragon

Forum posts: 10
File comments: 3
Uploads: 0
how in hell do i open the config window im going crazy help me out please and perhaps someone who got it working can post a step by step of how he installed the new update all i have now is the tooltip floating free abuff players heads when i mouseover them cant ancor it no where
GUN3R is offline Report comment to moderator  
Reply With Quote
Unread 06-28-10, 01:26 PM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
I'm sorry for not being able to update RantTooltip more often. I haven't been playing in a while.

Originally posted by Sepioth
No longer working properly in 3.3.5

Anychance of getting a fix?
Thnks
Could you be more specific? Are you getting an error message?
Stuck is offline Report comment to moderator  
Reply With Quote
Unread 06-24-10, 04:04 PM  
Sepioth
A Molten Giant
AddOn Author - Click to view AddOns

Forum posts: 894
File comments: 97
Uploads: 5
No longer working properly in 3.3.5

Anychance of getting a fix?
Thnks
Sepioth is offline Report comment to moderator  
Reply With Quote
Unread 05-15-10, 11:55 PM  
neov
A Deviate Faerie Dragon

Forum posts: 13
File comments: 64
Uploads: 0
i usually figure this stuff out - the lua file says it should be on the cursor, but it's not - what am I missing?
neov is offline Report comment to moderator  
Reply With Quote
Unread 05-11-10, 04:49 PM  
aapoo
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 32
Uploads: 4
I've been pooking around trying to change the default texture to a simple plain texture I've made myself, but everytime the tooltip has just gone completly black. Could I please have a some elaboration on how to change the default tooltip into a flat (no gradient no nothing) please?

/Aapoo

PS. Apart from not being able to change the texture, i'm very pleased with ranttooltip! GJ! ds.
aapoo is offline Report comment to moderator  
Reply With Quote
Unread 04-28-10, 10:29 PM  
Avitus
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 33
Uploads: 3
Originally posted by Stuck

edit: BTW, I edited my post below, I've been meaning to ask you, what did you mean by faction colors on the tooltip?
Code:
(if Guild = "player":Guild then Green else (if Faction = "player":Faction then Cyan else Yellow end) end) Guild:Angle
Faction = Horde/Alliance.

It basically showed the Guild Name in green if it's your guild, cyan if it's of the same faction as you (horde/alliance) and yellow if it's from the other faction.


Anyway I have quite a few more questions, so I've sent you a PM. You've got mail
Avitus is offline Report comment to moderator  
Reply With Quote
Unread 04-26-10, 09:55 AM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by Avitus
Thanks for the quick reply, sounds very promising. I'll be trying all this as soon as I can connect to wow (apparently ISP issues till Thursday) and will report back here.

In regards to conditional coloring:

Wouldn't it be best to move the complete tag logic to layouts then in future releases of RTT?
If the whole "RantTooltip["Tags"] = {}" block was removed from the main RantTooltip.lua and shifted to the layout file, it would allow layout designers to play around with colors without having to go back and edit the main mod (which defeats the whole point of having a layout system and breaks compatibility every time a new RTT version is released).
That would be a mess. It would be essentially useless for people who don't plan on changing every single function for their layout. Layouts are supposed to be lightweight. It would just be a waste of the entire layout system. At that point, people would be better off writing their own tooltip addon.

Originally posted by Avitus
In regards to right aligned text:

I'll dig around the Cowtip lua files and try to figure out how he does it. If all else fails, maybe someone from the greater mod community has an idea/tip how to implement this.
Thanks, but unfortunately I don't think that will help much. When I tried to add DoubleLines to the tooltip, I got everything working properly except the tooltip line updates, because its so very complicated to have tag variables update on both left and right tooltip lines. Unless CowTip had a system similar to RantTooltip, it won't be much help.

edit: BTW, I edited my post below, I've been meaning to ask you, what did you mean by faction colors on the tooltip?
Last edited by Stuck : 04-26-10 at 10:01 AM.
Stuck is offline Report comment to moderator  
Reply With Quote
Unread 04-25-10, 12:16 PM  
Avitus
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 33
Uploads: 3
Thanks for the quick reply, sounds very promising. I'll be trying all this as soon as I can connect to wow (apparently ISP issues till Thursday) and will report back here.

In regards to conditional coloring:

Wouldn't it be best to move the complete tag logic to layouts then in future releases of RTT?
If the whole "RantTooltip["Tags"] = {}" block was removed from the main RantTooltip.lua and shifted to the layout file, it would allow layout designers to play around with colors without having to go back and edit the main mod (which defeats the whole point of having a layout system and breaks compatibility every time a new RTT version is released).

Older layouts would have to be updated accordingly (copy paste the Tags block), but that's a small price to pay. I've already seen Layouts that package modified RTT versions and I don't think that's a good direction to go.


In regards to right aligned text:

I'll dig around the Cowtip lua files and try to figure out how he does it. If all else fails, maybe someone from the greater mod community has an idea/tip how to implement this.
Last edited by Avitus : 04-25-10 at 12:21 PM.
Avitus is offline Report comment to moderator  
Reply With Quote
Unread 04-25-10, 11:01 AM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by Avitus
I've recently switched from CowTip and I'm trying to replicate my somewhat elaborate tooltip config with RTT now, however there are a couple issues:

1. Coloring in the layout: I really like the idea of a layout system (I'm trying to build my own to distribute to guild members), but at the moment it seems very limited:

All the colors are hardcoded in RantTooltip.lua, meaning if I want a specific element/tag to show in a different color I have to:

-Either edit the main mod (RantTooltip.lua), which would defeat the purpose of a layout system and would break every time a new version of RTT is released.

Or

-Create a duplicate tag of each tag I want to recolor in my layout file. This would be very inefficient, especially considering some of the longer tags like $spec for example.

Is there any efficient way to play with the coloring in the layout? If not, any plan of moving the tag coloring over to the layout file in future versions of RTT (possibly add a syntax so color can be specified next to each tag in RantTooltip:SetUnitTags{})?
You can set colors in the UnitTags now, it just doesn't work conditionally. I've tried to think of a way to set the colors for all variables from the layout simply, but tag variables are so conditional that the only proper way to change them, if you want, is to edit/hook the tag function itself. I don't think there is any better way of doing it.

Originally posted by Avitus
2. Conditional coloring: My LuaFu is failing me, how would I go about setting conditional colors for things like Name or Guild?

Something like (DogTags used in Cowtip):

Name:

Code:
(IsFriend and not PvP ? Cyan NameRealm ! HostileColor NameRealm)
This can be easily changed by altering the RantTooltip.ReactionColors table in your layout.

If that doesn't work, try adding this to your layout:

Code:
local nametag = RantTooltip.Tags["$name"]
RantTooltip.Tags["$name"] = function(unit)
   local name = nametag(unit)
   if UnitIsFriend(unit, "player") and not UnitIsPvP(unit) then
      name = name:gsub("|cff%x%x%x%x%x%x", "|cffffffff") --put whatever color you want here
   end
   return name
end
Originally posted by Avitus
Guild:

Code:
(if Guild = "player":Guild then Green else (if Faction = "player":Faction then Cyan else Yellow end) end) Guild:Angle

Code:
local guildtag = RantTooltip.Tags["$guild"]
RantTooltip.Tags["$guild"] = function(unit)
   local guild = guildtag(unit)
   if GetGuildInfo("player") == GetGuildInfo(unit) then
      guild = guild:gsub("|cff%x%x%x%x%x%x", "|cffffffff") --put whatever color you want here
   end
   return guild
end
edit: What did you mean by faction?

Originally posted by Avitus
3. Conditionals based on tag results: Is there a way of adding conditionals based on return value of a tag? For example I had CowTip set up in a way to scan player titles, if it was a meaningful title I cared about (Gladiator, Battlemaster etc.) it would show in a special color next to the name. If not, it was discarded:

Code:
(PvPRank:Contains("Scarab") or PvPRank:Contains("Gladiator") or PvPRank:Contains("Arena") or PvPRank:Contains("Battlemaster") or PvPRank:Contains("Grand Marshal") or PvPRank:Contains("High") ? PvPRank:Fuchsia " ") (IsFriend and not PvP ? Cyan NameRealm ! HostileColor NameRealm) (PvPRank:Contains("Alliance") or PvPRank:Contains("Horde") ? " " PvPRank:Fuchsia)
Any way of doing such filtering in RTT?
The best way to do this would be to add this to your layout:

Code:
RantTooltip.Tags["$title"] = function(unit)
   local PvPRank = UnitPvPRank(unit)
   return (PvPRank:match("Scarab") or PvPRank:match("Gladiator") or PvPRank:match("Arena") 
   or PvPRank:match("Battlemaster") or PvPRank:match("Grand Marshal") or PvPRank:match("High")) 
   and ("|cfffffff"..PvPRank.."|r") or (UnitIsFriend(unit, "player") and not UnitIsPvP(unit) and "|cfffffff"..PvPRank.."|r" 
   or "|cfffffff"..PvPRank.."|r") or ((PvPRank:match("Alliance") or PvPRank:match("Horde")) 
   and "|cfffffff"..PvPRank.."|r")
end
Now the $title tag will work the way you want it to. You'll have to change the colors around to what you want, but it should work.

Originally posted by Avitus
4. Right aligned text:
Any progress with this? It's infinitely more visible to be able to have the target of the unit being hovered over visible on the right edge for example. I've tried to play a bit with including white spaces but that's just very ugly.
I spent a day trying to code this in. The tooltip functions seem to cater to left lines more than they do right lines. I tried amending the RT Library functions of: FindLine, DeleteLine, AddLine, AddDoubleLine, etc. in order to work with right lines as well. I also changed the tag system in RantTooltip so it would give equal freedom to both left and right lines. For example, if you wanted right lines on your unit tooltips, your UnitTags would look like this:

Code:
"$name|$target",
"$guild|$rank",
"$level",
$target and $rank would appear as right lines. This biggest problem was probably getting the tag updates to work correctly. I never managed to get it working properly. I could upload a version of RantTooltip that works with DoubleLines, but the tag variables wouldn't update at all.

Originally posted by Avitus
Sorry for the wall of text, but RTT is the first (only?) Tooltip mod I've found which comes close to the customization that the abandoned CowTip provided and it's so close to being a perfect replacement even if configuring it requires a bit more work. I would stick with CowTip if it wasn't for the memory leak and the messy bug with building HP.

Thanks for a great addon
Thanks. If you have any more problems, let me know.


edit: I've just thought up a potential way to make color changes easier.

The default function would look like this:

Code:
RantTooltip.Tags["$name"].func = function(unit)
   local name = UnitName(unit)
   if blabla == true then
       return RantTooltip.Tags["$name"].color[1]..name.."|r"
   else
       return RantTooltip.Tags["$name"].color[2]..name.."|r"
   end
end
The table structure would look like this:

Code:
RantTooltip.Tags = { 
   ["$name"] = { 
      func = func, color = { "|cffffffff", "|cffff0000" },
   }, 
}
So, for example, all you would need to do to change the colors in your layout:

Code:
RantTooltip.Tags["$name"].color[1] = "|cff00ff00"
I'll work on adding this in.
Last edited by Stuck : 04-26-10 at 09:46 AM.
Stuck is offline Report comment to moderator  
Reply With Quote
Unread 04-24-10, 08:30 PM  
Avitus
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 33
Uploads: 3
I've recently switched from CowTip and I'm trying to replicate my somewhat elaborate tooltip config with RTT now, however there are a couple issues:

1. Coloring in the layout: I really like the idea of a layout system (I'm trying to build my own to distribute to guild members), but at the moment it seems very limited:

All the colors are hardcoded in RantTooltip.lua, meaning if I want a specific element/tag to show in a different color I have to:

-Either edit the main mod (RantTooltip.lua), which would defeat the purpose of a layout system and would break every time a new version of RTT is released.

Or

-Create a duplicate tag of each tag I want to recolor in my layout file. This would be very inefficient, especially considering some of the longer tags like $spec for example.


Is there any efficient way to play with the coloring in the layout? If not, any plan of moving the tag coloring over to the layout file in future versions of RTT (possibly add a syntax so color can be specified next to each tag in RantTooltip:SetUnitTags{})?



2. Conditional coloring: My LuaFu is failing me, how would I go about setting conditional colors for things like Name or Guild?

Something like (DogTags used in Cowtip):

Name:

Code:
(IsFriend and not PvP ? Cyan NameRealm ! HostileColor NameRealm)
Guild:

Code:
(if Guild = "player":Guild then Green else (if Faction = "player":Faction then Cyan else Yellow end) end) Guild:Angle


3. Conditionals based on tag results: Is there a way of adding conditionals based on return value of a tag? For example I had CowTip set up in a way to scan player titles, if it was a meaningful title I cared about (Gladiator, Battlemaster etc.) it would show in a special color next to the name. If not, it was discarded:

Code:
(PvPRank:Contains("Scarab") or PvPRank:Contains("Gladiator") or PvPRank:Contains("Arena") or PvPRank:Contains("Battlemaster") or PvPRank:Contains("Grand Marshal") or PvPRank:Contains("High") ? PvPRank:Fuchsia " ") (IsFriend and not PvP ? Cyan NameRealm ! HostileColor NameRealm) (PvPRank:Contains("Alliance") or PvPRank:Contains("Horde") ? " " PvPRank:Fuchsia)

Any way of doing such filtering in RTT?


4. Right aligned text:

Originally posted by Stuck
Having the lines split in the AddLine hook is not a good idea. That will affect other addons that may use AddLine. Instead, I had the lines split in RantTooltip.ReplaceTags. If there is a "|", it will return 2 values, the strings for the left and right lines. "|" turned out to not be a very good symbol to use because of hex colors. Didn't realize that at the time. I may use "&" or "#" instead.

I've already rewritten DeleteLine so it deletes both lines and moves every other line, including the right lines, up correctly. I've added an InsertDoubleLine, and hooked AddDoubleLine properly. Changed InsertLine so it also works properly when interacting with double lines.

Everything is working so far. The only problem so far, is the UpdateTag function. In other words, it all works perfectly so far, the tags just aren't updating.
Any progress with this? It's infinitely more visible to be able to have the target of the unit being hovered over visible on the right edge for example. I've tried to play a bit with including white spaces but that's just very ugly.




Sorry for the wall of text, but RTT is the first (only?) Tooltip mod I've found which comes close to the customization that the abandoned CowTip provided and it's so close to being a perfect replacement even if configuring it requires a bit more work. I would stick with CowTip if it wasn't for the memory leak and the messy bug with building HP.

Thanks for a great addon
Avitus is offline Report comment to moderator  
Reply With Quote
Unread 04-11-10, 12:11 PM  
angel100780
A Murloc Raider
 
angel100780's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 107
Uploads: 16
Hi have followed bug:

22x RantTooltip-0.28\RantTooltip.lua:562: attempt to perform arithmetic on field '?' (a nil value)
<in C code>: ?

Locals:
(*temporary) = <function> defined =[C]:-1
= <function> @ Interface\FrameXML\GameTooltip.lua:185:
= <function> @ RantTooltip\RantTooltip.lua:561:

---
angel100780 is offline Report comment to moderator  
Reply With Quote
Unread 04-05-10, 02:53 PM  
Wisprunner
A Defias Bandit

Forum posts: 2
File comments: 49
Uploads: 0
Just switched to this from TipTop and I'm liking what I see so far. But I'm using RTT_Remix layout and everytime I mouse over something I get this error

Code:
Interface\AddOns\RantTooltip\RantTooltip.lua:661: <unnamed>:SetText(): Font not set
Count: 1

Call Stack:
[C]: ?
[C]: in function `SetText'
Interface\AddOns\RantTooltip\RantTooltip.lua:661: in function `UpdatePowerBar'
Interface\AddOns\RantTooltip\RantTooltip.lua:504: in function `SetUnit'
Interface\AddOns\RantTooltip\RantTooltip.lua:558: in function <Interface\AddOns\RantTooltip\RantTooltip.lua:557>
[C]: ?
Not sure how to fix it.
Wisprunner is offline Report comment to moderator  
Reply With Quote
Unread 03-17-10, 07:49 AM  
apocalipsus
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 48
Uploads: 3
Originally posted by willgk
How can one go about hiding the ItemIcon that appears in the TopLeft corner? I've commented out code left and right in this addon that calls it and nothing.
Hello. What layout are you using?
You mean when you click a item on the chat for example it shows the item icon on the left right?
U just need to comment the followning part of the code:
Code:
if self == ItemRefTooltip then
	self.itemIcon = self:CreateTexture(nil, "OVERLAY")
	self.itemIcon:SetWidth(37); self.itemIcon:SetHeight(37)
	self.itemIcon:SetPoint("TOPRIGHT", self, "TOPLEFT", -1, 0)
end
Should be somehting like this near the end of the file.


Originally posted by lilgulps
Is there a way to make the health bar and power bar show inside the box? Not below?

And I seem to be having the same trouble with getting the exaile layout to work with the options menu.

How should my addon list look?
Hi. Some layouts dont work at 100% with the option menu.
It seems exaile is one of them.
Well to my eyes, since exaile doenst has a border i can't really tell if the statusbars are inside or out of the frame hehe.
Last edited by apocalipsus : 03-17-10 at 07:49 AM.
apocalipsus is offline Report comment to moderator  
Reply With Quote
Unread 03-16-10, 02:50 PM  
willgk
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 153
Uploads: 3
How can one go about hiding the ItemIcon that appears in the TopLeft corner? I've commented out code left and right in this addon that calls it and nothing.
willgk is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: