Tooltip - LuaTexts
(former CowTip_LuaText)
Allows to configure the content of unit-tooltips with custom Lua-Codes.
It uses a modified version of PitBull4's LuaText-ScriptEnv.
Some functions were removed.
Some new were added.
Some were modified to better suite for tooltips.
If Cowtip is installed it automatically disables cowtips built-in dogtag-based text-module.
Hello all,
i have a question;
Is it possible to make the background green when the targeted unit is in
A: Your real id friends list
B: In your noirmal Friendslist
C In your guild
(it may also be a Textline like "a Friend" or when in friendslist the 'friendslists notel' is shown or combinated)
Regrads
Hi is it possible to hide the fraktion? I can´t find it in the lines....
Thx for the help
The faction-line is not part of the original tooltip.
It's added by the game when tooltip-luatext is finished with all the work, similar to quest-progress-information.
It's not possible to remove a single tooltip line after it's been rendered. One can only clear it and redraw it. Everytime I try that, the line gets back in... Sorry
@rakkarage
Take a look at the colored name example, for colored text you need to use the text = Colorize(text, r,g,b) function. That way it worked for me.
i used to use
to show colored health on tooltip... now it doesn't work? the color shows the code?
this still works without the color... how can i fix the color or use the Colorize function to make this work? thanks a lot :)
edit1: that original code still works if i copy my old lua config backups... but if i take code and copy it to another window... it looses its color? edit2: it seems to add an extra | to the color code when i copy it? cannot see or edit that edtra | in the gui only in the lua and fixing that fixed it
http://forums.wowace.com/showthread.php?t=19388 oh i need to use the code for '|' i guess
anyone know what the code is to pull up guild reputation?
-----
also, when i used GetGuildInfo(unit) on any target, it always shows MY guild info, and not the info of my target. how to do right?
I don't think so. Tooltip_LuaTexts does not prevent other addons (or the default-interface) from adding additional lines to the tooltip (like Threat, or quest-stuff).
faction displays quest name too?
I find that TipTop (from wowinterface) works perfectly with Tooltip - LuaTexts. TipTop can modify the anchor, background border and healthbar and this addon can modify the texts inside.
Is there a code to show target's secondary talent?
Can someone help with the coding?
http://wow.curse.com/downloads/wow-addons/details/tipsy.aspx
can be used to modify the tooltip anchor (by default in bottom right corner)
you can also use tinytip or tiptac to do the other stuff. just make sure that they don't modify the tooltip text too.
i found two small simple addons that work well with tooltip_luaText
- to position the cursor at the mouse or offset of mouse
http://wow.curse.com/downloads/wow-addons/details/tooltiponmouse.aspx
- to color the tooltip backgrounds
http://www.wowinterface.com/downloads/info18349-ColoredTooltips.html
get an error when mouseover target that aggro me in latest v0.7-beta-2-g7d8f0e1 for 4.0.1
Message: Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:59 invalid option in `format'
Time: 10/16/10 20:20:06
Count: 57
Stack: [C]: in function `format'
Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:59 in function `GetText'
Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:435 in function `AddCustomLines'
Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:384 in function `RefixLines'
Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:506 in function `OnTooltipSetUnit2'
Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:489 in function <Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:484
(tail call): ?
Interface\AddOns\CowTip\CowTip.lua:248 in function <Interface\AddOns\CowTip\CowTip.lua:246
(tail call): ?
Locals: (*temporary) = "100% Threat"
and it says in chat:
An error occured in a LuaText!
Code:
return Faction or ''
Args:
[1] 100% Threat
this seems to be coming from blizzard adding threat text to tooltip? idk...
i removed the "return Faction or ''" line as a workaround but would like to add it back
thanks
Is Tooltip - LuaTexts an alternative?
yea if i have xperl on and this mod on i get the error. but if i turn of xpel no error or if i turn off this addon no error.
and i only get it when i mouse over the my UnitFrame when xper is running
also got this on latest build when scanning for talents:
Message: ...\AddOns\Blizzard_InspectUI\InspectPaperDollFrame.lua:23 Usage: UnitLevel("unit")
Time: 10/04/10 08:40:46
Count: 3
Stack: [C]: in function `UnitLevel'
...\AddOns\Blizzard_InspectUI\InspectPaperDollFrame.lua:23 in function `InspectPaperDollFrame_SetLevel'
...\AddOns\Blizzard_InspectUI\InspectPaperDollFrame.lua:18 in function <...\AddOns\Blizzard_InspectUI\InspectPaperDollFrame.lua:8
Locals: (*temporary) = nil
BTW, I added new functions Gender(unit) and GenderIcon(unit)
look at the defaults, on how to use the icon.
I hoped that I can skip the PTR this time. *sigh*
So this error occurs only when using Xperl and TTL at the same time?
getting this error on PTR has to do with this mod and Tooltip_LuaTexts:
Message: Interface\AddOns\Tooltip_LuaTexts\Talents.lua:21 attempt to compare number with string
Time: 10/03/10 12:15:28
Count: 1
Stack: Interface\AddOns\Tooltip_LuaTexts\Talents.lua:21 in function <Interface\AddOns\Tooltip_LuaTexts\Talents.lua:10
[string "safecall Dispatcher[4]"]:4: in function <[string "safecall Dispatcher[4]"]:4>
[C]: ?
[string "safecall Dispatcher[4]"]:13: in function `?'
...ilo\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:92 in function `Fire'
...Texts\libs\LibTalentQuery-1.0\LibTalentQuery-1.0.lua:150 in function `Query'
Interface\AddOns\Tooltip_LuaTexts\Talents.lua:80 in function `TalentSpecIcon'
[string "return function(unit) if not unit then retu..."]:1: in function `func'
Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:45 in function `GetText'
Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:435 in function `AddCustomLines'
Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:384 in function `RefixLines'
Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:506 in function `OnTooltipSetUnit2'
Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:489 in function <Interface\AddOns\Tooltip_LuaTexts\LuaText.lua:484
(tail call): ?
[C]: in function `SetUnit'
Interface\AddOns\XPerl\XPerl.lua:1278 in function `XPerl_PlayerTip'
Interface\AddOns\XPerl\XPerl.lua:3375 in function <Interface\AddOns\XPerl\XPerl.lua:3374
Locals: <none>
this was posted on the xperl page too. but the weird thing is on PTR i get this error but on the Beta server i dont and every thing works fine
i only get this error when i mouse over my unitframe