Custom UI Elements (aka The Buttons Tutorial)

Post your own tutorials, guides and demos.

Post » Sun May 31, 2009 1:49 am

We get questions from time to time on how to make buttons and things. So here's how.

[quote="From the .rtf":3dechvxp]So, why might it be necessary to create your own UI elements, rather than use the existing Windows controls? Two reasons:

The default Windows controls always render above all other elements, which can obscure the view of your other game objects
They're not very customizable, so you're stuck with whatever theme the player has on their PC
They're not scalable. If you zoom your display, the default Windows elements will stay the same size no matter what! That's totally bogus.[/quote:3dechvxp]
(Yes, I know that's actually three reasons. So what.)



Download:
http://www.box.net/shared/92sapgp6lc

Follow the text in the .rtf!
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun May 31, 2009 2:40 am

You know its a good tut when you have the option to set the knobs to eleven.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Sun May 31, 2009 7:59 am

Stop being useful, deadeye! You're making me feel useless. :x
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sun May 31, 2009 1:05 pm

[quote="newt":1l7vpucc]You know its a good tut when you have the option to set the knobs to eleven.[/quote:1l7vpucc]
Yeah, there's definitely a homage to Spinal Tap in there somewhere. :)
B
2
S
1
G
3
Posts: 105
Reputation: 1,310

Post » Mon Jun 01, 2009 2:55 pm

you should have made HEAVY KNOB, which has inertia. What about the all-the-rage HOVER SLIDER which doesn't require a mouse click? Don't you dare not implement a TOGGLEABLE SWITCH

nah, semi joking, good tutorial Deadeye. :mrgreen:
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Jun 02, 2009 10:49 am

I just got around to checking this out. Very well done, would you mind if we included it as a template with Construct?
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Tue Jun 02, 2009 4:43 pm

Are you sure you want to? It's pretty ugly looking :P.

Of course, I made the buttons ugly on purpose. For two reasons... so people would be compelled to draw their own, and because I'm lazy.

But yes, you can include it as a template if you like. I don't know what you'd do with the .rtf though, and the .cap itself doesn't have any comments.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue Jun 02, 2009 5:11 pm

They look lovely! It's something any fullscreen game will need; controls don't work there.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Tue Jun 02, 2009 11:53 pm

Awesome!
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Fri Jun 12, 2009 6:01 pm

Awsum sauce
B
27
S
3
G
5
Posts: 172
Reputation: 3,628

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests