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.

2D All the way! / graphical scrollbar

Author
Message
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 31st May 2007 23:13
wasn't quite sure whether to put this in code snippets or here. It's just a messy adaptation to my scrollbar code I've already posted in the past. Simply shows how you can easily use images to create scrollbars rather than a grey bar. Because I used a texture for the scrollbar's track (background), I had to set the height of the scrollbar to be a multiple of the image's height dimension. (similar thing done to accomodate the thumb's shadow) Attached is a zip which includes the source and 3 image files.


Attachments

Login to view attachments
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 31st May 2007 23:14 Edited at: 31st May 2007 23:15
The point of sharing this was to show (not explain, this isn't a tutorial) how you can polish up your game's GUI.

Here's what the scrollbar should look like in DB.




Attachments

Login to view attachments
Agent Dink
21
Years of Service
User Offline
Joined: 30th Mar 2004
Location:
Posted: 31st May 2007 23:17
Nice Phaelex, that should help some people out.

Free music, textures, models, and tutorials.
Silver Dawn

Login to post a reply

Server time is: 2025-05-15 19:33:39
Your offset time is: 2025-05-15 19:33:39