Testing and Whatever
I've been using RoomSelect a lot while testing and scrolling through numerous rooms to get to the one I want has become annoying. So I decided to add x10 arrows to RoomSelect that allows the user to scroll through rooms ten at a time.
I had a really tough time today with the SAVE CHANGES button in RoomDesigner. When clicking it to save any changes, its alpha should change and stay at 30% but kept changing to 100% no matter what I did. After a lot of testing, I figured out it was due to the changeState() function being called in the Button class's update(). Because the mouse pointer is over the button, the button's alpha property gets set to the hoverAlpha value which is 1 (100%). Still, nothing I did would prevent that so I ended up changing the hoverAlpha value to .3 when the save button's deactivate() is called and then to 1 when its activate() is called.
SAVE CHANGES at 100% alpha after saving |
I was thinking today that I'd build an in game menu, accessed by pressing ESCAPE. This would be where all the navigation buttons and options go instead of how I have them in the corners right now. I guess the need for something like that can depend on the number of those GUI elements.
No comments:
Post a Comment