Hello have a problem but cant see whats wrong , the problem is in my GameStateLoadGame , and the problem is that i disable two buttons with are part of my GUI , but some how not sure who still draw them , for GUI drawing is responsable main game loop , and i have checked him hes not drawing them hes skips them because they are disabled , so have no clue whats going on and who drawing them .
I made this stand alone client just for debugging .
Login details :
username = test
password = test
once you click login you will proceed to loading state where shit happens , top right corner you will be able to see two buttons QuitGame and Settings , even though they are disabled and no way that could some1 draw them , someone also updating them because you can see hover and click effect .
Something not right
Something not right
- Attachments
-
- TT - Copy.rar
- (4.64 MiB) Downloaded 130 times
Re: Something not right
GameStateGamePlay is adding 6 more ui elements to
std::vector<std::shared_ptr<GUIElement>> Elements when constructed through the GameState
constructor
ps: this will be awesome game, cant wait to see it finished
std::vector<std::shared_ptr<GUIElement>> Elements when constructed through the GameState
constructor
ps: this will be awesome game, cant wait to see it finished
- Attachments
-
- TT - Copy2.rar
- (137.52 KiB) Downloaded 123 times
Re: Something not right
okay now i see , once async start making new states its add 2 those buttons again . in this case i should probably make so each state will own its own GUI object