Saturday, April 14, 2012

KgPanels Help?

[:1]I want to know if it's possible to make a panel that only appears when I have a pet menu. Any help would be appreciated. Thanks in advance!|||The way I do it is:

1) Use this /print GetMouseFocus():GetName() in a macro, hoover over the petbar and check it's name (might be something like.. PetBarButton1 or something)

2) Go into KGPanels, find the frame you want to show/hide with the Petbar, scroll down to the bottom and find the box that says "Parent" (by default it's filled with "UIParent" iirc). Replace UIParent with the text you got from step 1 (in this example "PetBarButton1). It will now only show when button #1 is shown on the petbar.

(Do note though that this makes your KGpanel frame to have all attributes the parent frame has, for example scale and alpha.)

No comments:

Post a Comment