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.

Author
Message
Coop
23
Years of Service
User Offline
Joined: 16th Jul 2003
Location:
Posted: 21st Jul 2003 05:34
Hrmmmm....this may be simple but I am not sure how..to link a button in a menu to go to a different screen...or how to place the buttons at all..

Single Player

Multi Player

A web site

Exit

If somone could help me with making that menu work I would be glad.
Shady Simpson
23
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 21st Jul 2003 15:26
well,there isn't any DBPro Native Commands that actually create buttons but there is a number of ways to get round this:

1) Buy RobK's blue GUI plugin.

2) make a function that checks where the mouse has been clicked. (see source - I hope you understand it)

3) Use a little program called DBBuilder, it's free and makes buttons and the source code which you can insert in your code (can't remeber the address)

Hope this helps you

Baneblade
23
Years of Service
User Offline
Joined: 26th Feb 2003
Location: Ireland
Posted: 21st Jul 2003 19:42
Try www.Binarymoon.co.uk -There a tutorial covering a game called "Limit Rush" and included is the menu tutorial
Chenak
23
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 21st Jul 2003 20:18
Heres the code for a button function that may be useful to you. You need to get the button coordinates when the screen res is set to 1024 by 768. Then whatever your resolution is set to, the coordinates will change with respect the current res.



and use the code like this:



Once you start down the Dark Path, forever will it dominate your destiny...
Coop
23
Years of Service
User Offline
Joined: 16th Jul 2003
Location:
Posted: 21st Jul 2003 21:01
I now have DB Builder, How do I use it to make words appear like in the above stated menu?

Coop
23
Years of Service
User Offline
Joined: 16th Jul 2003
Location:
Posted: 21st Jul 2003 21:16
@Inferno how would I get the button cordinates and where would I place them?

Chenak
23
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 22nd Jul 2003 03:18
This code will display the coords you require, put it in the main loop.

mx#=mousex()
my#=mousey()

text 0,0,str$(mx#)
text 0,12,str$(my#)


The coords you require are as follows:

x1a#= the lowest x coordinate of the button
x1b#= the highest x coordinate of the button
y1a#= the lowest y coordinate of the button
y1b#= the highest y coordinate of the button


hope this helps

Once you start down the Dark Path, forever will it dominate your destiny...
Shady Simpson
23
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 22nd Jul 2003 12:36 Edited at: 22nd Jul 2003 12:38
"how do i make text in the buttons" (or something like that)

I think, if I remember right that you load a background image, which in this case would be your menu with all the text on and then make the button areas.

e.g. Make an image of your main menu with all the text on and everything, then in DBBuilder load this image as a background and then select the button box and drag where you want the user to be able to click. Then view the source code, copy and paste it into DBDBPro and hey presto! it should work.

Login to post a reply

Server time is: 2026-07-21 02:24:17
Your offset time is: 2026-07-21 02:24:17