diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-24 16:44:27 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-24 16:44:27 -0700 |
commit | 5e1dc59411cd7973fb4208ae76d0970bd2ea87d6 (patch) | |
tree | ee805bff4d48f2393df43a395469c18c2dfe7591 /src/being.cpp | |
parent | 0b848dd3c46ee8391522f330eaf3ad0f75462e09 (diff) | |
download | mana-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.tar.gz mana-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.tar.bz2 mana-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.tar.xz mana-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.zip |
Updated DejaVuSans ttf file, as well as adding the bolded version, which
is used in a few spots.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp index 65e9f9d1..e30ccee4 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -510,11 +510,12 @@ void Being::drawSpeech(Graphics *graphics, int offsetX, int offsetY) mText = 0; } - mSpeechBubble->setCaption(mName); - mSpeechBubble->setWindowName(mName); + if (mName != mSpeechBubble->getCaption()) + mSpeechBubble->setName(mName); + // Not quite centered, but close enough. However, it's not too important to get // it right right now, as it doesn't take bubble collision into account yet. - mSpeechBubble->setText( mSpeech ); + mSpeechBubble->setText(mSpeech); mSpeechBubble->setPosition(px - (mSpeechBubble->getWidth() * 4 / 11), py - 70 - (mSpeechBubble->getNumRows()*14)); mSpeechBubble->setVisible(true); |