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.
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
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
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
I would like to know if there is any way to move the "tip anchor" so it won't be blocking my other UIs.
http://wow.curse.com/downloads/wow-addons/details/move-anything.aspx
one of the best mods out there
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
Name(...) always returns some string. If it would return nil it would break texts.
You can check for an empty string easy:
the 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
All libs should be included in the newest version (a proper Ace3-port)
thanks! 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
You can use "NameRealm" to show Name and server.
NameFull shows server and title
Name shows neither
possible to show only server, not title?
thanks
with 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
works for me.
A non-empty tootlip-line should not return nil.
thanks 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!
Sorry, 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).