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/interfaces | |
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/interfaces')
-rw-r--r-- | source/game/interfaces/StarChattyEntity.hpp | 3 | ||||
-rw-r--r-- | source/game/interfaces/StarNametagEntity.hpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source/game/interfaces/StarChattyEntity.hpp b/source/game/interfaces/StarChattyEntity.hpp index 57c590a..03c1ac9 100644 --- a/source/game/interfaces/StarChattyEntity.hpp +++ b/source/game/interfaces/StarChattyEntity.hpp @@ -10,7 +10,8 @@ STAR_CLASS(ChattyEntity); class ChattyEntity : public virtual Entity { public: - virtual Vec2F mouthPosition() const = 0; + virtual Vec2F mouthPosition() const { return mouthPosition(true); }; + virtual Vec2F mouthPosition(bool) const = 0; virtual List<ChatAction> pullPendingChatActions() = 0; }; diff --git a/source/game/interfaces/StarNametagEntity.hpp b/source/game/interfaces/StarNametagEntity.hpp index c9a9008..02aa643 100644 --- a/source/game/interfaces/StarNametagEntity.hpp +++ b/source/game/interfaces/StarNametagEntity.hpp @@ -13,6 +13,7 @@ public: virtual Maybe<String> statusText() const = 0; virtual bool displayNametag() const = 0; virtual Vec3B nametagColor() const = 0; + virtual Vec2F nametagOrigin() const = 0; }; } |