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 profalbert profalbert Oct 02, 2009 at 23:22 UTC - 0 likes

    damn LibRockConfig...

      guild = ("|cff00cc00<%s>|r"):format(guild)

    is the the "non-fucked-up-by-rock"-codeline.

  • Avatar of Athariel Athariel Oct 02, 2009 at 23:17 UTC - 0 likes

    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.

    Last edited Oct 02, 2009 by Athariel
  • Avatar of profalbert profalbert Oct 02, 2009 at 23:12 UTC - 0 likes

    ah, of course.

    return "%d/%d (%d%%)", HP(unit), MaxHP(unit), (math.floor(HP(unit)/MaxHP(unit)*100))

    should work.

  • Avatar of Athariel Athariel Oct 02, 2009 at 23:09 UTC - 0 likes

    Thanks again, but this returns 1337/1337 (1%) for me, instead of 1337/1337 (100%)

  • Avatar of profalbert profalbert Oct 02, 2009 at 21:46 UTC - 0 likes

    might help.

    The text for that might be rather complicated.

    return "%d/%d (%d%%)", HP(unit), MaxHP(unit), (HP(unit)/MaxHP(unit))

    would show something like

    5000/10000 (50%)
  • Avatar of Athariel Athariel Oct 02, 2009 at 19:34 UTC - 0 likes

    Well thanks, but i actually need something like HP(%HP) or current_hp/max_hp

  • Avatar of profalbert profalbert Oct 01, 2009 at 14:16 UTC - 0 likes

    Health and Mana should work the same way as they do in pitbull4_LuaTexts

    Power(unit, "MANA")

    I'm thinking of adding some Codes-data-base for premade luacodes

    Last edited Oct 01, 2009 by profalbert
  • Avatar of Athariel Athariel Oct 01, 2009 at 12:14 UTC - 0 likes

    Any slight chances of adding Health/Mana lines? Or could you please give me an example of such lines?

  • Avatar of esmartuek esmartuek Oct 01, 2009 at 00:40 UTC - 0 likes

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

  • Avatar of profalbert profalbert Sep 29, 2009 at 23:41 UTC - 0 likes

    More convinience-functions for displaying stuff are on the horizon.

    I was also thinking of placeholders for lines of the original tooltip like <<code>> origtt.threat <</code> or something


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