Game Development Community

StackPanel resource - Stacking item with automatic column/row

by elvince · in Torque 3D Professional · 11/15/2009 (12:22 pm) · 5 replies

Hi,

If you interesting in an enhanced gui control StackPanel, you can see this resource:

StackPanel resource

If you have any comments, please do them in the resource thread so everyone can follow the changes/comments/improvments.

#1
11/16/2009 (5:34 am)
@elvince Hey this is great I have wanted to do this for a while. Make a list with pictures instead of just a text list. You sir are awesome.
#2
11/19/2009 (4:36 pm)
I have not looked at your resource but if you take a look at the library tab in the WorldEditor you will see a regular GuiStackCtrl inside a GuiScrollCtrl which seems to do a good job of stacking its children ( GuiIconButtonCtrls ) first by column and then by row.
#3
11/20/2009 (3:19 am)
@James,

I don't know where you see a stack panel in the world editor. it's a GuiDynamicCtrlArrayControl which is not the same type.

If you looked at my resource, you will see that the stack panel can manage all type of stacking direction (not the case in T3D, only 2 are working) + some inverse extended stacking.
By example stack item with the control that extents to the top of your screen and not the bottom.

I add the column management because it could be useful to have 1 stack that go onto 2 or more column/row which is similar to GuiDynamicCtrlArrayControl behavior.

On the stack panel you also have different parameter to manage the sze of child items, which are not the same as GuiDynamicCtrlArrayControl

So you can have everything in one component. Up to you to choose :D
#4
11/20/2009 (4:20 am)
Oops, guess it is a GuiDynamicCtrlArrayControl. Geez, what a mouthful.

Just thought I'd mention the library / creator as a reference to you but sounds like you are already on top of it. Great work!
#5
11/20/2009 (4:28 am)
It's was a good example of Gui item that can be useful.

I was just pointing out the discrepancies as those 2 gui objects won't be use for the same tasks.

Gui objects are lacking of documentation at the moment, and sometimes it's hard to understand how things are working without going into the C++ code. But I'm sure this will be enhance in the future.