mirror of
https://github.com/halpz/re3.git
synced 2025-07-25 12:12:47 +00:00
PlayerPed and "Redefine controls" menu done, fixes
This commit is contained in:
@ -1437,3 +1437,21 @@ CFont::SetDropColor(CRGBA col)
|
||||
if (Details.alphaFade < 255.0f)
|
||||
Details.dropColor.a *= Details.alphaFade / 255.0f;
|
||||
}
|
||||
|
||||
void
|
||||
CFont::FilterOutTokensFromString(wchar *str)
|
||||
{
|
||||
int newIdx = 0;
|
||||
wchar copy[256], *c;
|
||||
UnicodeStrcpy(copy, str);
|
||||
|
||||
for (c = copy; *c != '\0'; c++) {
|
||||
if (*c == '~') {
|
||||
c++;
|
||||
while (*c != '~') c++;
|
||||
} else {
|
||||
str[newIdx++] = *c;
|
||||
}
|
||||
}
|
||||
str[newIdx] = '\0';
|
||||
}
|
||||
|
@ -200,6 +200,7 @@ public:
|
||||
static void SetColor(CRGBA col);
|
||||
static void SetDropColor(CRGBA col);
|
||||
static wchar FindNewCharacter(wchar c);
|
||||
static void FilterOutTokensFromString(wchar*);
|
||||
#ifdef MORE_LANGUAGES
|
||||
static void ReloadFonts(uint8 set);
|
||||
|
||||
|
Reference in New Issue
Block a user