Skip to content

Commit

Permalink
KOTOR: Add setBorderColor method to KotORWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
vkremianskii committed May 27, 2018
1 parent ea5894c commit c59d64d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engines/kotor/gui/widgets/kotorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,11 @@ void KotORWidget::setTextColor(float r, float g, float b, float a) {
_text->setColor(r, g, b, a);
}

void KotORWidget::setBorderColor(float r, float g, float b, float a) {
if (_border)
_border->setColor(r, g, b, a);
}

KotORWidget::Extend KotORWidget::createExtend(const Aurora::GFF3Struct &gff) {
Extend extend;

Expand Down
1 change: 1 addition & 0 deletions src/engines/kotor/gui/widgets/kotorwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class KotORWidget : public Widget {
void setHorizontalTextAlign(float halign);
void setVerticalTextAlign(float valign);
void setTextColor(float r, float g, float b, float a);
void setBorderColor(float r, float g, float b, float a);

protected:
struct Extend {
Expand Down

0 comments on commit c59d64d

Please sign in to comment.