Add setColor to GuiText

This commit is contained in:
Maschell 2020-10-04 14:02:35 +02:00
parent fd84b77c8e
commit b686ad53f8
2 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,8 @@ public:
void setFontSize(int32_t size);
void setColor(SDL_Color c);
protected:
GuiImage texture;
GuiTextureData *textureData = nullptr;

View File

@ -50,6 +50,10 @@ GuiText::~GuiText() {
delete textureData;
}
void GuiText::setColor(SDL_Color c) {
this->color = c;
}
void GuiText::setFontSize(int32_t size) {
this->fc_font = this->gFont->getFont(size);
updateSize();