Download
(101Kb)
Download
Updated: 02-28-10 11:20 PM
Pictures
File Info
Updated:02-28-10 11:20 PM
Created:unknown
Downloads:42,568
Favorites:207
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)


Post A Reply Comment Options
Unread 10-11-08, 11:41 AM  
joypunk
A Scalebane Royal Guard

Forum posts: 449
File comments: 151
Uploads: 0
Thanks Stuck, works perfectly for what I was looking for now. =)

I'll be sure to let you know if I find anything else.
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 11:28 AM  
ObbleYeah
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 210
File comments: 122
Uploads: 3
In this latest version, i have playerclass = true enabled, yet i'm only getting green borders.
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 10:33 AM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by cali
Hey,
some additions for the scale option:
- scaling for items linked in the chat
- scaling for item compare (shift mouseover)

would be cool
greets cali
Ahh, you're right. I overlooked those when adding the scale option. ;p
Edit: Fixed!

Update:
added item quality borders - option in config
added a border thickness option
tooltip anchoring has been changed so it works correctly
cleaned up config a bit

joypunk, SetPoint worked like a charm for positioning the tooltip. Everythings all set. Thanks for the idea.

You guys really make this addon. Thanks for taking the time to comment. =)
Last edited by Stuck : 10-11-08 at 11:11 AM.
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 09:39 AM  
cali
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Hey,
some additions for the scale option:
- scaling for items linked in the chat
- scaling for item compare (shift mouseover)

would be cool
greets cali
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 08:51 AM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by joypunk
Something I've seen other tooltip mods do is set the owner to "ANCHOR_NONE" and use "SetPoint" to position/anchor the tooltip. I *think* that allows it to play more nicely with other addons. Not sure, I've barely looked at tooltip coding before.

Of course, you'd have to use an If block to test for whether or not it's anchored to the cursor. You wouldn't want to use the SetPoint if it's on the cursor.

And yeah, everything I'm reporting is either from the PTR or from the Beta servers.
Okay, I'll try that.
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 08:04 AM  
ObbleYeah
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 210
File comments: 122
Uploads: 3
Originally posted by Stuck
I didn't notice this wasn't working. Thanks for bringing it up...Fixed!

ObbleYeah, I just added a healthbar texture setting.
Great stuff :-)
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 08:26 PM  
joypunk
A Scalebane Royal Guard

Forum posts: 449
File comments: 151
Uploads: 0
Originally posted by Stuck
I'm looking into the tooltip anchoring phenomenon right now. That is odd. I'll see if I can figure it out.
Something I've seen other tooltip mods do is set the owner to "ANCHOR_NONE" and use "SetPoint" to position/anchor the tooltip. I *think* that allows it to play more nicely with other addons. Not sure, I've barely looked at tooltip coding before.

Of course, you'd have to use an If block to test for whether or not it's anchored to the cursor. You wouldn't want to use the SetPoint if it's on the cursor.

And yeah, everything I'm reporting is either from the PTR or from the Beta servers.
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 07:59 PM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by Shirk
The NPC's description under their name telling what they sell ie. Reagent Vendor, Trade Supplies, Banker, etc. Other mods usually replace the guild info line with it for NPC's.
I didn't notice this wasn't working. Thanks for bringing it up...Fixed!

ObbleYeah, I just added a healthbar texture setting.
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 07:10 PM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by joypunk
Thanks for the x,y offsets.

Could you add the option to change which corner of the tooltip is used for the x,y offsets? It's currently set to BOTTOMRIGHT corner of the tooltip, which makes it awkward to set the tooltip on the left side of the screen.

The reactionTable is causing a lot of errors. Attempting to index a nil value on lines 52, 102, and 125.

Also, this may or may not be a rantTooltip issue, but rather an issue with how other addons set their own tooltips... but I'll report it anyways. Some tooltips are being placed in odd places. I think it'll be easier to explain with a specific example.
joyPunk, you got that reactionTable error on WotLK didnt you? I just spotted that bug a minute ago. It was just me being stupid and misplacing one line. It's fixed now. =)

I'm looking into the tooltip anchoring phenomenon right now. That is odd. I'll see if I can figure it out.
Last edited by Stuck : 10-10-08 at 07:10 PM.
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 07:01 PM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Re: hrmm

Originally posted by Vytae
getting errors with latest version when mousing over anything that activates the tooltip:
Vytae, did you copy over your old config values, verbatim?

I changed the table elements in the last update. You would get errors exactly like that if you just copied and pasted your old layout table to the new config file.

Re-install rantTooltip from the .rar. If you want to copy over your old settings you'll have to do it by hand, and make sure you dont change any table element names or formatting.

Although, if those were the only errors you got, I'm assuming you just tried to copy over the layout.anchor setting. In that case, make sure layout.anchor looks like this:
anchor = { n = "CURSOR", x = 0, y = 0 },

and of course you can change CURSOR to whatever you want.
Last edited by Stuck : 10-10-08 at 07:04 PM.
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 02:18 PM  
Vytae
A Murloc Raider

Forum posts: 6
File comments: 62
Uploads: 0
Unhappy hrmm

getting errors with latest version when mousing over anything that activates the tooltip:

Interface\AddOns\rantTooltip\rantTooltip.lua:61: attempt to concatenate field 'n' (a nil value)
[C]: ?
Interface\AddOns\rantTooltip\rantTooltip.lua:61: in function <Interface\AddOns\rantTooltip\rantTooltip.lua:60>
[C]: in function `GameTooltip_SetDefaultAnchor'
[string "*:OnTooltipSetDefaultAnchor"]:1: in function <[string "*:OnTooltipSetDefaultAnchor"]:1>
Interface\AddOns\rantTooltip\rantTooltip.lua:61: attempt to concatenate field 'n' (a nil value)
[C]: ?
Interface\AddOns\rantTooltip\rantTooltip.lua:61: in function <Interface\AddOns\rantTooltip\rantTooltip.lua:60>
[C]: in function `GameTooltip_SetDefaultAnchor'
Interface\FrameXML\UnitFrame.lua:92: in function `UnitFrame_UpdateTooltip'
Interface\FrameXML\UnitFrame.lua:77: in function `UnitFrame_OnEnter'
[string "*:OnEnter"]:1: in function <[string "*:OnEnter"]:1>
Interface\AddOns\rantTooltip\rantTooltip.lua:61: attempt to concatenate field 'n' (a nil value)
[C]: ?
Interface\AddOns\rantTooltip\rantTooltip.lua:61: in function <Interface\AddOns\rantTooltip\rantTooltip.lua:60>
[C]: in function `GameTooltip_SetDefaultAnchor'
Interface\FrameXML\UnitFrame.lua:66: in function `UnitFrame_OnEnter'
[string "*:OnEnter"]:1: in function <[string "*:OnEnter"]:1>
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 09:57 AM  
joypunk
A Scalebane Royal Guard

Forum posts: 449
File comments: 151
Uploads: 0
Thanks for the x,y offsets.

Could you add the option to change which corner of the tooltip is used for the x,y offsets? It's currently set to BOTTOMRIGHT corner of the tooltip, which makes it awkward to set the tooltip on the left side of the screen.



The reactionTable is causing a lot of errors. Attempting to index a nil value on lines 52, 102, and 125.



Also, this may or may not be a rantTooltip issue, but rather an issue with how other addons set their own tooltips... but I'll report it anyways. Some tooltips are being placed in odd places. I think it'll be easier to explain with a specific example.

I have my anchor set to: anchor = { n = "LEFT", x = 150, y = -600 },

For tooltips on things within the game, such as other players and NPC's, the tooltip displays exactly where I want it. On my player frame (I'm using PitBull, with the player frame positioned around 300,0 from the BOTTOMLEFT of the screen) the tooltip is displaying at the bottomleft corner of the screen. For my bag bar (I'm using Dominos here, bag bar is positioned around 300,0 from the BOTTOMRIGHT of the screen) the tooltip is displaying at the bottom of the screen, about 150 pixels to the right of my cursor.

From the looks of it, the x,y offsets are being applied to the tooltip where another addon wants to put the tooltip on the CURSOR. So, for these addons, my tooltip is being displayed 150 to the right and 600 below my cursor.




I figured the "LEFT/RIGHT" thing was a Blizzard issue after looking through your code. Everything in there appeared to be as it should.
Last edited by joypunk : 10-10-08 at 06:28 PM.
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 09:49 AM  
Shirk
A Defias Bandit
 
Shirk's Avatar

Forum posts: 3
File comments: 40
Uploads: 0
Originally posted by Stuck
What do you mean by tags?
The NPC's description under their name telling what they sell ie. Reagent Vendor, Trade Supplies, Banker, etc. Other mods usually replace the guild info line with it for NPC's.
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 08:49 AM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by ObbleYeah
Any chance of offering a way to customise the healthbar texture etc.?
Also any way of increasing the thickness of the tooltip border?

Very pretty tooltip, i like
That's a good idea. I'll work on it.

joypunk, I just uploaded a newer version that includes x and y offset options for the tooltip anchor. Theres no way to fix the bug you're describing, other than positioning it to where you want with the offsets. It sounds like its a problem on blizzards end. They've been making a lot of dumb changes to API in WotLK. I'll take a look and see if they changed anything that would affect this.

cali, the scale option is in.

Keep the suggestions coming, guys. =D

Originally posted by Shirk
Any chance of including tags for NPC vendors?
What do you mean by tags?
Last edited by Stuck : 10-10-08 at 08:52 AM.
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 07:24 AM  
joypunk
A Scalebane Royal Guard

Forum posts: 449
File comments: 151
Uploads: 0
Anchor

I'm unable to get the tooltip to anchor to the center of the screen on either the left or the right side of the screen.

Setting the anchor to "LEFT" is actually placing it on the "TOPLEFT". The right side is also true... setting it to "RIGHT" places it on the "TOPRIGHT".

This occurs on the Beta servers and the PTR.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: