custom textbox colors

Co-authored-by: Misa Elizabeth Kai <infoteddy@infoteddy.info>
This commit is contained in:
AllyTally
2022-11-21 15:02:38 -04:00
committed by Misa Elizabeth Kai
parent de43005676
commit 3d5ba95b96
4 changed files with 53 additions and 0 deletions

View File

@@ -442,6 +442,15 @@ void scriptclass::run(void)
{
//oh boy
//first word is the colour.
#ifndef NO_CUSTOM_LEVELS
if (cl.customcolours.count(words[1]) != 0)
{
r = cl.customcolours[words[1]].r;
g = cl.customcolours[words[1]].g;
b = cl.customcolours[words[1]].b;
}
else // Turn the if into an else if so we don't run the default colour processing
#endif
if (words[1] == "cyan")
{
r = 164;