Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Making A Menu Using Arrays

Author
Message
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 12th Aug 2006 17:37 Edited at: 12th Aug 2006 18:51
Here is a little commented snippet that shows how to create a menu with one variable and an array. It may come in helpful, as it would save you from using lots of if/endif's for each menu item. It works in DBPro and should work in DBC.



WAY shorter optimized version with no comments:




And uncommented with the text in the center of the screen:





Any comments?

Hobgoblin Lord
19
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 16th Aug 2006 23:19
Looks good Sixty, happens to be pretty much the exact way I do this same thing, great minds right.

http://www.cafepress.com/blackarrowgames
Check out my great stuff here
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 16th Aug 2006 23:30
Thanks! You do it the same way? Heh that's funny.

Login to post a reply

Server time is: 2024-11-23 03:39:06
Your offset time is: 2024-11-23 03:39:06