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.
 
                            
 
        
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Oct 1, 2010- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Oct 1, 2010- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Oct 1, 2010cool 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
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Oct 1, 2010Specs 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
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Oct 1, 2010been 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
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Sep 9, 2010I would like to know if there is any way to move the "tip anchor" so it won't be blocking my other UIs.
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Oct 3, 2010http://wow.curse.com/downloads/wow-addons/details/move-anything.aspx
one of the best mods out there
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Oct 8, 2010- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Sep 6, 2010thanks. 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
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Sep 2, 2010Name(...) always returns some string. If it would return nil it would break texts.
You can check for an empty string easy:
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Sep 2, 2010the code for target contains "if not name"
does not work... [not name] is never true... for myself or npcs standing around dal this check never returns no target? is it intended to be a check if mouseovertarget exists? is it broken (returns space instead of empty string?) or is there another way to check that? i am not 100% sure why unit .. "target" is used sometimes and "mouseovertarget" is used others?
or actually i guess you need to use strlen to check for empty string?
seems to work
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Sep 2, 2010- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Aug 29, 2010All libs should be included in the newest version (a proper Ace3-port)
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Aug 28, 2010thanks! when i use NameRealm, the - after name shows for local people in group or raid sometimes even though there is no realm name
also noticed this:
Message: Interface\AddOns\CowTip_LuaText\LuaText.lua:4: Cannot find a library instance of "AceTimer-3.0".
but not being included in cowtip or cowtip_luatext?
switched to nolib anyway... i guess is better
thanks a lot for your help and all your great addons and code
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Aug 28, 2010You can use "NameRealm" to show Name and server.
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Aug 27, 2010NameFull shows server and title
Name shows neither
possible to show only server, not title?
thanks
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Aug 24, 2010with no other addons (cowtip & luatext & libs) loaded i can quickly mouse over the player frame and half the time it shows '> Self!' and half the time it shows my name
or with pitbull player, target, targettarget shows rakka but targettargettarget shows self instead and all random
should i be using something other then mouseovertarget?
thanks a lot
EDIT: it's just a delay...? i can replicate it every time. when i first mouseover myself i get name for 1 second till something catches up and mouseovertarget = mouseover then >self! shows
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Aug 24, 2010works for me.
A non-empty tootlip-line should not return nil.
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Aug 24, 2010thanks works great!
does anyone know how can i do this?
if UnitIsUnit('mouseovertarget', 'target') then
return '> Same Target!'
end
errors when i use 'mouseovertarget' wowwiki says its valid?
http://www.wowwiki.com/UnitId
this is my old target text that i am trying to convert. i guess i have to use UnitIsUnit instead of IsUnit but what do i use instead of Target or 'mouseovertarget'?
[Alpha(0.5)][Outline][(if IsUnit(Target, 'mouseover') then 'Self!':White elseif IsUnit(Target, 'player') then 'You!':Yellow elseif IsUnit(Target, 'target') then 'Your Target!':Green elseif IsUnit(Target, 'pet') then 'Your Pet!':Yellow else Target:Name:HostileColor(unit=Target) end):Prepend('> ')]
thanks!
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Aug 23, 2010Sorry, could not quite make it out and then forgot tbh. Now I understand you problem: it is that the Talent-line was not really empty when talents are unknown, it contains the formatting-stuff for the icon.
I modified the default-talent-text, so that it works as you described (I think).