Alternate HUD style partially implemented.
This commit is contained in:
parent
bccf3a3b48
commit
4e29d1c2fe
18 changed files with 913 additions and 30 deletions
|
|
@ -379,7 +379,7 @@ Class SWWMUtility
|
|||
return str;
|
||||
}
|
||||
|
||||
static clearscope void ObscureText( out String str, int seed )
|
||||
static clearscope void ObscureText( out String str, int seed, bool alnum = false )
|
||||
{
|
||||
int len = str.CodePointCount();
|
||||
String newstr = "";
|
||||
|
|
@ -390,6 +390,12 @@ Class SWWMUtility
|
|||
[ch, pos] = str.GetNextCodePoint(pos);
|
||||
if ( (ch == 0x20) || (ch == 0x09) || (ch == 0x0A) )
|
||||
newstr.AppendCharacter(ch);
|
||||
else if ( alnum )
|
||||
{
|
||||
int sd = abs(seed%36);
|
||||
if ( sd >= 10 ) sd += 7;
|
||||
newstr.AppendCharacter(sd+48);
|
||||
}
|
||||
else newstr.AppendCharacter((abs(seed)%95)+32);
|
||||
}
|
||||
str = newstr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue