mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-17 05:04:08 +00:00
PlayerPed and "Redefine controls" menu done, fixes
This commit is contained in:
parent
8cb3c07151
commit
bd8b907d13
15 changed files with 1048 additions and 711 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue