Thread Tools Display Modes
11-23-08, 07:21 AM   #1
shiin
A Fallenroot Satyr
Join Date: Feb 2005
Posts: 23
Moving secure frames depending on having a pet

Hi there,
I've been trying to figure out how to automatically move some of my buttons when the petframe is visible (since it would be above these buttons) and back again when the pet is dismissed. Note that the buttons are still implemented with the old secure templates.

My current solution on paper is as follows:
- anchor my buttons to a an invisible anchor frame (which must be derived from a SecureHandlerTemplate)
- add a child frame to pet frame derived from SecureHandlerShowHideTemplate
- add appropriate _onhide, _onshow snippets
- in the snippets change the height of the anchor frame so that the buttons are moved

I think this solution might work but it is also quite complicated. Might there be an easier way to achieve this result?
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Moving secure frames depending on having a pet


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