It is currently Sat Feb 24, 2018 8:46 am

All times are UTC - 5 hours

 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: GameDev VMK 42 - GUI List Control
PostPosted: Fri Dec 10, 2010 9:03 pm 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1106
Location: Ontario Canada
YouTube Video[/url]

This VMK consists of three separate sections.

VMK42A shows you how to improve the GUISlider class so that we can use it in the next VMK.

In VMK42B and 42C 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.

In VMK42C and 42D we add the GUIList control to the game engine.

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:
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

Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 

All times are UTC - 5 hours

Who is online

Users browsing this forum: No registered users and 0 guests

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

Jump to: