Thread Tools Display Modes
12-04-10, 09:39 AM   #1
Ärdion
A Defias Bandit
 
Ärdion's Avatar
Join Date: Dec 2010
Posts: 3
Problem SetPoint TargetFrame

Hi, this is my first post :P
I have a problem with the SetPoint method moving the TargetFrame or the FocusFrame. When I switch of player the frame don't update the image or the entirely frame. Any advice?
  Reply With Quote
12-04-10, 09:41 AM   #2
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
Originally Posted by Ärdion View Post
Hi, this is my first post :P
I have a problem with the SetPoint method moving the TargetFrame or the FocusFrame. When I switch of player the frame don't update the image or the entirely frame. Any advice?
what method did you use? there's a couple ways to do it.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
12-04-10, 09:47 AM   #3
Ärdion
A Defias Bandit
 
Ärdion's Avatar
Join Date: Dec 2010
Posts: 3
I use this piece of code to move the TargetFrame.

Code:
TargetFrame:ClearAllPoints();
TargetFrame:SetPoint("CENTER", PlayerFrame, "CENTER",117,-47);
  Reply With Quote
12-04-10, 01:23 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
I see no reason why that would break anything... That's how I was doing it on the beta server.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
12-04-10, 06:35 PM   #5
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
Yea that should be okay although i think that it may update the targetframe location occasionally so you would have to stop it from resetting the set point.

Im guessing there is more to your code then that? it must be one of the other lines...
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
12-05-10, 05:02 AM   #6
Ärdion
A Defias Bandit
 
Ärdion's Avatar
Join Date: Dec 2010
Posts: 3
I had problems with de account to post the entirely piece of code. I solved the mistake. I used SetParent(UIParent) with the SpellBar frames to move them and this caused the errors >_<
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Problem SetPoint TargetFrame


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