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.

Dark GDK / How Do You Make Menus

Author
Message
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 25th Jan 2008 20:52
Im am trying to make menus for my game i have a .bmp background and .bmp Buttons i want when i click a button with my mouse it runs a function. i just dount know how to do it. Pleas help> Thanks
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 25th Jan 2008 21:48
If you search about you will find lots of Graphical User Interface (GUI) libraries, both on this forum and on the internet.

Alternatively, you could make your own. Depending on your skill, it's not that hard to do. For buttons, you just check the position of the mouse compared to the button and if it's clicking. If it does, you know you have clicked that button.

Your signature has been erased by a mod
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 26th Jan 2008 00:39
I did search on Graphical User Interface (GUI) libraries this is not what i am wanting. i want a menu like in a fpsc game.
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 26th Jan 2008 00:47
Quote: "For buttons, you just check the position of the mouse compared to the button and if it's clicking. If it does, you know you have clicked that button.
"


This is what im wanting to do but how do i check the position of the mouse. and how do i check the whole position of the button.
D Bellis
18
Years of Service
User Offline
Joined: 6th Jul 2006
Location: UK
Posted: 26th Jan 2008 05:03 Edited at: 26th Jan 2008 05:07
the code you are looking for is right in the sample browser code ive removed all the none relavent bits and shortend it.




Amd Athlon 64 3000+ Newcastle , Asus K8N4-E Deluxe, 1.50GB DDR Ram , XFX Geforce 6600 Extreame Edition 512MB DDR2 Ram
GDK,DarkPhysics,DarkShader,DarkLights,DarkAI,BlueGUI,Unity
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 26th Jan 2008 23:03
Thanks

Login to post a reply

Server time is: 2024-11-17 04:10:23
Your offset time is: 2024-11-17 04:10:23