Download
(101Kb)
Download
Updated: 02-28-10 11:20 PM
Pictures
File Info
Updated:02-28-10 11:20 PM
Created:unknown
Downloads:42,701
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-10-10, 02:56 PM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by Jaleni
I think there is a problem in the parser when it analyzes square brackets
Are you using the latest version? It works alright for me. I'm also currently working on a new version of RantTooltip_Classic. When I originally released it, I put the layout together fast and didn't really spend much time on it. It should look and work a lot more like the original once I'm finished.

Originally posted by apocalipsus
Hi all
First of all i'll like to say this is a great addon. Been using it for some time now.
I have some questions if someone can help me.
Using the classing layout. The life and mana values do not appear instantly they only show up after some time is this working correctly?
Also using the default layout. Is it possible to make it a bit transparent (like the classic one) ?
Thanks
The Classic layout isn't working correctly ATM. I will release an updated version soon. To make the default layout transparent, add this to your layout function:
Code:
self:SetAlpha(0.75) --change to whatever you want (0-1)
Originally posted by prosperro
mmoui minion doesn't like rar files. Any reason to not publish it as a zip?
I'll try uploading it as a zip next time.

Originally posted by rberry88
One last question, is there an easy way to add in the Talent line to the tooltip? Just want to see someone's spec (ex. Fury 32/12/0)
I haven't coded in talents yet, I'm debating whether I want to or not. For now, I think you can use TipTacTalents if you want to see talents. It seems to be working well with RantTooltip.
Report comment to moderator  
Reply With Quote
Unread 01-10-10, 03:25 PM  
Jaleni
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Originally posted by Stuck
Are you using the latest version? It works alright for me. I'm also currently working on a new version of RantTooltip_Classic. When I originally released it, I put the layout together fast and didn't really spend much time on it. It should look and work a lot more like the original once I'm finished.
Hi, thanks for very fast reply!
I updated addon today.

How reproduce the error (for example):
1) Taget yourself.
2) Focus yourself.
3) Put mouse icon on focus frame, the tooltip appears.
4) Without moving the mouse, press ctrl-tab to change target (with square brackets, tooltip doesn't change).

Thanks!
Last edited by Jaleni : 01-10-10 at 03:27 PM.
Report comment to moderator  
Reply With Quote
Unread 01-10-10, 10:41 PM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Originally posted by Jaleni
Hi, thanks for very fast reply!
I updated addon today.

How reproduce the error (for example):
1) Taget yourself.
2) Focus yourself.
3) Put mouse icon on focus frame, the tooltip appears.
4) Without moving the mouse, press ctrl-tab to change target (with square brackets, tooltip doesn't change).

Thanks!
Ah, thanks for catching that. Fixed for next update.

edit: Just uploaded a new version. The RantTooltip Classic layout has also been updated. It should work a lot better now.
Last edited by Stuck : 01-10-10 at 10:58 PM.
Report comment to moderator  
Reply With Quote
Unread 01-11-10, 01:16 AM  
strawberrie
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
Code:
Message: Interface\AddOns\RantTooltip\RantTooltip.lua:176: attempt to concatenate a nil value
Time: 01/10/10 23:09:31
Count: 1
Stack: Interface\AddOns\RantTooltip\RantTooltip.lua:176: in function `?'
Interface\AddOns\RantTooltip\RantTooltip.lua:342: in function `ReplaceTags'
Interface\AddOns\RantTooltip\RantTooltip.lua:358: in function `SetUnit'
Interface\AddOns\RantTooltip\RantTooltip.lua:441: in function <Interface\AddOns\RantTooltip\RantTooltip.lua:440>
[C]: ?
[C]: ?
Interface\AddOns\Clique\Clique.lua:105: in function <Interface\AddOns\Clique\Clique.lua:103>
[C]: ?
...ns\AtlasLootReverse\libs\LibExtraTip\LibExtraTip.lua:279: in function <...ns\AtlasLootReverse\libs\LibExtraTip\LibExtraTip.lua:273>
(tail call): ?
Interface\FrameXML\UnitFrame.lua:146: in function `UpdateTooltip'
Interface\FrameXML\GameTooltip.lua:195: in function <Interface\FrameXML\GameTooltip.lua:185>
[C]: ?

Locals: unit = "mouseover"
(*temporary) = ""
(*temporary) = nil
(*temporary) = ""
(*temporary) = nil
(*temporary) = "attempt to concatenate a nil value"
RantTooltip = <table> {
 PowerColors = <table> {
 }
 GetUnitFaction = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:148
 SkinTooltip = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:79
 SetUnit = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:350
 SetUnitTags = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:75
 unitInfo = <table> {
 }
 UpdateHealthBar = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:487
 GameTooltip:OnEvent = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:552
 version = 0.23
 ClassColors = <table> {
 }
 SetInitialAnchor = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:97
 GameTooltip:OnUpdate = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:444
 RGBHex = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:137
 ReplaceTags = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:316
 UpdateCombatIcon = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:477
 ReactionColors = <table> {
 }
 UpdateTag = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:270
 GameTooltip:OnTooltipSetUnit = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:440
 UseLayout = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:70
 UpdatePowerBar = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:528
 OnLoad = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:26
 GetUnitInfo = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:159
 Anchor = <table> {
 }
 TagEvents = <table> {
 }
 GameTooltip:OnShow = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:401
 GameTooltip:OnHide = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:420
 RegisterLayout = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:64
 initialAnchor = <table> {
 }
 Initialize = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:107
 RegisterScript = <function> defined @Interface\AddOns\RantTooltip\RantTooltip.lua:52
 Tags = <table> {
 }
 name = "RantTooltip"
}
i'm still getting these...they come up randomly sometimes when i'm mousing over mobs cuz of target switching...or spamming skills.
Report comment to moderator  
Reply With Quote
Unread 01-11-10, 12:32 PM  
Jaleni
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Originally posted by Stuck
Fixed for next update.
edit: Just uploaded a new version.
Very nice!

Originally posted by Stuck
The RantTooltip Classic layout has also been updated.
It should work a lot better now.
I agree.
It works much better than 0.1 version, in my opinion.
Great!

PS: I have the same problem like strawberrie, but I don't understand how to reproduce it. Anyway it happened only a few times...
Last edited by Jaleni : 01-11-10 at 12:37 PM.
Report comment to moderator  
Reply With Quote
Unread 01-11-10, 12:57 PM  
Malidor69
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hide Tooltip

Greetings!

Ive been using your addon for some time now and I must say I really like it. Thanks for doing a great job.
And now to my question: I was wondering if it's possible to hide All of the tooltips while your in combat? When I mouse over a spell or skill I don't want the tooltip to show when in combat.
So if there is a solution I would be glad to know..=)

Thanks for a great addon!
Report comment to moderator  
Reply With Quote
Unread 01-11-10, 01:22 PM  
Jaleni
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
I'm testing the new classic layout.
I found a little bug, SetBackdropBorderColor doesn't work well with items (correct colors become immediately grey).
Report comment to moderator  
Reply With Quote
Unread 01-11-10, 05:10 PM  
Chasim
A Defias Bandit

Forum posts: 2
File comments: 85
Uploads: 0
How do you use layouts?

Sorry if I missed this... but I downloaded the Classic layout and installed it, along with the two folders from the main AddOn. However, the Classic layout doesn't show and there are no AddOn options. How do I get the Classic layout to work?

Thanks.
Report comment to moderator  
Reply With Quote
Unread 01-11-10, 06:01 PM  
Jaleni
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Re: How do you use layouts?

Originally posted by Chasim
Sorry if I missed this... but I downloaded the Classic layout and installed it, along with the two folders from the main AddOn. However, the Classic layout doesn't show and there are no AddOn options. How do I get the Classic layout to work?
Waiting for an official answer...
I'm using classic layout, I simply removed the RantTooltip_Layout folder.
I don't known if there is a diferent solution...
Report comment to moderator  
Reply With Quote
Unread 01-11-10, 08:50 PM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 127
Uploads: 14
Re: How do you use layouts?

Originally posted by Chasim
Sorry if I missed this... but I downloaded the Classic layout and installed it, along with the two folders from the main AddOn. However, the Classic layout doesn't show and there are no AddOn options. How do I get the Classic layout to work?

Thanks.
If you want to use the classic layout, delete the RantTooltip_Layout folder. RantTooltip_Layout is the default layout that comes with RantTooltip. I'm almost thinking of releasing the default rant layout separately and not including it in the RantTooltip download to avoid confusion.

Originally posted by Jaleni
I'm testing the new classic layout.
I found a little bug, SetBackdropBorderColor doesn't work well with items (correct colors become immediately grey).
Could you elaborate? The classic layout has been updated to change border colors according to item quality. If you're trying to set the border color, this might be interfering. You can change this by removing the self.PostOnSizeChanged function.

Originally posted by Malidor69
And now to my question: I was wondering if it's possible to hide All of the tooltips while your in combat? When I mouse over a spell or skill I don't want the tooltip to show when in combat.
I don't know if I'm going to add this option just yet. A temporary solution is:

Code:
local show = GameTooltip.Show
GameTooltip.Show = function(...)
    if InCombatLockdown() then
        return
    end
    return show(...)
end
You can add that to almost anywhere in your layout.

Originally posted by strawberrie
i'm still getting these...they come up randomly sometimes when i'm mousing over mobs cuz of target switching...or spamming skills.
This will be fixed for the next update.
Last edited by Stuck : 01-11-10 at 08:59 PM.
Report comment to moderator  
Reply With Quote
Unread 01-12-10, 12:53 AM  
LightGuard
A Cyclonian

Forum posts: 47
File comments: 1
Uploads: 0
Position

Is it back to editing the SavedVariable file to position the tooltip?
Report comment to moderator  
Reply With Quote
Unread 01-12-10, 01:00 AM  
Stuck
A Kobold Labourer
AddOn Author - Click to view AddOns

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

Originally posted by LightGuard
Is it back to editing the SavedVariable file to position the tooltip?
No. You have to edit the layout file. The default one should be RantTooltip_Layout.lua.

RantTooltip now uses a layout system that was modeled after oUF.

Find the line that says RantTooltip:SetInitialAnchor. You can change that to whatever you want.
Last edited by Stuck : 01-12-10 at 01:00 AM.
Report comment to moderator  
Reply With Quote
Unread 01-12-10, 05:54 AM  
Jaleni
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Re: Re: How do you use layouts?

Originally posted by Stuck
Could you elaborate? The classic layout has been updated to change border colors according to item quality. If you're trying to set the border color, this might be interfering. You can change this by removing the self.PostOnSizeChanged function.
No no, I'm not trying to set the border color...
Original code doesn't work well...
For example, if I open the character pane (or a bag) and I put the cursor mouse on a blue item, the tooltip border changes from blue to grey immediately.
Is it only a my problem?
Last edited by Jaleni : 01-12-10 at 05:56 AM.
Report comment to moderator  
Reply With Quote
Unread 01-12-10, 06:50 AM  
LinDysign
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
Any way to set some options of this addon ingame? Like getting the tooltips to stick to a predefined position?
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: