I'm looking for reference
I'm looking for example of basic addon that will permanently move any blizzard frame.
|
If you know the name of your frame (e.g. YourFrame), try this:
Lua Code:
|
Quote:
Wotlk classic. It is only replaced on 1st show. If I mouseover to next npc it will be in default coordinates. Seems like OnShow not triggered again until I wait for tooltip to fade away fully and mouseover npc again. |
OK, when it comes to the GameTooltip, it's maybe different.
But I found a solution for your problem some time ago and posted it on the Blizzard forum: https://us.forums.blizzard.com/en/wo...ltip/1264049/2 Lua Code:
|
Worked like a charm!
I see there is GameTooltip_SetDefaultAnchor command, is it mean that I can setup secondary anchors that activated when certain frame shown? I would like my tooltip to anchor itself to the top of minimap when it is on. |
Glad it works for you.
If you want to use other frames instead of UIParent as the reference frame, just do it. If you want to make this conditional, put the condition into the hooked function. Like this: Lua Code:
|
That is good to know. Will have to leave myself a note for a future addition to nUI rofl
|
All times are GMT -6. The time now is 10:25 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI