Tooltip - LuaTexts

This project is abandoned.

Whether this project is out of date or its author marked it as abandoned, this project is no longer maintained.

If you wish to take this project over, please report it and state your intentions.

Sample tooltip

(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.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of CommanderSirow CommanderSirow Jun 06, 2011 at 17:37 UTC - 0 likes

    @rakkarage: Go

    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.

  • Avatar of rakkarage rakkarage Apr 18, 2011 at 00:51 UTC - 0 likes

    i used to use

    local cur,max = HP(unit),MaxHP(unit)
    local r,g,b = HPColor(cur,max)
    return "|cff%02x%02x%02x%s/%s · %s%%", r, g, b, Short(cur,true), Short(max,true),Percent(cur,max)

    to show colored health on tooltip... now it doesn't work? the color shows the code?

    local cur,max = HP(unit),MaxHP(unit)
    local r,g,b = HPColor(cur,max)
    return "%s/%s · %s%%", Short(cur,true), Short(max,true), Percent(cur,max)

    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 oh i need to use the code for '|' i guess

    Last edited Apr 21, 2011 by rakkarage
  • Avatar of profalbert profalbert Dec 09, 2010 at 09:44 UTC - 0 likes

    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).

  • Avatar of rakkarage rakkarage Dec 07, 2010 at 17:22 UTC - 0 likes

    faction displays quest name too?

  • Avatar of foreverphk foreverphk Dec 05, 2010 at 04:18 UTC - 0 likes

    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.

  • Avatar of srshyu srshyu Nov 05, 2010 at 15:52 UTC - 0 likes

    Is there a code to show target's secondary talent?

    Can someone help with the coding?

  • Avatar of profalbert profalbert Oct 18, 2010 at 13:56 UTC - 0 likes

    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.

  • Avatar of rakkarage rakkarage Oct 18, 2010 at 13:10 UTC - 0 likes

    i found two small simple addons that work well with tooltip_luaText

    - to position the cursor at the mouse or offset of mouse

    - to color the tooltip backgrounds

  • Avatar of rakkarage rakkarage Oct 17, 2010 at 00:36 UTC - 0 likes

    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!
    return Faction or ''
    [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


    Last edited Oct 17, 2010 by rakkarage
  • Avatar of Grilor Grilor Oct 04, 2010 at 11:25 UTC - 0 likes

    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

    Last edited Oct 04, 2010 by Grilor


Date created
Sep 15, 2009
Last update
Nov 10, 2014
Development stage
All Rights Reserved
Recent files