diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-27 21:29:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-27 21:29:06 +0300 |
commit | 420664f4025b261674e0cdea503d43fb95beae38 (patch) | |
tree | a7f75459b34593f355384abe9e68c20239d1c51a /src/being | |
parent | b2f868c841bf466714796bc9ce155f411ae8df06 (diff) | |
download | plus-420664f4025b261674e0cdea503d43fb95beae38.tar.gz plus-420664f4025b261674e0cdea503d43fb95beae38.tar.bz2 plus-420664f4025b261674e0cdea503d43fb95beae38.tar.xz plus-420664f4025b261674e0cdea503d43fb95beae38.zip |
Add strong typed bool type Speech.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 206151533..9c820f0c5 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -567,10 +567,11 @@ void Being::setSpeech(const std::string &text, const std::string &channel, { delete mText; mText = new Text(mSpeech, - getPixelX(), getPixelY() - getHeight(), - Graphics::CENTER, - &userPalette->getColor(UserPalette::PARTICLE), - true); + getPixelX(), + getPixelY() - getHeight(), + Graphics::CENTER, + &userPalette->getColor(UserPalette::PARTICLE), + Speech_true); } else { @@ -1875,9 +1876,12 @@ void Being::drawSpeech(const int offsetX, const int offsetY) if (!mText && userPalette) { - mText = new Text(mSpeech, getPixelX(), getPixelY() - getHeight(), - Graphics::CENTER, &theme->getColor( - Theme::BUBBLE_TEXT, 255), true); + mText = new Text(mSpeech, + getPixelX(), + getPixelY() - getHeight(), + Graphics::CENTER, + &theme->getColor(Theme::BUBBLE_TEXT, 255), + Speech_true); } } else if (speech == BeingSpeech::NO_SPEECH) |