From bf3205aafa71fad7138e7be8a4b641907ec056ce Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Dec 2013 14:43:47 +0300 Subject: add ability to show emotes in text over heads. for this textbox replaces into browserbox in speechbubble. --- src/gui/widgets/browserbox.cpp | 7 +++++++ src/gui/widgets/browserbox.h | 3 +++ 2 files changed, 10 insertions(+) (limited to 'src/gui/widgets') 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; -- cgit v1.2.3-70-g09d2