Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    108
  • comments
    319
  • views
    138007

GUI

Sign in to follow this  
Rob Loach

165 views

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

Sign in to follow this  


7 Comments


Recommended Comments

If you're interested, I've just written a generic message/event system you could probably use.

Share this comment


Link to comment
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].

Share this comment


Link to comment
Guest Anonymous Poster

Posted

I have this thing that I'm making because I wasn't happy with the other ones that other people made because I didn't invent them. So I'm making my own. It's round and it translates angular motion into linear motion and vice versa. It's useful for moving things around. Why do they call them wheels anyway?

Share this comment


Link to comment
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!

Share this comment


Link to comment
Quote:
an ultra special personalilzed custom wheel with all the trimmings that rob could ever want!
Bling Bling.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!