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 / Working Menu Function [DBP]

Author
Message
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 17th Sep 2006 01:32
There maybe many menu functions around, but here is my own attempt, this generally for a 3 part text based main page menu system. But you can use your imagination or edit parts to suit you.

The function.

function menu3(st$,st2$,st3$,fnt$,mx#,my#,image$,image#,nil1#,nil2#,nil3#)

st$,st2$,st3$
The three strings, this is the text content of the meny, eq, "Play"."Load","Quit"
fnt$
This is the font to be used, eg. "Arial"
mx#,my#
x and y positions of where the menu will be placed.
image$,image#
Image filename and image number, eg. "back.jpg",1
nil1#,nil2#,nil3#
The number from the 'nil' function to execute, the nil function allows you to place and apply numbers to commands you want to execute on the menu.

The function snippet;



You will also need the the 'nil' function afterwards





If I were using in the menu function, 1,2,3 in the nil, look at what the nil function would be;


Here is an example in action if you will.



Roxas
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 17th Sep 2006 18:52
Nice for lazy people.. This is like button you click it mouse?

FFXI <3
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 17th Sep 2006 19:33
Nope, it uses the keyboard I'm afraid matey, I might do a mouse click on though.

Login to post a reply

Server time is: 2024-11-23 03:17:28
Your offset time is: 2024-11-23 03:17:28