Wednesday, April 23, 2008

GE2 GUI Prototype 1.5 TrackBars

Hi.

I would like to give another update regarding the new GUI I am working on.

The latest changes that were made:

1. Control position bounds:
Every control position now can be limited to certain bounds:


2. DragBox grid snap:
It is possible to define how the drag control item position would be rounded when it is dragged.



3. DragBox axis filter:
For DragBox the programmer can define in which direction the drag control would move. Either X , Y or both


Using all these features it is possible to define TrackBar.

The trackBar is a simple control that has a small control usually called "Thumb" or "Slider".
Every windows user is familar with display control window with resolution trackbar:


In Galactic engine there are 2 trackbar controls: vertical and horizontal. Each control has a "thumb" which itself is a DragBox control. The DragBox was defined with position bounds so it wouldn't pass through the trackbar parent size rectangle. Also it has a specific axis defined so it would drag controls only in one direction. When dragging is occured the control finds new thumb position and recalculates current trackbar value based on relative percentage between minimum and maximum values.

Trackbars can have also the maximum and minimum values set, so the thumb would only move within these limits.


Here is a video that demonstrates new trackbar in action:




For more information visit Galactic Engine 2 forum

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home