diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-16 14:43:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-16 14:43:47 +0300 |
commit | bf3205aafa71fad7138e7be8a4b641907ec056ce (patch) | |
tree | 1ce5728058c09aeafafb4210cf0ecd89ab0e0397 /src/gui/widgets | |
parent | f03edb38328aa5ddb48e10198621bf2353096440 (diff) | |
download | mv-bf3205aafa71fad7138e7be8a4b641907ec056ce.tar.gz mv-bf3205aafa71fad7138e7be8a4b641907ec056ce.tar.bz2 mv-bf3205aafa71fad7138e7be8a4b641907ec056ce.tar.xz mv-bf3205aafa71fad7138e7be8a4b641907ec056ce.zip |
add ability to show emotes in text over heads.
for this textbox replaces into browserbox in speechbubble.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 7 | ||||
-rw-r--r-- | src/gui/widgets/browserbox.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 0dafe8e24..014e4cf58 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -889,6 +889,13 @@ std::string BrowserBox::getTextAtPos(const int x, const int y) const return str; } +void BrowserBox::setForegroundColorAll(const gcn::Color &color1, + const gcn::Color &color2) +{ + mForegroundColor = color1; + mForegroundColor2 = color2; +} + LinePart::~LinePart() { if (mImage) diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index e06ca3f48..fd037506b 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -231,6 +231,9 @@ class BrowserBox final : public gcn::Widget, int getPadding() const A_WARN_UNUSED { return mPadding; } + void setForegroundColorAll(const gcn::Color &color1, + const gcn::Color &color2); + private: int calcHeight() A_WARN_UNUSED; |