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

GUI Alpha Testing: Movable Windows

Sign in to follow this  


What's different in this screenshot, you might ask. The only thing that I see is that now the GUI looks like it was laid out by a retarded ape who stuck forks in his eyes, you might explain.

It got that way because I dragged the windows to their positions, I respond.

GUIWnds are now fully draggable anywhere on the screen. While their Z-ordering sucks while doing this, it'll do until I bother with supporting root/child window relationships.

Another minute and I'll get it set up so that you can click to reset a window to it's default(config defined) position.

Other minor improvements are a bugfix in my rotational code for units. Now you can actually move the mouse with the rbutton down and they'll rotate as it moves, rather than once per click. Note to others: SDL_Event.button.state for a MOUSEMOTION event does not carry the current button state. It appears to only be used on a MOUSEBUTTON event.

Now to quit slacking and work on context menus.

Update: Screenshots suck, have some XVid
Sign in to follow this  


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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!