mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Unhardcode textbox colors in textbox arguments
There's a few places where textboxes are constructed through code, but they pass in the color's RGB values in manually. This commit unhardcodes most of them them, replacing them with a color lookup. The ones that weren't changed are special cases, like `175, 174, 174`.
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
bd34af32de
commit
efa1bad449
@@ -69,28 +69,29 @@ public:
|
||||
|
||||
void createtextboxreal(
|
||||
const std::string& t,
|
||||
int xp,
|
||||
int yp,
|
||||
int r,
|
||||
int g,
|
||||
int b,
|
||||
int xp, int yp,
|
||||
int r, int g, int b,
|
||||
bool flipme
|
||||
);
|
||||
void createtextbox(
|
||||
const std::string& t,
|
||||
int xp,
|
||||
int yp,
|
||||
int r,
|
||||
int g,
|
||||
int b
|
||||
int xp, int yp,
|
||||
SDL_Color color
|
||||
);
|
||||
void createtextbox(
|
||||
const std::string& t,
|
||||
int xp, int yp,
|
||||
int r, int g, int b
|
||||
);
|
||||
void createtextboxflipme(
|
||||
const std::string& t,
|
||||
int xp,
|
||||
int yp,
|
||||
int r,
|
||||
int g,
|
||||
int b
|
||||
int xp, int yp,
|
||||
SDL_Color color
|
||||
);
|
||||
void createtextboxflipme(
|
||||
const std::string& t,
|
||||
int xp, int yp,
|
||||
int r, int g, int b
|
||||
);
|
||||
|
||||
void textboxcenterx(void);
|
||||
|
||||
Reference in New Issue
Block a user