refactor: use of GuiManager

This commit is contained in:
2021-12-19 11:56:41 +01:00
parent 174d144d26
commit 409268b604
5 changed files with 21 additions and 26 deletions

View File

@@ -14,6 +14,8 @@ GameMenu::GameMenu(client::Client* client) : GuiWidget(client), m_SummonMenu(std
}
void GameMenu::render() {
if(!m_Client->isConnected()) return;
if (getClient()->getGame().getGameState() == td::game::GameState::Lobby) {
ImGui::Begin("Lobby");