fix gui
parent
7a01776f87
commit
068030ecea
|
@ -169,7 +169,7 @@ void Shooter::update() {
|
||||||
screen->stopRender();
|
screen->stopRender();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inGame) {
|
if (inGame) {
|
||||||
screen->setTitle(ShooterConsts::PROJECT_NAME);
|
screen->setTitle(ShooterConsts::PROJECT_NAME);
|
||||||
if (isTypingMessage) {
|
if (isTypingMessage) {
|
||||||
|
@ -190,14 +190,15 @@ void Shooter::update() {
|
||||||
} else {
|
} else {
|
||||||
mainMenu.update();
|
mainMenu.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
setUpdateWorld(inGame);
|
setUpdateWorld(inGame);
|
||||||
|
|
||||||
// background sounds and music control
|
// background sounds and music control
|
||||||
if (SoundController::getStatus(SoundTag("background")) != sf::Sound::Status::Playing) {
|
if (SoundController::getStatus(SoundTag("background")) != sf::Sound::Status::Playing) {
|
||||||
SoundController::loadAndPlay(SoundTag("background"), ShooterConsts::BACK_NOISE);
|
SoundController::loadAndPlay(SoundTag("background"), ShooterConsts::BACK_NOISE);
|
||||||
}
|
}
|
||||||
drawChat();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Shooter::drawChat() {
|
void Shooter::drawChat() {
|
||||||
|
@ -222,6 +223,7 @@ void Shooter::gui() {
|
||||||
// health player stats
|
// health player stats
|
||||||
drawPlayerStats();
|
drawPlayerStats();
|
||||||
drawStatsTable();
|
drawStatsTable();
|
||||||
|
drawChat();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Shooter::drawStatsTable() {
|
void Shooter::drawStatsTable() {
|
||||||
|
|
Loading…
Reference in New Issue