Modest, efficient, customizable tooltip. Should work fine with whatever WotLK throws at it.
Features:
GUI Options.
Anchored to cursor by default.
Ability to anchor the tooltip anywhere with the lua config variable, layout.anchor.
Option to change color scheme (unit name color, guild color, bg color, border color)
Unit Reaction Color or Class Color borders and likewise colors for unit names, all included in the colorScheme table.
The tooltip's font is completely customizable, including the ability to add font flags (OUTLINE) etc.
These options are tables at the top of the lua file. An option GUI has been intentionally excluded for efficiency purposes.
Target Line: Displays the unit's target.
Talent Spec Line: To enable or disable talent display, open rantTooltip.lua and set layout.showTalents to true/false respectively.
Combat Icon: displays the unit's combat status. Can be toggled on or off.
Raid Icon: displays the unit's raid icon. Can be toggled on or off.
Toggles for the PvP status Line, player guild line, and Player Titles.
Different border for the tooltip, also an option in the lua config.
Item Quality Borders
Custom Health Bar Texture
Optional mana bar display
Status bars can be displayed on the inside of the tooltip if desired
Scaling and a lot more.
Config Documentation:
layout:
statusBarsInTooltip: shows status bars (health and mana) on the inside of the tooltip rather than below the tooltip. this also displays health/mana values as well as percentages on the status bars.
showManaBar: shows the mana bar as well as the health bar, only works with the above option
reanchorActionTips: Re-anchor's the tooltip to the topright of an action button when mousing over a spell or and item on an action bar.
showRealm: Shows the player's realm name on the tooltip
realmAsterisk: Shows an "*" instead of the realm name
showGuild: Shows the player's guild line
showTalents: Shows the player's talent spec. Must be "true" for showTrees & showSpecTab to have any effect.
showTrees: Shows the players talent trees (i.e. 41/20/0)
showSpecTab: Shows the name of the player's primary talent tree
showPvP: Shows the pvp line
showCombat: Shows a combat line if unit is in combat
showTitles: Shows player titles on the tooltip
scale: scale of the tooltip (0.1 - 1)
anchor: Tooltip anchor. Can be: TOPRIGHT, RIGHT, BOTTOMRIGHT, TOPLEFT, LEFT, BOTTOMLEFT, CURSOR, or PRESERVE
Anchor Offsets. Anchor cannot be "CURSOR" or "PRESERVE" if these are used.
edgeFile: The actual tooltip border file. Blizzard Default: Interface\\Tooltips\\UI-Tooltip-Border
edgeSize: controls border thickness
insets: use higher values depending on how thick your border is
statusBar: the file path to the status bar texture. Blizzard Default: Interface\\TargetingFrame\\UI-TargetingFrame-BarFill
colorScheme:
border: the normal border color for spell/item tooltips (ie: 0.4, 0.4, 0.4, 1) (blizz default: TOOLTIP_DEFAULT_COLOR)
backdrop: background color of the tooltip (ie: 0, 0, 0, .75) (blizz default: TOOLTIP_DEFAULT_BACKGROUND_COLOR)
guild: guild line color :: green(0, 1, 0), blue(0.2, 0.8, 1.0), purple(1, 0, 1)
playerClass: sets player's name to their class color if true (default: true)
itemBorder: sets item tooltip border to the item's quality color if true
reactionBorder: uses reaction border colors for units if true, otherwise uses the normal border color
reactionTable: table to use for reaction colors. can be "UnitReactionColor" or "FACTION_BAR_COLORS"
flagA: font flag (i.e. OUTLINE), Blizz Default: nil
flagB: second font flag (i.e. MONOCHROME), Blizz Default: nil
I'm always willing to make this addon better. If you have any suggestions just let me know.
Feel free to make borders and upload them. I will try to include them as an option!
-[Rummie] of Blackrock (US)
Change Log - RantTooltip
64 - Added 2 new options:
statusBarFormat: format for text on the statusbars inside the tooltip. Variables are: $cur, $max, $perc, and $miss
fadeOut: whether or not unit tooltips should fade out
Also added a draggable anchor for the tooltip.
[Revision 63] - Fixed an bug where death knight's mana bars were causing an error when displayed. Probably changed around some other stuff too.
[Revision 62] - Re-added the pvp line. Changed some code around.
[Revision 61] - Fixed a bug where the tooltip position would be skewed if anchored to the cursor while the tooltip was scaled.
Fixed a bug where loading the UI without RantTooltip_Options enabled would produce an error.
The show PvP flags option now changes the backdrop of the tooltip based on the units PvP status.
You can link an item in chat from the ItemRefTooltip by shift+clicking.
You can now also try on the item, from itemreftooltip, in the dressing room with Ctrl+click.
Quick fix for an error that was presenting itself when "Retrieving item info" was displayed on a tooltip.
More small changes.
[Revision 60] - More options revisions. Keep in mind these small updates aren't terribly necessary to download if you're just upgrading. I upload these to make sure the first time users can download the most revised version.
[Revision 59] - Bug fixes: Option edit boxes are no longer numeric only. Negative offsets will work with "CURSOR" anchor (and everything else).
[Revision 58] - cleaned up A LOT of code
[Revision 57] - more minor changes to make the options more user friendly
[Revision 56] - minor changes
[Revision 55] - Added GUI Options (/rant), coded from scratch. You can delete RantTooltip_Options if you don't want to use them at all.
[Revision 54] - New versions will no longer reload the default config. Just be sure to set new options if there are any.
[Revision 53] - Started counting versions in terms of revisions. Added version detection. If you use options, this will reload the default config everytime you install a new version. This is necessary to keep new slash command options available. This is why I highly recommend you keep your config.lua updated with your default settings and re-enter them when there is a new version.
Added a statusBarsInTooltip option. This took me maybe 10 lines of code to implement. This is still a lightweight addon. It uses a new global function that was added with the arrival of the achievement system to add a health bar and mana bar on the inside of the tooltip, so it is more efficient that other addons that do this. It shows health/mana values as well as percentages on the bars. You can enable this by typing: /rant layout statusBarsInTooltip true
You can turn the mana bar off with: /rant layout showManaBar false
You can now input offsets when the tooltip is anchored to the cursor.
Example: /rant layout anchor "CURSOR" 50 50
1.7.8 - Fixed a bug where showTitles wasn't working.
1.7.7 - RantTooltip now displays QuestHelper lines. Added a reanchorActionTips option that dictates whether a tooltip should be reanchored to action buttons or not, when mousing over them.
1.7.5 - Fixed display bugs. Cleaned up code.
1.7.3 - Now affects drop down menus and world map tooltips.
The tooltip is now anchored to the right of the action button when mousing over a spell.
Something else I forgot. Probably fixed something.
1.7.0 Beta - rantTooltip code has been reorganized to allow upcoming changes. Options enabled by default. You can now change all config settings in-game. Let me know how it is.
1.6.5 - Tooltip now displays a player's realm name with the config variables, "showRealm" and "realmAsterisk".
1.6.2 - fixed a texture bug
1.6.1 - Changed a few small details
Fixed a backdrop bug when used with tekKompare
1.6.0 - Added slash command options. In order to use these you must set "useOptions" to true in config.lua. This saves all the config variables for different characters. Use this if you want character specific settings or just want to change things around in-game.
Clicking ItemRefTooltip now links the item in chat.
Made raid icon less intrusive.
Started using the premade tooltip textures for cleaner memory usage.
1.5.1 - Added new default health bar texture. Borrowed from Nurfed UI (the best ui suite known to man).
1.5.0 - The showCombat option now displays a combat icon in the top left corner if the unit is in combat.
Added a showRaidIcon option which displays the unit's raid icon.
ItemRefTooltip (the item link tooltip) now displays the item's icon in the top left corner.
1.4.6 - fixed level display bug on mobs
cleaned up more code
the scale option now scales all tooltips
1.4.5 - 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
1.4.2 - Added a status bar texture config option
Fixed a bug - NPC's will now display all of their tooltip lines correctly (i.e. "Innkeeper")
1.4.1 - Fixed bugs with WotLK:
-Fixed a reaction table bug
-Tooltips will now be displayed correctly when mousing over unit frames.
1.4.0 - Recoded the colorScheme settings from scratch. They are a lot more efficient now.
-Separated the lua config into "config.lua".
-Added a readme.txt for config setting info.
-Added a scale option in the config.
-Added x and y offsets for the tooltip anchor in the config.
-Added option to change the color table for unit reactions.
-Other stuff as well.
1.3.5 - fixed wotlk bug
new tooltip border
added config options for:
normal border color
tooltip edgeFile
more talent line options
1.3.1 - minor code adjustments
1.3 - Added a few new features/lines. Lua config in the layout table with these variables:
-showGuild = true, --Shows the player's guild line
-showTalents = false, --Shows the player's talent spec if set to true
-showPvP = false, --Shows the pvp line
-showCombat = false, --Shows a combat line if unit is in combat
-showTitles = false, --Shows player titles on the tooltip
-anchor = "CURSOR" --Tooltip anchor. Blizzard Default is "PRESERVE". Can be: TOPRIGHT, RIGHT, BOTTOMRIGHT, TOPLEFT, LEFT, BOTTOMLEFT, CURSOR, PRESERVE, or NONE
-Improved all around efficiency.
-Cleaned up a lot of code and fixed the ItemRef and Shopping tooltip displays.
1.2 - Changed the reaction border colors so they're easier on the eye.
1.1 - Fixed a target line bug and added a talent display line.
Optional Files - RantTooltip
Sorry, there are currently no optional files available.
Quote:
Originally posted by Willowy
1) reanchoractiontips seems to be non-functional when using "CURSOR" anchor and an offset (using 0, 10); the tooltip will not anchor to the corner of the action button.
I can't reproduce this. It works fine.
this option is definitely buggy. it worked fine on my hunter, but not on my priest. i came here searching for answers... after reading that this person also had problems, i went back and began toggling options... entering X/Y values, then zeroing them, changing "CURSOR" to something else and then back... disabling and renabling the feature itself, and strangely enough, everything is fine now. Tooltips for Action Buttons are now anchoring to the cursor correctly on my priest.
Currently the tooltip parented to the UIParent, it would be handy if you can set the parent to a separate moveable frame, this moveable frame should be visible/hidden through a slash command such as /rtt and based on your design it should be part of the core, not the LoD options, so these who don't have the LoD options addon would still have the ability move it.
I've considered this before, but I am all about precision, which is why rant is the way it is. If I had to design my UI by dragging frames, I wouldn't be a UI junkie. I suppose it couldn't hurt now though.
It would be great if you could check for the presence of Ace texture resource files and then allow the user to select one for both the health bar and power bar of the target.
I just wanted to say, this is the freshest looking tooltip mod to come along in a very long time! Great job!
Grimpickle
grimpickle.com (GrimPack mod compilation)
Currently the tooltip parented to the UIParent, it would be handy if you can set the parent to a separate moveable frame, this moveable frame should be visible/hidden through a slash command such as /rtt and based on your design it should be part of the core, not the LoD options, so these who don't have the LoD options addon would still have the ability move it.
By anchoring to a separate frame you have the possibility to position the tooltip within the UIParent and let it grow from this point to this direction, in the current situation you can only position it relative to UIParent, that means that you can only control the position of the tooltip but you can't control the direction it grows.
Here is a working example of what I mean.
RantTooltip.xml : A new file.
Code:
<Frame name="RantTooltipMobilityFrame" parent="UIParent" enableMouse="true" movable="true" clampedToScreen="true" hidden="true">
<Size>
<AbsDimension x="100" y="60" />
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="UIParent">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnMouseDown>
if arg1 == "LeftButton" and not self.locked then
self:StartMoving()
end
</OnMouseDown>
<OnMouseUp>
self:StopMovingOrSizing()
</OnMouseUp>
</Scripts>
</Frame>
RantTooltip.lua
Modifying the 'OnEvent' handler.
Code:
RantTooltipMobilityFrame:SetBackdrop(backdrop)
RantTooltipMobilityFrame:SetBackdropColor(0, 1, 0, 0.5)
RantTooltipMobilityFrame.locked = true
SLASH_RENTTOOLTIP1 = "/rtt"
SlashCmdList["RENTTOOLTIP"] = function(input)
local frame = RantTooltipMobilityFrame
if not frame.locked then
frame.locked = true
frame:Hide()
else
frame.locked = false
frame:Show()
end
end
Originally posted by velvyt IM trying to get my tooltip to offset just to the lower right of the tip.
I can get the y offset to go toward the right, but the x offset wont accept negative numbers, so cant get the tooltip to move down from the cursor.
I checked the documentation and saw nothign about this, anyone got any ideas?
Im trying to type in the offset number as -175
This was fixed in a previous version. Sorry about that. If you update it will work fine.
Quote:
Originally posted by sithas
I have finally found a tooltip mod I love and after configuring the mod abit its exactly how I want it except for one thing. When I have the healbar inside the tooltip frame the text shows min/max health and percent. I can't seem to figure out how to make it show just percent. Anyone know a way to fix this? Thanks in advance
Options for this will be added soon.
Quote:
Originally posted by Zapper1
I need some help on the scale. it's set to 1.0, but no matter what i do it goes back to 0.5 whenever i zone or anything like that.
I can't think of any reason this would be happening. I have never heard of this happening to anyone before. Are you using any other addons that modify any aspect of the tooltip?
Quote:
Originally posted by Willowy
1) reanchoractiontips seems to be non-functional when using "CURSOR" anchor and an offset (using 0, 10); the tooltip will not anchor to the corner of the action button.
I can't reproduce this. It works fine.
Quote:
Originally posted by Willowy
2) there's an odd glitch when hovering over my water elemental macro; the tooltip jumps constantly between the default cursor anchor (0,0) and whatever offset I have it set to. For some reason, it only occurs on this action button. If I set the anchor offset back to 0,0 it works perfect again.
I have finally found a tooltip mod I love and after configuring the mod abit its exactly how I want it except for one thing. When I have the healbar inside the tooltip frame the text shows min/max health and percent. I can't seem to figure out how to make it show just percent. Anyone know a way to fix this? Thanks in advance
1) reanchoractiontips seems to be non-functional when using "CURSOR" anchor and an offset (using 0, 10); the tooltip will not anchor to the corner of the action button.
2) there's an odd glitch when hovering over my water elemental macro; the tooltip jumps constantly between the default cursor anchor (0,0) and whatever offset I have it set to. For some reason, it only occurs on this action button. If I set the anchor offset back to 0,0 it works perfect again. The macro I'm using is:
#showtooltip [pet] Freeze; Summon Water Elemental
/cast [pet] Freeze; Summon Water Elemental
Using Dominos for action bar, latest Rant, no Options (using lua to configure). All the other features seem to be working well, thx again for a great, lightweight tooltip mod!
Originally posted by goliath0 If you want to be a super minimalist, don't use Options, and delete the saved variable line in .toc file. That way the 1 line files which are useless to the addon won't be created at all.
If you want to be a super minimalist, don't use Options, and delete the saved variable line in .toc file. That way the 1 line files which are useless to the addon won't be created at all.
Originally posted by bonesauce I see the line that says gui options on the description, but no, I'm not having any luck finding the actual options. I see the name on the list in the interface menu, but it was empty. No slash commands I could think of or that I've seen written have worked either.
I spent the next hour looking back at all of the comments expecting somewhere to see a line I can add or edit to get the thing to stop popping up on my cursor but I came up with nothing, and those that were close to what I was looking for did nothing. Now, I'm more than willing to admit that I'm being thick here, but I can't figure out what I'm missing. I'm not particularly familiar with lua (or any other language/script that's been popularized in the last 10 years) but I can read and edit a little code and I'm pretty sure I'm missing something.
EDIT: I deleted it and re-downloaded and the menu filled up with the actual options this time. Nevermind. Thanks! My only suggestion would be to add something to make the anchor dragable, though. I have been charged with the task of setting up everyone I know's UI and it's gonna be a bit of a pain getting it where it needs to be on each one. Other than that, it's all good.
If you can see a RantTooltip options category with nothing in it. This means:
1. You're not using the latest version.
2. RantTooltip_Options is either disabled or not installed.
Originally posted by Stuck I suppose you missed the GUI options that have been included with this addon for the past week. Enjoy.
I see the line that says gui options on the description, but no, I'm not having any luck finding the actual options. I see the name on the list in the interface menu, but it was empty. No slash commands I could think of or that I've seen written have worked either.
I spent the next hour looking back at all of the comments expecting somewhere to see a line I can add or edit to get the thing to stop popping up on my cursor but I came up with nothing, and those that were close to what I was looking for did nothing. Now, I'm more than willing to admit that I'm being thick here, but I can't figure out what I'm missing. I'm not particularly familiar with lua (or any other language/script that's been popularized in the last 10 years) but I can read and edit a little code and I'm pretty sure I'm missing something.
EDIT: I deleted it and re-downloaded and the menu filled up with the actual options this time. Nevermind. Thanks! My only suggestion would be to add something to make the anchor dragable, though. I have been charged with the task of setting up everyone I know's UI and it's gonna be a bit of a pain getting it where it needs to be on each one. Other than that, it's all good.
Last edited by bonesauce : 11-10-2008 at 01:16 AM.
Originally posted by Vytae I did try to remove the things I didn't want int the config.lua but it caused a myriad of error messages pointing to the ranttooltip.lua calling for the options I removed. Thanks for adding it back but please make it an option for those that like the color change.
Keep in mind you can only remove the boolean (true/false) variables from the config.
I was originally going to keep the PvP line as an option, but at the time I didn't feel like anchoring another check box in the options (doing 40+ was enough when I wrote that damn thing lol). So after I added the unit selection color backdrop I just replaced the old one.
Originally posted by Stuck Vytae, I will add it back in. I didn't think anyone would prefer the pvp line to the backdrop color. Sorry.
I did try to remove the things I didn't want int the config.lua but it caused a myriad of error messages pointing to the ranttooltip.lua calling for the options I removed. Thanks for adding it back but please make it an option for those that like the color change.