Fix profile status on upper left of main menu

The profile status on the upper left of main menu should update now when
changing user profiles...:)
This commit is contained in:
Anthony Calosa
2015-10-14 21:26:22 +08:00
parent 7b5b25d113
commit 626f0677f7
5 changed files with 11 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
#include "PrecompiledHeader.h"
#include "GameStateOptions.h"
#include "GameStateMenu.h"
#include "GameApp.h"
#include "OptionItem.h"
#include "SimpleMenu.h"
@@ -167,6 +168,7 @@ void GameStateOptions::Update(float dt)
JSoundSystem::GetInstance()->SetMusicVolume(options[Options::MUSICVOLUME].number);
mParent->DoTransition(TRANSITION_FADE, GAME_STATE_MENU);
mState = SHOW_OPTIONS;
GameStateMenu::genNbCardsStr();
break;
case WGuiBase::CONFIRM_NEED:
optionsTabs->yieldFocus();