mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
CHudPause: make button guide respect HUD toggle
This commit is contained in:
parent
059e6dd54e
commit
fc9c7ffb3a
2 changed files with 5 additions and 1 deletions
|
|
@ -63,5 +63,7 @@ namespace SWA
|
||||||
be<EMenuType> m_Menu;
|
be<EMenuType> m_Menu;
|
||||||
be<EStatusType> m_Status;
|
be<EStatusType> m_Status;
|
||||||
be<ETransitionType> m_Transition;
|
be<ETransitionType> m_Transition;
|
||||||
|
SWA_INSERT_PADDING(0x20);
|
||||||
|
bool m_IsShown;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,9 @@ PPC_FUNC(sub_824B0930)
|
||||||
{
|
{
|
||||||
g_achievementMenuIntroTime = 0;
|
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));
|
ButtonGuide::Open(Button(Localise("Achievements_Name"), EButtonIcon::Back, EButtonAlignment::Left, EFontQuality::Low));
|
||||||
g_isClosed = false;
|
g_isClosed = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue