Hey Aren,
That helps a little bit but still includes a lot of ButtonTween's as well as I just figured out a new problem.
http://imgur.com/uRhbWThat is my example UI.
It starts off in (1) where all of the panels are shrunk down to just buttons. The user clicks b, it expands and panels c and d shift to the right.
When the user selects c next, c expands and b shrinks back down at the same time.
Do you see where I am going with this? In order for this to work it seems like each panel grouping needs:
TweenGroup:
(0) Stretch the panel background outwards (TweenScale)
(0) Shift the panel to the midpoint where it needs to go (TweenPosition)
Panels b,c,d need:
(1) Shift the panel to the right most position it can be
UIButtonTween to target tweengroup 0
And panel a requires:
UIButtonTween to target tweengroup 1 on b, c, d
UIButtonTween to reverse the TweenScale on all of the panels (since it doesn't know which one is open)
That is at most 5 UIButtonTweens.
But, I just found out a consequence of this solution is this:
If B is open and you select C, than because the TweenPosition has a start position it resets itself back to the start point (In (1)) and scales from there and shifts from there. So, I probably need to add even more tween scripts.
I feel like I am doing something wrong in this scenario. Am I missing something? I am going to end up with a lot of UIButtonTweens like this as well as because I can't just tell the object to go from where it is to X position, it resets itself.
Is there a way to specify that I want this tween to just tween the object from where it is currently, to position X? Instead of there having to be a start position? Same with scale, do I need to have a Y and Z scale? I just want to scale in one direction.
This question and/or description might be complicated. Sorry.
EDIT: While I am sure I could programmatically do this I want to avoid adding code to do this as it becomes hard to scale things like that, and I want to try to do as much of the UI in this way as possible. Thanks again.