Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    32
  • comments
    30
  • views
    11014

Framework update

Sign in to follow this  
Lacutis

269 views

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.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

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!