Thread Tools Display Modes
08-30-12, 12:56 PM   #1
Basso
A Fallenroot Satyr
 
Basso's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 22
How can i move DurabilityFrame and others things?

All the things wich are usually attached to the minimap cluster, im trying to move them and im really fustrated now....

Lua Code:
  1. DurabilityFrame:Hide()
  2. DurabilityFrame:Alpha(0)
  3. DurabilityFrame:SetOwner(WorldFrame, "ANCHOR_NONE")
  4. DurabilityFrame:SetPoint("CENTER", 0, 0)
  5. VehicleSeatIndicator:SetPoint("TOP", UIParent, "TOP", 0, 350)

tried everthing but nothing works, the only thing i was able to to move them up and down nothing more.

what do i need to do to move them like all the other frames, i looked in some other addons to get an idea but i didnt found a clue why i cant move them, i mean i cant even hide it....

i simply want to set the position of these things in a lua file, can anybody help me ?
  Reply With Quote
08-30-12, 01:13 PM   #2
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
You might be able to use this:

Code:
DurabilityFrame.ignoreFramePositionManager = true
Pretty much any frame on the right/top side of the screen is managed using the UIParent's frame position manager.
  Reply With Quote
08-30-12, 01:32 PM   #3
Basso
A Fallenroot Satyr
 
Basso's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 22
tried to put it before or after the rest of the code nothing happens, i mean what the hell is that?
every other frame is easily moved.......

but thank you for your advice......
  Reply With Quote
08-30-12, 02:11 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Look at Smooth Durability or other addons that move the durability frame to see how they bypass Blizzard's frame positioning.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
08-30-12, 02:43 PM   #5
Basso
A Fallenroot Satyr
 
Basso's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 22
sadly i dont understand what smooth durability is doing...

i understand how smooth durability makes it dragbale but i dont have a clue how he saves the position or how i would do it with a simple little permanent lua edit......

because of that im asking for advice from someone who understands it better......
  Reply With Quote
08-30-12, 03:00 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Did you call :ClearAllPoints() to erase their previous locations?

Otherwise, you're just *adding* to how they're anchored.
__________________
"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

WoWInterface » Developer Discussions » General Authoring Discussion » How can i move DurabilityFrame and others things?


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