Thread Tools Display Modes
02-11-11, 09:52 AM   #1
Mortilus
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 12
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.

  Reply With Quote
02-11-11, 10:08 AM   #2
Othgar
"That" Guy
 
Othgar's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 228
Originally Posted by Mortilus View Post
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.
__________________


  Reply With Quote
02-11-11, 10:52 AM   #3
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
It's defined in PaperDollFrame.xml and is called GearManagerDialogPopupOkay.

http://wowprogramming.com/utils/xmlb...rDollFrame.xml
__________________
Oh, the simulated horror!
  Reply With Quote
02-11-11, 10:54 AM   #4
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Code:
GearManagerDialogPopupOkay:ClearAllPoints()
GearManagerDialogPopupOkay:SetPoint("TOPLEFT", 210, -35)
?

Last edited by Ketho : 02-11-11 at 11:05 AM.
  Reply With Quote
02-11-11, 11:23 AM   #5
Mortilus
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 12
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.

Last edited by Mortilus : 02-11-11 at 01:41 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Want to move "okay" button - can't find it


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off