Tooltip - LuaTexts

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 profalbert profalbert Oct 04, 2010 at 06:03 UTC - 0 likes

    BTW, I added new functions Gender(unit) and GenderIcon(unit)

    look at the defaults, on how to use the icon.

  • Avatar of profalbert profalbert Oct 04, 2010 at 06:02 UTC - 0 likes

    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?

  • Avatar of Grilor Grilor Oct 03, 2010 at 20:00 UTC - 0 likes

    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

    Last edited Oct 03, 2010 by Grilor
  • Avatar of Grilor Grilor Oct 02, 2010 at 14:21 UTC - 0 likes
    ok everything on live works perfectly. on beta everything BUT the spec works. i get everything to show up but there is no spec lien even after inspec of move over for any lenght of time
    Last edited Oct 02, 2010 by Grilor
  • Avatar of Grilor Grilor Oct 02, 2010 at 00:10 UTC - 0 likes
    i added the 1st part to your code casue every time i moused over my self i got an xperl error so now i dont get an xperl error with it this way local sex = UnitSex(unit) if sex==1 then return " " elseif sex == 2 then return "Male" elseif sex == 3 then return "Female" end so thanks alot for all your help
    Last edited Oct 02, 2010 by Grilor
  • Avatar of profalbert profalbert Oct 02, 2010 at 00:04 UTC - 0 likes
    local sex = UnitSex(unit)
    if sex == 2 then
        return "Male"
    elseif sex == 3 then
        return "Female"
    end
    
  • Avatar of Grilor Grilor Oct 01, 2010 at 23:43 UTC - 0 likes

    cool thanks for letting me know about the inspect thing. as for the gender part i looked at it and its a bit over my head i can do basic stuff but i tryed it and all i got was the code 1,2 or 0 witch is not quite what i wanted but its all good thankts for the help

  • Avatar of profalbert profalbert Oct 01, 2010 at 23:08 UTC - 0 likes

    Specs are only available after inspecting. The talents can only be scanned when targeting the unit (it also may take a while).

    For displaying the gender, have a look at http://www.wowwiki.com/API_UnitSex

  • Avatar of Grilor Grilor Oct 01, 2010 at 22:53 UTC - 0 likes

    been tring to add a Gender line but i dont know the code used to do it so far i got this in the left window:

    return 'Gender:'

    but not sure what is needed to add on the right side to get male ot female to show up also how to i get there Spec ICON to show up all i have been able to get is there a rogue or shaman but nothing about specs

    Last edited Oct 01, 2010 by Grilor
  • Avatar of rakkarage rakkarage Sep 06, 2010 at 15:09 UTC - 0 likes

    thanks. now that it is detached from cowtip and not reliant on rock...
    are you still using cowtip to position / color / etc your tooltips? do you plan on bringing some of those features to Tooltip - LuaTexts? or is there another addon that can do that well? tried ttw but...? thanks

Facts

Date created
Sep 15, 2009
Category
Last update
Sep 12, 2013
Development stage
Release
License
All Rights Reserved
Curse link
Tooltip - LuaTexts
Downloads
17,397
Recent files

Authors