🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Framework update

Published October 13, 2008
Advertisement
I worked on the framework yesterday. I added more to the event and windowing frameworks to pass button presses to windows. If the cursor is visible it passes the button presses to any window and any children components that fall under it.

I gave the button an on click event handler and made it create a new window with a label in it above the original window. It all seems to be working pretty well.

Next I think I need to create some more components to allow me to build the game window from.

Edit: Part of the problem that I'm hitting is that Lua doesn't really have a concept of classes and so has no concept of "constructors". A lot of the things that I am doing would be a ton easier if I could write constructors. I am also having to fake out "virtual" functions to make some of the event handling for windows work properly.
Previous Entry It's been way too long.
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Advertisement