View Single Post
07-21-08, 12:06 PM   #6
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 772
I've tried both.

Cargor: How would I set it up so that I could use getglobal and buttonName? Specifically, I get this error:

Code:
[2008/07/21 14:10:33-1191-x1]: cLayouts-1.0\cLayouts.lua:41: attempt to index global 'button' (a nil value)
This is my code for editing the buffs thus far:

Code:
local buttonName = button:GetName();
local buffName = buttonName..index;
local buff = getglobal(buffName);

buff:SetPoint("LEFT", getglobal(buttonName..(index-1)), "LEFT", 5, 0);
Slakah: I don't know if you understand me . I am trying to "flip" the buttons.

Like this:
By default the buffs are like this (with the arrow showing the direction in which each buff adds).

<---#3--#2--#1

I want them to go like this

#1--#2--#3--->

Changing the setpoint will only change the area in which it is anchored, not the "orientation" of which the buffs are growing.

Thank you for your responses. I will try messing with the code to see what I can come up with.
__________________
Never be satisfied with satisfactory.

Last edited by Cralor : 07-21-08 at 12:16 PM.
  Reply With Quote