24 unsigned int currentCharacter;
26 currentCharacter = *text;
28 while (currentCharacter != 0) {
29 if (currentCharacter != 0x20) {
33 currentCharacter = *text;
34 if(currentCharacter -
'0' < 10) {
35 *(
unsigned short *)(
_ptr_hudMobys + 0x36) = currentCharacter + 0xd4;
37 else if(currentCharacter -
'A' < 26) {
38 *(
unsigned short *)(
_ptr_hudMobys + 0x36) = currentCharacter + 0x169;
42 if(currentCharacter ==
'/') {
45 else if(currentCharacter ==
'?') {
48 else if(currentCharacter ==
'%') {
51 else if(currentCharacter ==
'^') {
54 else if(currentCharacter ==
'+') {
67 textInfo[0] += spacing;
68 currentCharacter = *text;
89int DrawTextAll(
char *text,
int *capitalTextInfo,
int *lowercaseTextInfo,
int spacing,
char color)
91 unsigned int currentCharacter;
96 currentCharacter = *text;
97 while (currentCharacter != 0) {
98 if (currentCharacter == 0x20) {
99 spaceSize = *lowercaseTextInfo * 3;
102 spaceSize = spaceSize + 3;
104 capitalTextInfo[0] += (spaceSize / 4);
110 if ((*text ==
'!') || (*text ==
'?')) {
117 currentCharacter = *text;
118 if (currentCharacter -
'0' < 10) {
121 else if (currentCharacter -
'A' < 26) {
124 else if (currentCharacter ==
'!') {
127 else if (currentCharacter ==
',') {
130 else if (currentCharacter ==
'?') {
133 else if (currentCharacter ==
'.') {
138 *(
int *)(
_ptr_hudMobys + 0x10) -= (*lowercaseTextInfo * 2) / 3;
144 *capitalTextInfo += spacing;
147 *capitalTextInfo += *lowercaseTextInfo;
149 isCapital = (
unsigned int)(*text - 0x30) < 10;
152 currentCharacter = *text;
void memset(void *str, int c, int n)
int DrawTextAll(char *text, int *capitalTextInfo, int *lowercaseTextInfo, int spacing, char color)
Draws a text string to the screen (Capital & Lowercase allowed)
char * DrawTextCapitals(char *text, int *textInfo, int spacing, char color)
Draws a text string to the screen (Only capital characters allowed)
void Vec3Copy(int *dst, int *src)
Copies the 'src' Vector to the 'dst' Vector.