comp380team3 / PuzzlePathDimension

Class project for COMP 380 at California State University, Northridge
0 stars 0 forks source link

Add mouse support to the menus #103

Closed Twisol closed 11 years ago

Twisol commented 11 years ago

This is a terrible, terrible hack, but menus now support pointing the mouse to pick a menu.

Fixes #68.

Jjp137 commented 11 years ago

That...was quick. Also, as soon as I saw Draw return a Rectangle, umm...

But it could be worse...

Twisol commented 11 years ago

Yeah... well... I know what would be ideal, but it's difficult to do as the rendering system is now. I know that we do want to be able to address game elements by their position (at least within a menu space), so the addition of SelectAtPoint is (only mildly) justified. Preferably, the calculation of size would be done during Update, and the buttons could be queries at will rather than providing the Rectangle as a side effect of Draw.

What I mean is, I tried to control the damage. :)

Jjp137 commented 11 years ago

Yeah, I understand. :)

(btw, we're all in the Final Presentation document, so :p)