mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-19 14:32:19 +00:00
CHudPause: added button guide (WIP)
Known issues; - The button guide erroneously shows up for Yes/No prompts.
This commit is contained in:
parent
6d81e46608
commit
059e6dd54e
1 changed files with 15 additions and 0 deletions
|
|
@ -2,9 +2,13 @@
|
||||||
#include <kernel/function.h>
|
#include <kernel/function.h>
|
||||||
#include <api/SWA.h>
|
#include <api/SWA.h>
|
||||||
#include <ui/achievement_menu.h>
|
#include <ui/achievement_menu.h>
|
||||||
|
#include <ui/button_guide.h>
|
||||||
#include <ui/options_menu.h>
|
#include <ui/options_menu.h>
|
||||||
|
#include <locale/locale.h>
|
||||||
#include <app.h>
|
#include <app.h>
|
||||||
|
|
||||||
|
bool g_isClosed;
|
||||||
|
|
||||||
float g_achievementMenuIntroTime = 0.0f;
|
float g_achievementMenuIntroTime = 0.0f;
|
||||||
constexpr float g_achievementMenuIntroThreshold = 3.0f;
|
constexpr float g_achievementMenuIntroThreshold = 3.0f;
|
||||||
float g_achievementMenuOutroTime = 0.0f;
|
float g_achievementMenuOutroTime = 0.0f;
|
||||||
|
|
@ -156,6 +160,17 @@ PPC_FUNC(sub_824B0930)
|
||||||
{
|
{
|
||||||
g_achievementMenuIntroTime = 0;
|
g_achievementMenuIntroTime = 0;
|
||||||
|
|
||||||
|
if (pHudPause->m_IsShown && pHudPause->m_Transition == SWA::eTransitionType_Undefined)
|
||||||
|
{
|
||||||
|
ButtonGuide::Open(Button(Localise("Achievements_Name"), EButtonIcon::Back, EButtonAlignment::Left, EFontQuality::Low));
|
||||||
|
g_isClosed = false;
|
||||||
|
}
|
||||||
|
else if (!g_isClosed)
|
||||||
|
{
|
||||||
|
ButtonGuide::Close();
|
||||||
|
g_isClosed = true;
|
||||||
|
}
|
||||||
|
|
||||||
__imp__sub_824B0930(ctx, base);
|
__imp__sub_824B0930(ctx, base);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue