WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Want to move "okay" button - can't find it (https://www.wowinterface.com/forums/showthread.php?t=38877)

Mortilus 02-11-11 09:52 AM

Want to move "okay" button - can't find it
 
Hello

I want to write an addon which will offset the "Okay" button used by the default EquipmentManager (the thing that is circled in the picture) up a lot and to the right a bit (where the arrow is pointing).

Should be easy enough, but I can't find the darn "Okay" button anywhere in the FrameXML. Heck, I can't even find the "Save" frame that should pop up. It just doesn't seem to exist. If I could find that, then I could just add an okay button, and have its OnClick just run the normal OnClick.

Any help would be most excellent, i've spent a good hour or two going through CharacterFrame.lua, CharacterFrame.xml, and EquipmentManager.lua. I am thinking the solution lies in EquipmentManager.xml but that doesn't seem to exist.

Also, I seem to recall an addon that, whenever you mouse over a frame, puts the name of the frame in the tooltip or prints it to the chatlog or somesuch similar action. But I can't find that either.


Othgar 02-11-11 10:08 AM

Quote:

Originally Posted by Mortilus (Post 229404)
Also, I seem to recall an addon that, whenever you mouse over a frame, puts the name of the frame in the tooltip or prints it to the chatlog or somesuch similar action. But I can't find that either.

That's not an addon that's the chat command "/fstack" or "/framestack" it will tell you the name of any frame you mouseover.

Ailae 02-11-11 10:52 AM

It's defined in PaperDollFrame.xml and is called GearManagerDialogPopupOkay.

http://wowprogramming.com/utils/xmlb...rDollFrame.xml

Ketho 02-11-11 10:54 AM

Code:

GearManagerDialogPopupOkay:ClearAllPoints()
GearManagerDialogPopupOkay:SetPoint("TOPLEFT", 210, -35)

?

Mortilus 02-11-11 11:23 AM

that is so awesome, thank you all so very much for all the replies! :)

edit: also, it would seem that Blizzard coders really need to better-organize their code.


All times are GMT -6. The time now is 09:53 AM.

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