Add setColor to GuiText
This commit is contained in:
parent
fd84b77c8e
commit
b686ad53f8
|
@ -59,6 +59,8 @@ public:
|
|||
|
||||
void setFontSize(int32_t size);
|
||||
|
||||
void setColor(SDL_Color c);
|
||||
|
||||
protected:
|
||||
GuiImage texture;
|
||||
GuiTextureData *textureData = nullptr;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue