Thread Tools Display Modes
04-06-11, 11:48 PM   #1
Crober
A Murloc Raider
 
Crober's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 9
Frame movment when scaling...locking hides frame in use

I am having an issue where my frame moves if the scale value is changed. I'm not sure if this would be corrected by using frame:ClearAllPoints() or where to use that if it would.

Another issue is that if the frame is unlocked while in use then locked it hides the frame. I know why it does that(the toggleLock function). My question for that is do I need to create a new function to call to show the frame, or just call the existing one for displaying holy power?

pastey

It's set up to show 3 charge holy power when unlocked for user placement, then to go hidden when locked. Just trying to fix this in case someone decides to move it while in combat.

Last edited by Crober : 04-07-11 at 04:18 AM.
  Reply With Quote
04-07-11, 12:07 PM   #2
kraftman
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 63
Where are you changing the scale?
Where are you initially setting the frames position?
  Reply With Quote
04-07-11, 02:25 PM   #3
Crober
A Murloc Raider
 
Crober's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 9
Copied the wrong file to pastey, here's the right one with the frame's position

pastey

The scale changes are done in .lua file, line 29.
  Reply With Quote
04-07-11, 02:56 PM   #4
kraftman
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 63
I think when you drag and drop a frame, it gets reparented, which could be something to do with it. I'm not entirely sure how wow implements scaling.
It might be scaling the x and y offsets of frame anchors, as well as the width and height.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Frame movment when scaling...locking hides frame in use

Thread Tools
Display Modes

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