 |
 |
Member Community Game Development, 3D Modeling, Art, Sound Effects and more
|
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
Marek Site Admin

Joined: 11 Feb 2007 Posts: 515 Location: Ontario Canada  |
Posted: Thu Nov 15, 2007 7:09 pm Post subject: GameDev VMK 42 - GUI List Control |
 |
|
VMK 42: GUI List Class
This VMK consists of three parts.
VMK42A shows you how to improve the GUISlider class so that we can use it in the next VMK. This video is 14 min 22 sec long.
In VMK42B I show you all the internal workings of the GUIList control. This general list box lets you list rows of data in this control. If the number of rows is more than what can be seen on the screen, a scrollbar will appear allowing you to scroll up and down through the list of items. Each row of data can have multiple columns, and each column can have its own font and color. This video is 53 min 58 sec long.
In VMK42C we add the GUIList control to the game engine. This video is 35 min 1 sec long.
All these videos will be available to you after this VMK is purchased from the store.
You can also get these videos and other bonus VMK's in the Game Engine Series by purchasing the DVD.
------
I found a bug in the GUIList::render function. Remove the s_v2ResOffset component when checking the v2Reference.m_fy value. The code should look like this:
| Code: |
if ((v2Reference.m_fy > (m_v2Position.m_fy + m_v2HotOffset.m_fy + m_v2HotSize.m_fy + m_iRowHeight) ) || (v2Reference.m_fy <= (m_v2Position.m_fy + m_v2HotOffset.m_fy )) ) {
//out of view above or below
}
|
|
|
| |
|
|
|
 |
 |
 |
 |
 |
skilz80

Joined: 16 Aug 2008 Posts: 58
 |
Posted: Thu Feb 12, 2009 3:32 pm Post subject: About my existing sliders |
 |
|
I have added your new algorithm and implemented i correctly.
The only thing I see that is a problem is in the mouse sensitivty slider.
The other two sliders work correctly, but the mouse slider in both menus, it dosen't want to slide correctly. When I try to slide it all the way to the left it wants to stop at about 10% of the full width of the bar. Do you have any ideas what could be causing this.
If there was a problem in the GUISlider class it would cause a problem with all of the sliders, but this is not the case. It only happens with the mouse slider, so I checked the constructor in scene initialize and everything seems to be ok. This is where im stuck. Other than that everything else, seems to be fine.
Unfortunately, I am not at home, I am in-between classes so I can not send you my source-code or project. Any kind of help on the issue with the mouse sensitivity slider, would be helpful. Thank you! |
|
| |
|
|
|
 |
 |
 |
 |
 |
Marek Site Admin

Joined: 11 Feb 2007 Posts: 515 Location: Ontario Canada  |
Posted: Thu Feb 12, 2009 4:21 pm Post subject: |
 |
|
| Sounds like you may have a problem with the range values associated with the mouse slider. See what happens if you change the range to something else. |
|
| |
|
|
|
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
 |