diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-03 00:27:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-03 00:52:12 +0300 |
commit | 9e4161f7324331498630fb25e72ff6d08c2db76f (patch) | |
tree | f903c8ba7c4d8c42e1327a673a9e42cafb5c42af /src/gui/gui.cpp | |
parent | 1cafda1147c06a647e3d3f1e3f986d7296ccbd08 (diff) | |
download | plus-9e4161f7324331498630fb25e72ff6d08c2db76f.tar.gz plus-9e4161f7324331498630fb25e72ff6d08c2db76f.tar.bz2 plus-9e4161f7324331498630fb25e72ff6d08c2db76f.tar.xz plus-9e4161f7324331498630fb25e72ff6d08c2db76f.zip |
add support for drag skill from skills window.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index debbe342f..1032e7e4e 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -95,6 +95,8 @@ Gui::Gui(Graphics *const graphics) : mLastMouseRealY(0), #endif mFocusListeners(), + mForegroundColor(Theme::getThemeColor(Theme::TEXT)), + mForegroundColor2(Theme::getThemeColor(Theme::TEXT_OUTLINE)), mCustomCursor(false) { logger->log1("Initializing GUI..."); @@ -449,6 +451,7 @@ void Gui::draw() { const int posX = mouseX - mGuiFont->getWidth(str) / 2; const int posY = mouseY + (image ? image->mBounds.h / 2 : 0); + g2->setColorAll(mForegroundColor, mForegroundColor2); mGuiFont->drawString(g2, str, posX, posY); } } |