ProspectBar

36 - Question about changing growth direction

What is the enhancement in mind? How should it look and feel?
New to ProspectBar so forgive me if this is already covered somewhere. I'd like to be able to change the anchor point to bottom right and have buttons fill to the left with rows growing up. Is this possible and if so where do I make the changes? If it isn't perhaps the option could be put in a future release? Love the addon it's just that I put it in the lower right corner of my UI and having it filling up and growing columns to the right either runs it off my screen or I have to put the anchor way to the left to leave room and it tends to get jammed up with other UI elements ;p.
Please provide any additional information below.

User When Change
Kithhurrn Oct 02, 2012 at 21:00 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of egingell egingell Oct 02, 2012 at 21:32 UTC - 0 likes

    I would love to be able to change the growth; however, there are two things stopping me: 1) it was hard enough to get it working right and 2) I have no WoW accounts. Even if I use a trial account, my computer can't handle it.

    Nevertheless, I will tell you where the anchors are set.

    --File: ProspectBar.lua
    --Lines: 165-171
    local SetPoint = function(f, column)
    	if f then
    		return "BOTTOMLEFT", f, "TOPLEFT", 0, 0
    	else
    		return "TOPLEFT", addonTable.frame, "TOPLEFT", column * 36, 0
    	end
    end
    

    The first return is positioning the button above the previous button in the current column. The second return is making a new column.

    Notes: The first button in the column is anchored to the ProspectBar main frame and offset by the width of each button. Each subsequent button in the column is anchored to the one below it growing upward.

    Logically, I would think that changing the 36 to -36 would make it go left instead of right; however, the + button might be a concern. If I'm reading my code right, you can change the 22 on line 99 to -22 to correct that.

    --File: Same file.
    --Line: 99
    addonTable.frame:SetPoint("TOPLEFT", addonTable.toggle, "TOPLEFT", 22, 36)
    

    I am not 100% certain of any of the above, I haven't played with the UI elements of any of my addons in a very long time.

  • 1 comment

Facts

Reported
Oct 02, 2012
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees