Implemented max width for button guide strings for localisation (#421)

* button_guide: implemented max width for localisation

* button_guide: implemented max width for dual icon strings

* button_guide: scale max width internally
This commit is contained in:
Hyper
2025-02-17 19:30:33 +00:00
committed by GitHub
parent df8234ab3b
commit 91f874cbad
7 changed files with 81 additions and 77 deletions

View File

@@ -872,7 +872,7 @@ static void DrawDescriptionContainer()
if (g_currentPage == WizardPage::InstallSucceeded && textAlpha >= 1.0)
{
ButtonGuide::Open(Button("Common_Select", selectIcon));
ButtonGuide::Open(Button("Common_Select", 115.0f, selectIcon));
}
else if (g_currentPage != WizardPage::Installing && textAlpha >= 1.0)
{
@@ -884,15 +884,15 @@ static void DrawDescriptionContainer()
std::array<Button, 2> buttons =
{
Button("Common_Select", selectIcon),
Button(backKey, backIcon)
Button("Common_Select", 115.0f, selectIcon),
Button(backKey, FLT_MAX, backIcon)
};
ButtonGuide::Open(buttons);
}
else if (g_currentPage == WizardPage::Installing)
{
ButtonGuide::Open(Button("Common_Cancel", backIcon));
ButtonGuide::Open(Button("Common_Cancel", FLT_MAX, backIcon));
}
else
{