Thread Tools Display Modes
04-18-08, 03:21 AM   #1
Waverian
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 188
BuffFrame:SetPoint()

I'm attempting to reposition the player buff/debuff/itemenchant frame.

Code:
BuffFrame:ClearAllPoints()
BuffFrame:SetPoint("TOPRIGHT", "TemporaryEnchantFrame", "TOPLEFT", -50, 50);
But it's failed miserably in doing anything at all. I also tried :SetPoint for TemporaryEnchantFrame because BuffFrame is parented to it in BuffFrame.lua, but it also didn't produce any results.

Any tips on how to actually move the player buff frames?
  Reply With Quote
04-18-08, 03:43 AM   #2
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
Originally Posted by Waverian View Post
I'm attempting to reposition the player buff/debuff/itemenchant frame.

Code:
BuffFrame:ClearAllPoints()
BuffFrame:SetPoint("TOPRIGHT", "TemporaryEnchantFrame", "TOPLEFT", -50, 50);
But it's failed miserably in doing anything at all. I also tried :SetPoint for TemporaryEnchantFrame because BuffFrame is parented to it in BuffFrame.lua, but it also didn't produce any results.

Any tips on how to actually move the player buff frames?
This is because Blizzard uses BuffFrame:SetPoint() in an OnUpdate script.
http://wdnaddons.com/2418124/FrameXML/BuffFrame.lua

So you can either hook Blizzards code and muck about with it or,

Code:
BuffFrame:SetPoint("TOPRIGHT", "TemporaryEnchantFrame", "TOPLEFT", -50, 50)
BuffFrame.SetPoint = function() end
  Reply With Quote
04-18-08, 09:39 AM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Take a look at the mod Buffalo to see how it does it. http://files.wowace.com/Buffalo/Buffalo.zip
__________________
"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
04-19-08, 01:07 AM   #4
Daxxzod
A Deviate Faerie Dragon
 
Daxxzod's Avatar
Premium Member
Join Date: Nov 2007
Posts: 19
I always wondered about this. Also is it possible to change the buffs location for each toon in a different place. I've got 7 70s and they all have different ui's.
__________________

  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » BuffFrame:SetPoint()


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