Download
(101Kb)
Download
Updated: 02-28-10 11:20 PM
Pictures
File Info
Updated:02-28-10 11:20 PM
Created:unknown
Downloads:42,650
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 01-26-10, 02:38 PM  
Hexe
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 26
Uploads: 2
Code:
Message: Interface\AddOns\RantTooltip\RantTooltip.lua:492: attempt to index field 'initialAnchor' (a nil value)
Time: 01/26/10 14:35:55
Count: 2
Stack: Interface\AddOns\RantTooltip\RantTooltip.lua:492: in function <Interface\AddOns\RantTooltip\RantTooltip.lua:475>
[C]: ?
[C]: in function `Hide'
Interface\FrameXML\UnitFrame.lua:138: in function <Interface\FrameXML\UnitFrame.lua:136>

I'm getting this error anytime I mouse over anything that would give me a tooltip.
Any ideas?
Report comment to moderator  
Reply With Quote
Unread 01-26-10, 01:28 PM  
EmpireDawn
A Defias Bandit

Forum posts: 2
File comments: 9
Uploads: 0
Is there a way to display the health as percentage below the guild, race etc? I wanted to get rid of the statusbar, but the health percentage would be nice to have.
Report comment to moderator  
Reply With Quote
Unread 01-26-10, 05:15 AM  
leks0d
A Kobold Labourer
 
leks0d's Avatar

Forum posts: 1
File comments: 71
Uploads: 0
Is it possible to use short values of HP/MP?
Like 11563HP>11.6k, 12456785>12.5m etc.
Report comment to moderator  
Reply With Quote
Unread 01-23-10, 09:42 AM  
apocalipsus
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 48
Uploads: 3
Originally posted by Bidybag
Thanks that worked. How do i make it so it uses the default background? The current background is very dark and not very see through.

Also i remember the addon use to show you their talent spec, who they are targeting and their rank in their guild. How do i make it show these again?
You can try a difrent layout here:
http://www.wowinterface.com/downloads/info15647.html (it was on the optional files section)
Just dont forget to NOT load the default and load the new one on the addons button on the character selection screen
Report comment to moderator  
Reply With Quote
Unread 01-22-10, 08:31 AM  
Bidybag
A Murloc Raider

Forum posts: 9
File comments: 12
Uploads: 0
Originally posted by Stuck
Find the line in your layout file that uses RantTooltip:SetInitialAnchor. You can change it to anything (for example):

Code:
RantTooltip:SetInitialAnchor("BOTTOMRIGHT", -13, 65)
Thanks that worked. How do i make it so it uses the default background? The current background is very dark and not very see through.

Also i remember the addon use to show you their talent spec, who they are targeting and their rank in their guild. How do i make it show these again?
Last edited by Bidybag : 01-22-10 at 08:33 AM.
Report comment to moderator  
Reply With Quote
Unread 01-22-10, 05:36 AM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by Bidybag
How do i make it so it appears at a fixed position instead of my mouse?
Find the line in your layout file that uses RantTooltip:SetInitialAnchor. You can change it to anything (for example):

Code:
RantTooltip:SetInitialAnchor("BOTTOMRIGHT", -13, 65)
Report comment to moderator  
Reply With Quote
Unread 01-21-10, 05:18 PM  
Bidybag
A Murloc Raider

Forum posts: 9
File comments: 12
Uploads: 0
How do i make it so it appears at a fixed position instead of my mouse?
Report comment to moderator  
Reply With Quote
Unread 01-20-10, 11:52 AM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by Byakko
Hi, is there a way to stop RantTooltip's font from overriding my UI's default font? It seems to affect every other addon, even those that have their own preset font.
In your layout file, find the lines that look something like this:

Code:
GameTooltipHeaderText:SetFont(font, 14, "OUTLINE")
GameTooltipText:SetFont(font, 13, "OUTLINE")
Comment these lines:

Code:
--GameTooltipHeaderText:SetFont(font, 14, "OUTLINE")
--GameTooltipText:SetFont(font, 13, "OUTLINE")
or just delete them.
Report comment to moderator  
Reply With Quote
Unread 01-20-10, 04:30 AM  
Byakko
A Fallenroot Satyr

Forum posts: 21
File comments: 36
Uploads: 0
Hi, is there a way to stop RantTooltip's font from overriding my UI's default font? It seems to affect every other addon, even those that have their own preset font.
Report comment to moderator  
Reply With Quote
Unread 01-19-10, 05:40 PM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by earle117
I might just be retarded, but is there anyway to scale the tooltip? It is a little big for my tastes on my monitor.

Thanks.

(PS, nice addon! I'm using the Exaile layout and it looks cool.)
Add this to the function in your layout file:
Code:
self:SetScale(0.75)
The scale of 0.75 is just an example. The scale is usually any number between 0.1 and 1, but if you want to make it bigger, use a number greater than 1.

edit: There might already be a line that calls SetScale in the layout function, if there is, just change that to whatever you want.

Originally posted by Bidybag
What is the command to get to the options screen?
There are no options. Everything is now configured in your layout.

edit: I might eventually create an addon that adds in-game options to RantTooltip as a completely separate plugin.
Last edited by Stuck : 01-19-10 at 06:14 PM.
Report comment to moderator  
Reply With Quote
Unread 01-19-10, 12:02 PM  
earle117
An Aku'mai Servant
 
earle117's Avatar

Forum posts: 35
File comments: 4
Uploads: 0
I might just be retarded, but is there anyway to scale the tooltip? It is a little big for my tastes on my monitor.

Thanks.

(PS, nice addon! I'm using the Exaile layout and it looks cool.)
Report comment to moderator  
Reply With Quote
Unread 01-17-10, 06:24 AM  
apocalipsus
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 48
Uploads: 3
Originally posted by Bidybag
What is the command to get to the options screen?
Theres no option screen atm as far as i know
Report comment to moderator  
Reply With Quote
Unread 01-15-10, 06:54 AM  
Bidybag
A Murloc Raider

Forum posts: 9
File comments: 12
Uploads: 0
What is the command to get to the options screen?
Report comment to moderator  
Reply With Quote
Unread 01-13-10, 03:07 PM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by apocalipsus
I've been testing around and i've seen to been able to reproduce it almost 100% of the time.
It seems that if i have the tooltip showing on a enemy that has a mana bar and this enemy dies the error always pops up .
Sometimes it also apears when a enemy without mana dies (not always)
Using the classic layout dont know if it has anything to do with it.
Thanks
Ah, this is a problem with delete line. It's trying to call a function that isn't there. The reason it only happens with the classic layout is because the regular layout doesn't have to call DeleteLine normally. I'll fix this right now. Thanks for pointing this out.

edit: Uploaded a new version. All the errors should be fixed. Everyone let me know if you get anymore errors.
Last edited by Stuck : 01-13-10 at 09:00 PM.
Report comment to moderator  
Reply With Quote
Unread 01-13-10, 08:28 AM  
apocalipsus
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 48
Uploads: 3
So im geting this error lately
Code:
Message: Interface\AddOns\RantTooltip\lib.lua:152: attempt to call field 'round' (a nil value)
Time: 01/13/10 14:20:04
Count: 1
Stack: Interface\AddOns\RantTooltip\lib.lua:152: in function `DeleteLine'
...e\AddOns\RantTooltip_Classic\RantTooltip_Classic.lua:43: in function <...e\AddOns\RantTooltip_Classic\RantTooltip_Classic.lua:38>
...e\AddOns\RantTooltip_Classic\RantTooltip_Classic.lua:136: in function <...e\AddOns\RantTooltip_Classic\RantTooltip_Classic.lua:123>
(tail call): ?
[C]: ?

Locals: self = GameTooltip {
 AdjustStatusBars = <function> defined @Interface\AddOns\RantTooltip\lib.lua:58
 SetExistingSocketGem = <function> defined =[C]:-1
 SetHyperlink = <function> defined =[C]:-1
 SetUnit = <function> defined @Interface\AddOns\RantTooltip\lib.lua:20
 DeleteLine = <function> defined @Interface\AddOns\RantTooltip\lib.lua:132
 raidIcon = <unnamed> {
 }
 OverrideUpdateHealthBar = <function> defined @Interface\AddOns\RantTooltip_Classic\RantTooltip_Classic.lua:123
 DeleteAllLines = <function> defined @Interface\AddOns\RantTooltip\lib.lua:119
 doodad = false
 0 = <userdata>
 comparing = false
 SetSocketGem = <function> defined =[C]:-1
 unit = "mouseover"
 SetMerchantCostItem = <function> defined =[C]:-1
 SetUnitBuff = <function> defined =[C]:-1
 SetUnitDebuff = <function> defined =[C]:-1
 SetCurrencyToken = <function> defined =[C]:-1
 SetLootItem = <function> defined =[C]:-1
 NumLines = <function> defined @Interface\AddOns\RantTooltip\lib.lua:199
 GetUnit = <function> defined @Interface\AddOns\RantTooltip\lib.lua:39
 SetGuildBankItem = <function> defined =[C]:-1
 SetTrainerService = <function> defined =[C]:-1
 numStatusBars = 2
 SetHyperlinkCompareItem = <function> defined =[C]:-1
 FindLine = <function> defined @Interface\AddOns\RantTooltip\lib.lua:185
 SetInboxItem = <function> defined =[C]:-1
 SetBuybackItem = <function> defined =[C]:-1
 shoppingTooltips = <table> {
 }
 AddLine = <function> defined @Interface\AddOns\RantTooltip\lib.lua:74
 SetMerchantItem = <function> defined =[C]:-1
 SetQuestLogItem = <function> defined =[C]:-1
 SetBackpackToken = <function> defined =[C]:-1
 SetTradeTargetItem = <function> defined =[C]:-1
 shownStatusBars = 0
 PowerBar = GameTooltipStatusBar2 {
 }
 SetTradePlayerItem = <function> defined =[C]:-1
 SetSendMailItem = <function> defined =[C]:-1
 SetQuestItem = <function> defined =[C]:-1
 PostSetUnit = <function> defined @Interface\AddOns\RantTooltip_Classic\RantTooltip_Classic.lua:103
 SetInventoryItem = <function> defined =[C]:-1
 GetLine = <function> defined @Interface\AddOns\RantTooltip\lib.lua:91
 SetTradeSkillItem = <function> defined =[C]:-1
 SetLootRollItem = <function> defined =[C]:-1
 SetUnitAura = <function> defined =[C]:-1
 combatIcon = <unnamed> {
 }
 SetAuctionSellItem = <function> defined =[C]:-1
 SetBagItem = <function> defined =[C]:-1
 HealthBar = GameTooltipStatusBar1 {
 }
 PostOnSizeChanged = <function> defined @Interface\AddOns\RantTooltip_Classic\RantTooltip_Classic.lua:173
 updateTooltip = 0.16799999848008
 InsertLine = <function> defined @Interface\AddOns\RantTooltip\lib.lua:102
 SetAuctionItem = <function> defined =[C]:-1
}
line = GameTooltipTextLeft5 {
 0 = <userdata>
}
exact = nil
numLines = 6
originalNum = 5
barNum = nil
number = 5
tbl = <table> {
 5 = GameTooltipTextLeft6 {
 }
}
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 5 = GameTooltipTextLeft6 {
 }
}
(for control) = 5
k = 5
v = GameTooltipTextLeft6 {
 0 = <userdata>
}
newLine = GameTooltipTextLeft5 {
 0 = <userdata>
}
strHeight = 13.373519501687
strSize = 13.000000070289
(*temporary) = nil
(*temporary) = 1.0287322637984
(*temporary) = "attempt to call field 'round' (a nil value)"
_G = <table> {
 ContainerFrame5Item7 = ContainerFrame5Item7 {
 }
 MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown {
 }
 MerchantItem9ItemButtonStock = MerchantItem9ItemButtonStock {
 }
 GetTrainerServiceTypeFilter = <function> defined =[C]:-1
 UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names."
 KB
I've been testing around and i've seen to been able to reproduce it almost 100% of the time.
It seems that if i have the tooltip showing on a enemy that has a mana bar and this enemy dies the error always pops up .
Sometimes it also apears when a enemy without mana dies (not always)
Using the classic layout dont know if it has anything to do with it.
Thanks
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: