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 / first piece of code ever done - menu function thing

Author
Message
tomo
21
Years of Service
User Offline
Joined: 11th Jul 2003
Location:
Posted: 15th Jul 2003 13:30
ive made a set of menu functions for dbclassic, all you have to do is set a background image with:
init_menu_bg(bgnumber,filename)
then set the buttons with:
init_menu_button(buttonnum,normalfile,rolloverfile,xposition,yposition,imgwidth,imgheight)
then inside a loop have:
do_menu()

sync

and you can also detect clicks with a rollover to run a function like:
if rollover(imagenumber) = 1 and mouseclick() = 1 then new_game()

hope i didnt screw up too badly

if you want to use it in your games then use it, you dont need to put in any credits unless you want to.

Login to post a reply

Server time is: 2024-11-27 19:44:50
Your offset time is: 2024-11-27 19:44:50