mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Play tavern music file on login screen
This commit is contained in:
parent
8c3aa6542e
commit
205db7d3b6
7 changed files with 71 additions and 0 deletions
|
|
@ -97,30 +97,35 @@ void UIManager::render(core::AppState appState, auth::AuthHandler* authHandler,
|
|||
break;
|
||||
|
||||
case core::AppState::REALM_SELECTION:
|
||||
authScreen->stopLoginMusic();
|
||||
if (authHandler) {
|
||||
realmScreen->render(*authHandler);
|
||||
}
|
||||
break;
|
||||
|
||||
case core::AppState::CHARACTER_CREATION:
|
||||
authScreen->stopLoginMusic();
|
||||
if (gameHandler) {
|
||||
characterCreateScreen->render(*gameHandler);
|
||||
}
|
||||
break;
|
||||
|
||||
case core::AppState::CHARACTER_SELECTION:
|
||||
authScreen->stopLoginMusic();
|
||||
if (gameHandler) {
|
||||
characterScreen->render(*gameHandler);
|
||||
}
|
||||
break;
|
||||
|
||||
case core::AppState::IN_GAME:
|
||||
authScreen->stopLoginMusic();
|
||||
if (gameHandler) {
|
||||
gameScreen->render(*gameHandler);
|
||||
}
|
||||
break;
|
||||
|
||||
case core::AppState::DISCONNECTED:
|
||||
authScreen->stopLoginMusic();
|
||||
// Show disconnected message
|
||||
ImGui::SetNextWindowSize(ImVec2(400, 150), ImGuiCond_Always);
|
||||
ImGui::SetNextWindowPos(ImVec2(ImGui::GetIO().DisplaySize.x * 0.5f - 200,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue