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.

DarkBASIC Discussion / Advice needed on embossing effect

Author
Message
Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 5th Feb 2008 14:24
At the moment I'm updating Lightning Lights (a 3D Lighting effects package for DBC and DBPro) to incorporate the new DBC 1.20 commands. I'm also trying to create a more realistic Windows-ish environment, with buttons that can be 'pressed down' when you click on them.

Attached is my Master Control Panel - can you tell at a glance which button is pressed?

I've been spending hours on this, going through loads of different ideas, but I'm still not sure if it's the best 'Depressed button' effect. Any comments would be most gratefully appreciated.

Many thanks,
RTR

Did you hear about the two criminals who crashed their getaway car into a cement mixer? Police are looking for two hardened criminals...

Attachments

Login to view attachments
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 5th Feb 2008 18:28 Edited at: 5th Feb 2008 18:30
You know how your backgrounds (not depressed) are a light purple? When a button is depressed, try changing the background of the button to a different color.

The attached is an example from Paint.

Enjoy your day.

Attachments

Login to view attachments
Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 7th Feb 2008 11:32
Thanks Latch, I see what you mean.

I've redesigned the toolbar slightly, could you have a glance at this one and tell me if you think it's any better?

(By the way, how do you set these posts so you can click a "View" button to look at an attached image, rather than just the "Download" button?)

Did you hear about the two criminals who crashed their getaway car into a cement mixer? Police are looking for two hardened criminals...

Attachments

Login to view attachments
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Feb 2008 16:35
only jpgs produce a view button

Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 8th Feb 2008 14:58
Quote: "only jpgs produce a view button "

Ah, I never realised that. Thanks Obese!

Did you hear about the two criminals who crashed their getaway car into a cement mixer? Police are looking for two hardened criminals...
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th Feb 2008 00:34
@RTR

That's pretty good, however I personally prefer the button to get lighter when it's pressed so it looks highlighted as well as sunken. It's really up to what you like.

Attached example

Enjoy your day.

Attachments

Login to view attachments
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 9th Feb 2008 01:23 Edited at: 9th Feb 2008 01:24
Quote: "only jpgs produce a view button"

I believe pngs produce a view button as well.

Seriously, how do you make the little blue text come up below your message?
Not_Maindric
17
Years of Service
User Offline
Joined: 10th Jul 2007
Location: Omaha, NE
Posted: 9th Feb 2008 07:47
Quote: "I believe pngs produce a view button as well."


Yes, and is better. =D

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 10th Feb 2008 05:36
That's a coincidence.

I've just finished a ButtonBar component for my DBC GUI function collection.

I wasn't sure what abilities to give it, so the working create ButtonBar function I have at the moment allows you to state the number of buttons across and down, the size of the buttons and whether or not they are radio buttons (they stay down but only one can be down) or normal buttons (they pop up again when the mouse button is released).

You create consecutive images for the buttons in both their up and down states and pass the image start numbers to the function.

Another function automatically animates the buttons and returns the number of the one that has been clicked on.

I've not added them to the function set yet, but if it would be of any help to you with your program I can add it and you can advise on any limitations you find.

TDK_Man

Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 11th Feb 2008 13:10
Thanks for the offer, TDK, I'd love to have a look at your ButtonBar function (I've just downloading your GUI collection - I really must start paying more attention to the code snippets board! )

It may not be quite the thing my program needs - it sounds like a Windows toolbar, and my buttons are a lot larger and not nearly so ordered - but I'd certainly like to try it out!

I've had another crack at the embossing effect, and put it into a demo of my new Lightning Lights (Only the light bulbs and the camera menus have been implemented yet). The Zip file is only 911Kb.


http://mythrada.distantstar.org.uk/LightningLights1.20Demo.zip

Did you hear about the two criminals who crashed their getaway car into a cement mixer? Police are looking for two hardened criminals...
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 11th Feb 2008 16:04
As far as I'm aware, buttons darker at the top look pressed and darker at the bottom look out.


This image is purely work in progress.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 11th Feb 2008 21:27
Quote: "it sounds like a Windows toolbar"


I've tried to make it quite flexible so it can be whatever you want it to be. More importantly, it should save you time...

You have just four button in your example. Did it take long to make? How much work would it be to add another four buttons - or arrange the buttons in a 4x1 row or 1x4 column?

The attached example took five minutes to write using your button images and making the above changes would take seconds.



I've included an exe because I'm still adding the final touches to the function and I don't want people using the unfinished version, but when I'm done a little later I'll post it in code snippets.

TDK_Man

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-06-04 01:59:17
Your offset time is: 2025-06-04 01:59:17