diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 00:42:07 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 00:42:07 +1000 |
commit | 63b68b3a55a11b32b07e7b8bdbf3760722d5e7f9 (patch) | |
tree | a6e9f0b6005d20fe69a00e1a585502c7b73461cd /source/game/StarMonster.cpp | |
parent | 94c84ad01333850b88091f2c188e4f6173fd25e7 (diff) |
Nameplate and chat bubble improvements
They should stack much better now. I also hooked up the true mouth position to the name-tag, but it's too shaky on chat bubbles.
Diffstat (limited to 'source/game/StarMonster.cpp')
-rw-r--r-- | source/game/StarMonster.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/game/StarMonster.cpp b/source/game/StarMonster.cpp index 2b994d9..c8b69bf 100644 --- a/source/game/StarMonster.cpp +++ b/source/game/StarMonster.cpp @@ -810,6 +810,10 @@ Vec3B Monster::nametagColor() const { return m_monsterVariant.nametagColor; } +Vec2F Monster::nametagOrigin() const { + return mouthPosition(false); +} + bool Monster::aggressive() const { return m_aggressive; } @@ -826,6 +830,10 @@ Vec2F Monster::mouthPosition() const { return mouthOffset() + position(); } +Vec2F Monster::mouthPosition(bool) const { + return mouthPosition(); +} + List<ChatAction> Monster::pullPendingChatActions() { return std::move(m_pendingChatActions); } |