anzz1 / TacoTip

Better player tooltips - class colors, talents/specialization, GearScore & more - for Classic / TBC / WoTLK
8 stars 19 forks source link

Custom anchors #3

Closed sfjuocekr closed 2 years ago

sfjuocekr commented 2 years ago

Could you implement custom anchor locations?

I'd like to have unit tooltips on my mouse for example.

TinyTooltip has a good example of how you could implement this, I have modified its behavior by changing the following bit in core.lua so it ignores mouseover tooltips on the raid frame:

hooksecurefunc("GameTooltip_SetDefaultAnchor", function(self, parent)
    if GetMouseFocus() ~= WorldFrame then return end
    LibEvent:trigger("tooltip:anchor", self, parent)
end)
anzz1 commented 2 years ago

Sure, I've been on a temporary hiatus but I'll be sure to add this option in a future release.

sfjuocekr commented 2 years ago

Also the newly added "you" for target could be accentuated by the color red and capitalized!

anzz1 commented 2 years ago

I was also thinking of an option which could color the frame borders, if an enemy is targetting you=yellow / enemy in combat&targetting you=red (meaning npc is aggroing you, or a player is on pvp combat and targeting you)

sfjuocekr commented 2 years ago

That is a great idea. Maybe making the background class/reaction based is an idea as well.

I am also missing location, when I mouseover someone now I can't tell in which zone they are.

sfjuocekr commented 2 years ago

Ok maybe I was just blind, because I do see locations now...

anzz1 commented 2 years ago