Update XUI_MainMenu.cpp

This commit is contained in:
aboudnic6-debug
2026-03-08 22:13:28 +00:00
committed by GitHub
parent c1f9c51a12
commit 2ab8e37fe0
+18 -1
View File
@@ -34,6 +34,7 @@ HRESULT CScene_Main::OnInit( XUIMessageInit* pInitData, BOOL& bHandled )
MapChildControls();
XuiControlSetText(m_Buttons[BUTTON_PLAYGAME],app.GetString(IDS_PLAY_GAME));
XuiControlSetText(m_Buttons[BUTTON_MINIGAMES],L"Mini Games")
XuiControlSetText(m_Buttons[BUTTON_LEADERBOARDS],app.GetString(IDS_LEADERBOARDS));
XuiControlSetText(m_Buttons[BUTTON_ACHIEVEMENTS],app.GetString(IDS_ACHIEVEMENTS));
XuiControlSetText(m_Buttons[BUTTON_HELPANDOPTIONS],app.GetString(IDS_HELP_AND_OPTIONS));
@@ -178,6 +179,22 @@ HRESULT CScene_Main::OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress* pNotif
uiIDA[1]=IDS_CONFIRM_CANCEL;
StorageManager.RequestMessageBox(IDS_MUST_SIGN_IN_TITLE, IDS_MUST_SIGN_IN_TEXT, uiIDA, 2, pNotifyPressData->UserIndex,&CScene_Main::MustSignInReturned,this, app.GetStringTable());
}
case BUTTON_MINIGAMES:
// Move to the new/load game screen
// need a signed in user here
ProfileManager.SetCurrentGameActivity(pNotifyPressData->UserIndex,CONTEXT_PRESENCE_MENUS,true);
m_eAction=eAction_RunGame;
if(ProfileManager.IsSignedIn(pNotifyPressData->UserIndex))
{
RunPlayGame(pNotifyPressData->UserIndex);
}
else
{
//NO LOGIN REQUIRED
}
break;
@@ -1285,4 +1302,4 @@ HRESULT CScene_Main::OnTimer( XUIMessageTimer *pTimer, BOOL& bHandled )
}
return S_OK;
}
}