mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
add more japanese specific hacks for installer_wizard description
This commit is contained in:
parent
85eac93a3b
commit
c9c88372db
1 changed files with 13 additions and 1 deletions
|
|
@ -736,7 +736,17 @@ static void DrawDescriptionContainer()
|
||||||
}
|
}
|
||||||
else if (g_currentPage == WizardPage::InstallFailed)
|
else if (g_currentPage == WizardPage::InstallFailed)
|
||||||
{
|
{
|
||||||
strncat(descriptionText, g_installerErrorMessage.c_str(), sizeof(descriptionText) - 1);
|
// Japanese needs text to be brought in by a normal width space
|
||||||
|
// as it allows for text to begin further than others for
|
||||||
|
// special characters.
|
||||||
|
if (Config::Language == ELanguage::Japanese)
|
||||||
|
{
|
||||||
|
strncat(descriptionText, std::string(" " + g_installerErrorMessage).c_str(), sizeof(descriptionText) - 1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
strncat(descriptionText, g_installerErrorMessage.c_str(), sizeof(descriptionText) - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
double textAlpha = ComputeMotionInstaller(g_appearTime, g_disappearTime, CONTAINER_INNER_TIME, CONTAINER_INNER_DURATION);
|
double textAlpha = ComputeMotionInstaller(g_appearTime, g_disappearTime, CONTAINER_INNER_TIME, CONTAINER_INNER_DURATION);
|
||||||
|
|
@ -769,6 +779,8 @@ static void DrawDescriptionContainer()
|
||||||
|
|
||||||
textX += annotationFontSize;
|
textX += annotationFontSize;
|
||||||
textY += annotationFontSize;
|
textY += annotationFontSize;
|
||||||
|
|
||||||
|
lineWidth += annotationFontSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
drawList->PushClipRect(clipRectMin, clipRectMax, false);
|
drawList->PushClipRect(clipRectMin, clipRectMax, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue