mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 17:30:00 +00:00
Merge branch 'master' of github.com:gtamodding/re3
This commit is contained in:
commit
9950d105f7
2
librw
2
librw
|
@ -1 +1 @@
|
||||||
Subproject commit a3120078932053ddd61d696536d8b371e9d65b37
|
Subproject commit 86660a3ff3c958500683300e5e5882d1239d6ca5
|
|
@ -413,6 +413,14 @@ CMenuManager::BuildStatLine(char *text, void *stat, bool itsFloat, void *stat2)
|
||||||
if (!text)
|
if (!text)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef MORE_LANGUAGES
|
||||||
|
if (CFont::IsJapanese() && stat2)
|
||||||
|
if (itsFloat)
|
||||||
|
sprintf(gString2, " %.2f/%.2f", *(float*)stat, *(float*)stat2);
|
||||||
|
else
|
||||||
|
sprintf(gString2, " %d/%d", *(int*)stat, *(int*)stat2);
|
||||||
|
else
|
||||||
|
#endif
|
||||||
if (stat2) {
|
if (stat2) {
|
||||||
if (itsFloat)
|
if (itsFloat)
|
||||||
sprintf(gString2, " %.2f %s %.2f", *(float*)stat, UnicodeToAscii(TheText.Get("FEST_OO")), *(float*)stat2);
|
sprintf(gString2, " %.2f %s %.2f", *(float*)stat, UnicodeToAscii(TheText.Get("FEST_OO")), *(float*)stat2);
|
||||||
|
@ -2939,7 +2947,6 @@ CMenuManager::InitialiseChangedLanguageSettings()
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
PcSaveHelper.PopulateSlotInfo();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3311,7 +3318,7 @@ CMenuManager::PrintStats()
|
||||||
{
|
{
|
||||||
int rowNum = ConstructStatLine(99999);
|
int rowNum = ConstructStatLine(99999);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#ifdef GTA3_1_1_PATCH
|
||||||
CFont::SetFontStyle(FONT_BANK);
|
CFont::SetFontStyle(FONT_LOCALE(FONT_BANK));
|
||||||
#endif
|
#endif
|
||||||
CFont::SetScale(MENU_X(MENU_TEXT_SIZE_X * 0.7), MENU_Y(MENU_TEXT_SIZE_Y * 0.9)); // second mulipliers are double, idk why
|
CFont::SetScale(MENU_X(MENU_TEXT_SIZE_X * 0.7), MENU_Y(MENU_TEXT_SIZE_Y * 0.9)); // second mulipliers are double, idk why
|
||||||
float nextYChange, y, alphaMult;
|
float nextYChange, y, alphaMult;
|
||||||
|
@ -3370,9 +3377,21 @@ CMenuManager::PrintStats()
|
||||||
|
|
||||||
CFont::SetColor(CRGBA(235, 170, 50, FadeIn(255)));
|
CFont::SetColor(CRGBA(235, 170, 50, FadeIn(255)));
|
||||||
CFont::SetRightJustifyOff();
|
CFont::SetRightJustifyOff();
|
||||||
CFont::PrintString(nextX, MENU_Y(STATS_RATING_Y), TheText.Get("CRIMRA")); nextX += MENU_X(10.0f) + CFont::GetStringWidth(TheText.Get("CRIMRA"), true);
|
CFont::PrintString(nextX, MENU_Y(STATS_RATING_Y), TheText.Get("CRIMRA"));
|
||||||
|
#ifdef MORE_LANGUAGES
|
||||||
|
if (CFont::IsJapanese())
|
||||||
|
nextX += MENU_X(10.0f) + CFont::GetStringWidth_Jap(TheText.Get("CRIMRA"));
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
nextX += MENU_X(10.0f) + CFont::GetStringWidth(TheText.Get("CRIMRA"), true);
|
||||||
UnicodeStrcpy(gUString, CStats::FindCriminalRatingString());
|
UnicodeStrcpy(gUString, CStats::FindCriminalRatingString());
|
||||||
CFont::PrintString(nextX, MENU_Y(STATS_RATING_Y), gUString); nextX += MENU_X(6.0f) + CFont::GetStringWidth(gUString, true);
|
CFont::PrintString(nextX, MENU_Y(STATS_RATING_Y), gUString);
|
||||||
|
#ifdef MORE_LANGUAGES
|
||||||
|
if (CFont::IsJapanese())
|
||||||
|
nextX += MENU_X(6.0f) + CFont::GetStringWidth_Jap(gUString);
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
nextX += MENU_X(6.0f) + CFont::GetStringWidth(gUString, true);
|
||||||
sprintf(gString, "%d", CStats::FindCriminalRatingNumber());
|
sprintf(gString, "%d", CStats::FindCriminalRatingNumber());
|
||||||
AsciiToUnicode(gString, gUString);
|
AsciiToUnicode(gString, gUString);
|
||||||
CFont::PrintString(nextX, MENU_Y(STATS_RATING_Y), gUString);
|
CFont::PrintString(nextX, MENU_Y(STATS_RATING_Y), gUString);
|
||||||
|
@ -5499,8 +5518,18 @@ CMenuManager::PrintMap(void)
|
||||||
|
|
||||||
float nextX = MENU_X(30.0f), nextY = 95.0f;
|
float nextX = MENU_X(30.0f), nextY = 95.0f;
|
||||||
wchar *text;
|
wchar *text;
|
||||||
|
#ifdef MORE_LANGUAGES
|
||||||
|
#define TEXT_PIECE(key,extraSpace) \
|
||||||
|
text = TheText.Get(key);\
|
||||||
|
CFont::PrintString(nextX, SCREEN_SCALE_FROM_BOTTOM(nextY), text);\
|
||||||
|
if (CFont::IsJapanese())\
|
||||||
|
nextX += CFont::GetStringWidth_Jap(text) + MENU_X(extraSpace);\
|
||||||
|
else\
|
||||||
|
nextX += CFont::GetStringWidth(text, true) + MENU_X(extraSpace);
|
||||||
|
#else
|
||||||
#define TEXT_PIECE(key,extraSpace) \
|
#define TEXT_PIECE(key,extraSpace) \
|
||||||
text = TheText.Get(key); CFont::PrintString(nextX, SCREEN_SCALE_FROM_BOTTOM(nextY), text); nextX += CFont::GetStringWidth(text, true) + MENU_X(extraSpace);
|
text = TheText.Get(key); CFont::PrintString(nextX, SCREEN_SCALE_FROM_BOTTOM(nextY), text); nextX += CFont::GetStringWidth(text, true) + MENU_X(extraSpace);
|
||||||
|
#endif
|
||||||
|
|
||||||
TEXT_PIECE("FEC_MWF", 3.0f);
|
TEXT_PIECE("FEC_MWF", 3.0f);
|
||||||
TEXT_PIECE("FEC_PGU", 1.0f);
|
TEXT_PIECE("FEC_PGU", 1.0f);
|
||||||
|
@ -5641,6 +5670,7 @@ CMenuManager::ConstructStatLine(int rowIdx)
|
||||||
#ifdef MORE_LANGUAGES
|
#ifdef MORE_LANGUAGES
|
||||||
case LANGUAGE_POLISH:
|
case LANGUAGE_POLISH:
|
||||||
case LANGUAGE_RUSSIAN:
|
case LANGUAGE_RUSSIAN:
|
||||||
|
case LANGUAGE_JAPANESE:
|
||||||
#endif
|
#endif
|
||||||
STAT_LINE("FESTDFM", &CStats::DistanceTravelledOnFoot, true, nil);
|
STAT_LINE("FESTDFM", &CStats::DistanceTravelledOnFoot, true, nil);
|
||||||
STAT_LINE("FESTDCM", &CStats::DistanceTravelledInVehicle, true, nil);
|
STAT_LINE("FESTDCM", &CStats::DistanceTravelledInVehicle, true, nil);
|
||||||
|
|
Loading…
Reference in a new issue