Remove hardcoded textbox colours

We have a custom textbox colour system, why not use it? This also moves
the map of colours from CustomLevels to Script.
This commit is contained in:
AllyTally
2023-03-18 18:48:20 -03:00
committed by Misa Elizabeth Kai
parent c3e251fea9
commit bd34af32de
5 changed files with 40 additions and 164 deletions

View File

@@ -387,7 +387,8 @@ void customlevelclass::reset(void)
onewaycol_override = false;
customcolours.clear();
script.textbox_colours.clear();
script.add_default_colours();
map.specialroomnames.clear();
}
@@ -1309,7 +1310,7 @@ next:
colour.g = g;
colour.b = b;
customcolours[name] = colour;
script.textbox_colours[name] = colour;
}
}
}