GUI

posted in Reminiscence
Published March 01, 2005
Advertisement
Lately I've been playing around with third party GUI systems and got fed up so I started to make my own. I decided events would be the most crucial thing in it so I based the whole system around those. So far I just have a button class which is rather simple to set up. You create the button class and derive it from the GUI::Button class. You then create some functions in the class like Click(), MouseMove(), etc, add the class to the current game state by calling the AddGUIObject() function, and then the engine manages calling the functions for you. I think it's a rather effective system and plan to make some more "widgets" for it.

I'll start work on the textbox next. And yes, the engine handles what GUI object has the current focus.

Why do people call them widgets anyway?

Random Interest

0 likes 7 comments

Comments

H_o_p_s
widget = Perhaps alteration of gadget. [Dictionary.com]

:)

How are you making the event system for the GUI work?
March 01, 2005 10:22 PM
evolutional
If you're interested, I've just written a generic message/event system you could probably use.
March 02, 2005 05:14 AM
Rob Loach
I'll post up some code, screenshots and more details about it sometime, probably later tonight.

Evolutional? Sure. I'll have a look. I probably won't use it though as this system is very easy to use as it is [grin].
March 02, 2005 07:13 AM
Rob Loach
... Smart ass [smile].
March 03, 2005 09:53 PM
H_o_p_s
Quote:
Why do they call them wheels anyway?

But this isn't just any wheel! This is an ultra special personalilzed custom wheel with all the trimmings that rob could ever want!
March 05, 2005 02:16 AM
Rob Loach
Quote:an ultra special personalilzed custom wheel with all the trimmings that rob could ever want!
Bling Bling.
March 05, 2005 09:08 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Been a while!

1262 views

Hello XNA

1518 views

Pong!

1352 views

Busy * 2

1118 views
Advertisement