WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   The frame that pops up when you want to throw something out from your bag (https://www.wowinterface.com/forums/showthread.php?t=59000)

Jaesuk 12-13-21 09:20 PM

The frame that pops up when you want to throw something out from your bag
 
What do you call that frame which pops up whenever you want to throw an item from the bag? Or whenever you equip gear and it tells you it will bind to you?

And if u know, do you know any addon or someway to move that frame?

LudiusMaximus 12-15-21 09:24 AM

You can use /fstack to find out the names of frames. When in the inspection mode, see what happens when you press shift, alt or ctrl while hovering with the cursor over frames. Thus you can find out the names of frames and more.

DahkCeles 12-16-21 07:06 PM

If only one appears at a time, it is called StaticPopup1.

https://www.townlong-yak.com/framexm...taticPopup.xml

Jaesuk 12-17-21 11:16 AM

Thanks.

Anyh idea how I can move that frame?

DahkCeles 12-17-21 01:08 PM

Just call SetPoint().

Lua Code:
  1. StaticPopup1:ClearAllPoints()
  2. StaticPopup1:SetPoint("TOP", 0, -135) -- this is the current location.

SDPhantom 12-19-21 07:22 PM

I'd suggest hooking or rewriting StaticPopup_SetUpAnchor().

The popup frames act as a frame pool, you'll either have them show at random locations or have your anchor overwritten if you statically set one of them.

For example, this uses a secure hook to change the position of the root frame only. Others will spawn under it as is default behavior.
Lua Code:
  1. hooksecurefunc("StaticPopup_SetUpAnchor",function(frame,i)
  2.     if not StaticPopup_DisplayedFrames[i-1] then
  3.         frame:ClearAllPoints();
  4.         frame:SetPoint("TOP",UIParent,"TOP",0,-135);
  5.     end
  6. end);


All times are GMT -6. The time now is 10:08 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI