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.
The only thing I will add is a collection of premade texts to select from (like the luatext-module in pitbull4).
Hello,
Is there any plans to add some kinda GUI to configure the data show/colors/formatting..etc without having to know the Lua Code ???
Cuz I wanna reformat the tooltip and add some extra stuff like mana/hp..etc but i donno Lua Code
Thx :)
should do the trick. Some doc on the functions is on the TODO-list ;)
Hello there
Can anyone help me with the lua code for the default level race class line? I wanna add it so when I see a druid in bearform it comes something like, Level 80 Tauren Druid (Bear) and for Treeform (Tree) etc. and maybe when a priest is in Shadowform it comes (SF)
I've tried the for many hours to add it but I can't for the life of me make it work :)
Thanks in advance.
Sorry for the breakage. I just did it the same way pitbull4 does it, but obviously rock doesn't like it. However, it should be fixed in v0.3-beta-9-gfb49c25.
It seems one of the last commits has broken all rock-dependant addons for me. Well, actually i'm not sure if it's you, but one of the add-ons i've updated recently resulted in popping up errors for Quartz, XLoot, XlootMaster, XlootGroup and CowTip. I'm no programmer, but it looks like both LibDewDrop and LibRock are pretty much unhappy. I only presume it's you because cowtip's the only rock addon i have updated. Update - i've posted a ticket showing couple of errors i got, but that's not all of em. Update MK II - yup it's the last version of cowtip_luatexts alright, just reverted to stable version and everything seems back to normal.
Actually the Colorize-function does set the Alpha-value to FF so the output actually is |cff00cc00_guild_name_|r
Yup, close enough. Although i kind of failed to figure out how do i set brightness this way, and the colour i get is exactly the same as friendly npc names. Any way to set that "FF"00cc00, not just 00cc00?
guess I have to move the line-config to AceConfig or some custom stuff.....
edit:
works though
Lies, this returns |cff00cc00_guild_name_|r
damn LibRockConfig...
is the the "non-fucked-up-by-rock"-codeline.
And thanks yet again! :D This last string really IS complicated o.O
One more question: how do i make my guild name green-coloured, like classic cowtip did it? You did that by default through hexcode in lua, but after copypaste in game i'm only getting the text, not colours.
ah, of course.
should work.
Thanks again, but this returns 1337/1337 (1%) for me, instead of 1337/1337 (100%)
might help.
The text for that might be rather complicated.
would show something like
Well thanks, but i actually need something like HP(%HP) or current_hp/max_hp
Health and Mana should work the same way as they do in pitbull4_LuaTexts
I'm thinking of adding some Codes-data-base for premade luacodes
Any slight chances of adding Health/Mana lines? Or could you please give me an example of such lines?
Thank you very much for inserting the location and whatnot into the code. This has become a -must have- since it definitely improved framerate and helps clean up visual quality of Cowtip. Thank you ^.^