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/StarNpc.hpp | |
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/StarNpc.hpp')
-rw-r--r-- | source/game/StarNpc.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/game/StarNpc.hpp b/source/game/StarNpc.hpp index 854eea6..193ffce 100644 --- a/source/game/StarNpc.hpp +++ b/source/game/StarNpc.hpp @@ -57,7 +57,7 @@ public: Vec2F position() const override; RectF metaBoundBox() const override; - Vec2F mouthOffset() const; + Vec2F mouthOffset(bool ignoreAdjustments = true) const; Vec2F feetOffset() const; Vec2F headArmorOffset() const; Vec2F chestArmorOffset() const; @@ -105,6 +105,7 @@ public: Maybe<String> statusText() const override; bool displayNametag() const override; Vec3B nametagColor() const override; + Vec2F nametagOrigin() const override; bool aggressive() const; @@ -112,6 +113,7 @@ public: Maybe<LuaValue> evalScript(String const& code) override; Vec2F mouthPosition() const override; + Vec2F mouthPosition(bool ignoreAdjustments) const override; List<ChatAction> pullPendingChatActions() override; bool isInteractive() const override; |