Something not right

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
egizz983
Posts: 311
Joined: August 27th, 2016, 12:30 pm

Something not right

Post by egizz983 » January 27th, 2017, 6:49 pm

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 .
Attachments
TT - Copy.rar
(4.64 MiB) Downloaded 130 times

rekvijem
Posts: 59
Joined: December 28th, 2013, 6:39 pm

Re: Something not right

Post by rekvijem » January 28th, 2017, 9:02 pm

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
Attachments
TT - Copy2.rar
(137.52 KiB) Downloaded 123 times

egizz983
Posts: 311
Joined: August 27th, 2016, 12:30 pm

Re: Something not right

Post by egizz983 » January 28th, 2017, 10:31 pm

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

Post Reply