mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-05 19:19:43 -06:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user