Update XUI_MainMenu.cpp

This commit is contained in:
aboudnic6-debug
2026-03-08 16:17:01 +00:00
committed by GitHub
parent a5cce99b2c
commit 4778fd7b3d
+22 -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));
@@ -165,6 +166,26 @@ HRESULT CScene_Main::OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress* pNotif
ProfileManager.SetCurrentGameActivity(pNotifyPressData->UserIndex,CONTEXT_PRESENCE_MENUS,true);
m_eAction=eAction_RunGame;
if(ProfileManager.IsSignedIn(pNotifyPressData->UserIndex))
{
RunPlayGame(pNotifyPressData->UserIndex);
}
else
{
// get them to sign in
UINT uiIDA[2];
uiIDA[0]=IDS_CONFIRM_OK;
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))
{
@@ -1285,4 +1306,4 @@ HRESULT CScene_Main::OnTimer( XUIMessageTimer *pTimer, BOOL& bHandled )
}
return S_OK;
}
}