mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-05-12 22:08:47 -05:00
CHudPause: make button guide respect HUD toggle
This commit is contained in:
@@ -63,5 +63,7 @@ namespace SWA
|
||||
be<EMenuType> m_Menu;
|
||||
be<EStatusType> m_Status;
|
||||
be<ETransitionType> m_Transition;
|
||||
SWA_INSERT_PADDING(0x20);
|
||||
bool m_IsShown;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -160,7 +160,9 @@ PPC_FUNC(sub_824B0930)
|
||||
{
|
||||
g_achievementMenuIntroTime = 0;
|
||||
|
||||
if (pHudPause->m_IsShown && pHudPause->m_Transition == SWA::eTransitionType_Undefined)
|
||||
const auto ms_IsRenderHud = (bool*)g_memory.Translate(0x8328BB26);
|
||||
|
||||
if (*ms_IsRenderHud && pHudPause->m_IsShown && pHudPause->m_Transition == SWA::eTransitionType_Undefined)
|
||||
{
|
||||
ButtonGuide::Open(Button(Localise("Achievements_Name"), EButtonIcon::Back, EButtonAlignment::Left, EFontQuality::Low));
|
||||
g_isClosed = false;
|
||||
|
||||
Reference in New Issue
Block a user