mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 18:04:09 +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
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <SDL_stdinc.h>
|
||||
|
||||
#include "CustomLevels.h"
|
||||
#include "Font.h"
|
||||
|
||||
blockclass::blockclass(void)
|
||||
@@ -48,6 +49,15 @@ void blockclass::rectset(const int xi, const int yi, const int wi, const int hi)
|
||||
|
||||
void blockclass::setblockcolour(const char* col)
|
||||
{
|
||||
#ifndef NO_CUSTOM_LEVELS
|
||||
if (cl.customcolours.count(col) != 0)
|
||||
{
|
||||
r = cl.customcolours[col].r;
|
||||
g = cl.customcolours[col].g;
|
||||
b = cl.customcolours[col].b;
|
||||
}
|
||||
else // Turn the if into an else if so we don't run the default colour processing
|
||||
#endif
|
||||
if (SDL_strcmp(col, "cyan") == 0)
|
||||
{
|
||||
r = 164;
|
||||
|
||||
Reference in New Issue
Block a user