Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    570
  • comments
    2427
  • views
    217196

Untitled

Sign in to follow this  
Mushu

80 views

Got down and dirty with the GUI code today - I'm revamping the event listener function prototypes so that they can choose to "eat" the event, preventing it from getting passed to any more controls.

I should have thought of that from the start - I've had to make an unbelievable amount of changes in code to achieve this.

This also gave me a chance to look over (ie, figure out) the month-old GUI code. Its really pretty complicated, now that I look back at it. I think my favorite moments were when I saw this, the hackish way the main GUI object binds itself to the EventAdapter (which acts as an abstracted interface between polling the system for events and converting those into my events). It could have been reduced in size with some typedefs, but meh. This way looks more intimidating.

The other part that made me lol was when I was debugging a bug which was causing the system to crash (an invalid iterator). I tracked the code down to a region which begins with the very helpful comment

// mess.

to which I could only reply "LOL."
Sign in to follow this  


2 Comments


Recommended Comments

I tracked down at least four bugs in CSRPG which had the comment

// This is going to crash. Fix this before you go on

Right beside them.

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!