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.

Newcomers DBPro Corner / Utility For Making Clickable Screen Buttons From Bitmaps

Author
Message
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th Aug 2005 21:29
ButtonMaster

This is an old and very basic util I've dug out which lets you define button areas of an image created in a paint program.

I've tested it and it's not great, but it hey - it works.

Create a 640x480, 800x600 or 1024x768 menu screen with the required buttons on it in something like Paintshop Pro then save it as a bmp in the same directory as ButtonMaster.

Run the util and select the resolution you created the menu screen in.

Press I to load the image.

Press B to go to Button Mode and draw boxes around the buttons to define the clickable areas. After defining each area, enter a description for the button.

You only get one chance at defining a button, so be careful. Mess up and you'll have to quit back to the main menu and press N to create everything again from scratch.

You don't have to be 100% accurate as these areas are invisible and the user will normally click close to the centre of the button anyway.

You can also create non-rectangular buttons (oval, circle etc) - just enclose most of the button when defining the clickable area.

When you have created all the button areas, quit back to the main menu and press S to save the button map. (The map can be loaded later with the Load Map option.

Finally, press the W key. This will write a working .DBA file which you can load and run to test out your buttons.

If everything works OK, you can copy and paste the code from in the main loop into your own program.

Download: http://www.computechtenerife.com/buttonmaster.rar

TDK_Man

Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 15th Aug 2005 21:52
Your such a genius, great work.
Louiz ofRohr
19
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 16th Aug 2005 05:25 Edited at: 16th Aug 2005 05:27
TDK, you're really doing a great work here..
I hope you can stop questions from
those started-2-days-ago-to-DarkBasic-Programming dudes..

Because most people buy DB/DBC and just come here to
ask even how to use "sync rate x".. but they
don't.. they try not to understand the basics,
but they want to start a big game (starting from that
already annoying question: how can I make menu systems?)

..:edit:..
When you finish your nice to-beginners tutorials,
you could make the final one:
..:edit:..



Thank you for helping the the community..
Good job..

The worst foe lies within the self..
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 16th Aug 2005 06:41
Quote: "When you finish your nice to-beginners tutorials,
you could make the final one: Como pulsar el boto'n "Search""


¡No pienso que entenderían incluso eso!

Quote: "Thank you for helping the the community"


No Problem!

TDK_Man

Login to post a reply

Server time is: 2024-09-24 01:30:15
Your offset time is: 2024-09-24 01:30:15