Hi OrderNexus. It's been a while I got your book, but only 2 weeks ago I could start going through it. It's an amazing work. Good job! I'm also looking forward to reading the Mastering SFML Game Development.
Anyway, my question is: I'm in chapter 11 (in the end). Just finished and compiled and ready to go to chapter 12 when...... BOOM! I don't have a GUI
I don't understand what I did wrong. I am very careful to follow all the code and understand all that I am doing. It compiles without any errors (I use VS Community 2015).
Basically, it loads the Intro and when we go to MainMenu it doesn't show any GUI. I tried to bypass to see it the problem is in the Main Menu, so what I did was testing it by simply jumping from Intro_continue to Game. And nope, nothing wrong with the states. The game runs ok, the map loads.... but also no GUI in the game mode.
Summarizing: No GUI elements show anywhere, but the GUI_(something).h and GUI_(something).cpp look all fine. (I also ajusted the SharedContext, Satte_MainMenu and EventManager per your instructions).
I don't know what else to do.
Btw, there is also a minor bug that's been anoying me for a while (but it's no big deal). So, when you close the game using the 'X' button in the window, it purges all resources, all goes well, but the last second it displays a message saying (see attachment). That bug doesn't make the game unplayable or anything... it's just there since chapter 7 and I can't find the reason why.