mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-31 10:14:40 +03:00
custom textbox colors
Co-authored-by: Misa Elizabeth Kai <infoteddy@infoteddy.info>
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
de43005676
commit
3d5ba95b96
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user