mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-07 00:41:26 +00:00
Enable lowercase text for Statistics and Unlockable Checklist menus (resolves #339).
This commit is contained in:
parent
d99e3f8337
commit
508feaad9d
2 changed files with 74 additions and 68 deletions
|
@ -3184,7 +3184,6 @@ static void readextraemblemdata(MYFILE *f, INT32 num)
|
||||||
|
|
||||||
// Now get the part after
|
// Now get the part after
|
||||||
word2 = tmp += 2;
|
word2 = tmp += 2;
|
||||||
strupr(word2);
|
|
||||||
|
|
||||||
value = atoi(word2); // used for numerical settings
|
value = atoi(word2); // used for numerical settings
|
||||||
|
|
||||||
|
@ -3196,7 +3195,10 @@ static void readextraemblemdata(MYFILE *f, INT32 num)
|
||||||
sizeof (extraemblems[num-1].description), va("Extra emblem %d: objective", num));
|
sizeof (extraemblems[num-1].description), va("Extra emblem %d: objective", num));
|
||||||
else if (fastcmp(word, "CONDITIONSET"))
|
else if (fastcmp(word, "CONDITIONSET"))
|
||||||
extraemblems[num-1].conditionset = (UINT8)value;
|
extraemblems[num-1].conditionset = (UINT8)value;
|
||||||
else if (fastcmp(word, "SPRITE"))
|
else
|
||||||
|
{
|
||||||
|
strupr(word2);
|
||||||
|
if (fastcmp(word, "SPRITE"))
|
||||||
{
|
{
|
||||||
if (word2[0] >= 'A' && word2[0] <= 'Z')
|
if (word2[0] >= 'A' && word2[0] <= 'Z')
|
||||||
value = word2[0];
|
value = word2[0];
|
||||||
|
@ -3213,6 +3215,7 @@ static void readextraemblemdata(MYFILE *f, INT32 num)
|
||||||
else
|
else
|
||||||
deh_warning("Extra emblem %d: unknown word '%s'", num, word);
|
deh_warning("Extra emblem %d: unknown word '%s'", num, word);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} while (!myfeof(f));
|
} while (!myfeof(f));
|
||||||
|
|
||||||
if (!extraemblems[num-1].sprite)
|
if (!extraemblems[num-1].sprite)
|
||||||
|
@ -3262,7 +3265,6 @@ static void readunlockable(MYFILE *f, INT32 num)
|
||||||
|
|
||||||
// Now get the part after
|
// Now get the part after
|
||||||
word2 = tmp += 2;
|
word2 = tmp += 2;
|
||||||
strupr(word2);
|
|
||||||
|
|
||||||
i = atoi(word2); // used for numerical settings
|
i = atoi(word2); // used for numerical settings
|
||||||
|
|
||||||
|
@ -3272,7 +3274,10 @@ static void readunlockable(MYFILE *f, INT32 num)
|
||||||
else if (fastcmp(word, "OBJECTIVE"))
|
else if (fastcmp(word, "OBJECTIVE"))
|
||||||
deh_strlcpy(unlockables[num].objective, word2,
|
deh_strlcpy(unlockables[num].objective, word2,
|
||||||
sizeof (unlockables[num].objective), va("Unlockable %d: objective", num));
|
sizeof (unlockables[num].objective), va("Unlockable %d: objective", num));
|
||||||
else if (fastcmp(word, "HEIGHT"))
|
else
|
||||||
|
{
|
||||||
|
strupr(word2);
|
||||||
|
if (fastcmp(word, "HEIGHT"))
|
||||||
unlockables[num].height = (UINT16)i;
|
unlockables[num].height = (UINT16)i;
|
||||||
else if (fastcmp(word, "CONDITIONSET"))
|
else if (fastcmp(word, "CONDITIONSET"))
|
||||||
unlockables[num].conditionset = (UINT8)i;
|
unlockables[num].conditionset = (UINT8)i;
|
||||||
|
@ -3321,6 +3326,7 @@ static void readunlockable(MYFILE *f, INT32 num)
|
||||||
else
|
else
|
||||||
deh_warning("Unlockable %d: unknown word '%s'", num+1, word);
|
deh_warning("Unlockable %d: unknown word '%s'", num+1, word);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} while (!myfeof(f)); // finish when the line is empty
|
} while (!myfeof(f)); // finish when the line is empty
|
||||||
|
|
||||||
Z_Free(s);
|
Z_Free(s);
|
||||||
|
|
|
@ -6688,7 +6688,7 @@ static void M_DrawChecklist(void)
|
||||||
|| !unlockables[i].conditionset || unlockables[i].conditionset > MAXCONDITIONSETS)
|
|| !unlockables[i].conditionset || unlockables[i].conditionset > MAXCONDITIONSETS)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
V_DrawString(currentMenu->x, y, ((unlockables[i].unlocked) ? V_GREENMAP : V_TRANSLUCENT), ((unlockables[i].unlocked || !unlockables[i].nochecklist) ? unlockables[i].name : M_CreateSecretMenuOption(unlockables[i].name)));
|
V_DrawString(currentMenu->x, y, ((unlockables[i].unlocked) ? V_GREENMAP : V_TRANSLUCENT)|V_ALLOWLOWERCASE, ((unlockables[i].unlocked || !unlockables[i].nochecklist) ? unlockables[i].name : M_CreateSecretMenuOption(unlockables[i].name)));
|
||||||
|
|
||||||
for (j = i+1; j < MAXUNLOCKABLES; j++)
|
for (j = i+1; j < MAXUNLOCKABLES; j++)
|
||||||
{
|
{
|
||||||
|
@ -8855,9 +8855,9 @@ static void M_DrawStatsMaps(int location)
|
||||||
M_DrawMapEmblems(mnum+1, 292, y);
|
M_DrawMapEmblems(mnum+1, 292, y);
|
||||||
|
|
||||||
if (mapheaderinfo[mnum]->actnum != 0)
|
if (mapheaderinfo[mnum]->actnum != 0)
|
||||||
V_DrawString(20, y, V_YELLOWMAP, va("%s %d", mapheaderinfo[mnum]->lvlttl, mapheaderinfo[mnum]->actnum));
|
V_DrawString(20, y, V_YELLOWMAP|V_ALLOWLOWERCASE, va("%s %d", mapheaderinfo[mnum]->lvlttl, mapheaderinfo[mnum]->actnum));
|
||||||
else
|
else
|
||||||
V_DrawString(20, y, V_YELLOWMAP, mapheaderinfo[mnum]->lvlttl);
|
V_DrawString(20, y, V_YELLOWMAP|V_ALLOWLOWERCASE, mapheaderinfo[mnum]->lvlttl);
|
||||||
|
|
||||||
y += 8;
|
y += 8;
|
||||||
|
|
||||||
|
@ -8901,7 +8901,7 @@ static void M_DrawStatsMaps(int location)
|
||||||
else
|
else
|
||||||
V_DrawSmallScaledPatch(292, y, 0, W_CachePatchName("NEEDIT", PU_CACHE));
|
V_DrawSmallScaledPatch(292, y, 0, W_CachePatchName("NEEDIT", PU_CACHE));
|
||||||
|
|
||||||
V_DrawString(20, y, V_YELLOWMAP, va("%s", exemblem->description));
|
V_DrawString(20, y, V_YELLOWMAP|V_ALLOWLOWERCASE, va("%s", exemblem->description));
|
||||||
}
|
}
|
||||||
|
|
||||||
y += 8;
|
y += 8;
|
||||||
|
|
Loading…
Reference in a new issue