mjsimpson said:
It's been a couple of months since I've had the time to work on this, so I apologize if you have to remind me how my own code works. :P
MJ, I understand. I've been in the same boat. I got pulled off development of this app due to lack of progress but I'm back now.
mjsimpson said:
When you say that click events aren't making their way up to the view listeners, what events are you expecting, and which classes are you considering the view listeners?
Well. Where to start... I have to tell the whole story otherwise it's just too embarrassing!
I spent the last hour poring over every line of code in your InGameState, the ClassFactory, your InGamePauseView and your InGamePausePresenter as well as MY InGameState and the LoginPresenter and LoginView - based on your InGamePausePresenter/InGamePauseView. I wanted to make sure I hadn't made some dumb mistake. But no, I had copied everything perfectly. And that was the problem (no, there's nothing wrong with your code).
I stepped thru this code I don't know how many times before I tried something... simple.
I copied your InGamePauseView to use in my LoginView but removed the code for the last three buttons since my LoginView only has two buttons.
I HAD noticed that you have this line of code for each of the first two buttons:
_btnSaveAs.setEnabled(false);
Like, I say, I HAD noticed it and thought it was odd but when I ran your code your buttons didn't look disabled and both the pause button and the exit button both worked (they were the only buttons I tried since I didn't want to save a game and they just happened to be the three buttons that I didn't need in my code). When I ran MY code I saw that they didn't look disabled - they just didn't 'click'. So I thought there's some code somewhere in the bowels of atechnique or GBUI that enables it at the appropriate time and my problem lay elsewhere. Silly me.
Finally, I thought, 'set the button.enabled to true and let's see what happens.'
Like I said, I had to tell the whole story, otherwise it's too embarrassing.
I see that the BSS for a button has a disabled state and I will make good use of it in the future!
I hope you had a good laugh - I certainly did. I'm just happy that it all works and that I can get going again.
Tx,
K
PS In future, I will try to remember the adage used by doctors: When you hear hooves, think horses, not zebras.