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/frontend/StarNameplatePainter.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/frontend/StarNameplatePainter.cpp')
-rw-r--r-- | source/frontend/StarNameplatePainter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/frontend/StarNameplatePainter.cpp b/source/frontend/StarNameplatePainter.cpp index d7e589a..0bc96ff 100644 --- a/source/frontend/StarNameplatePainter.cpp +++ b/source/frontend/StarNameplatePainter.cpp @@ -53,7 +53,7 @@ void NameplatePainter::update(WorldClientPtr const& world, WorldCamera const& ca m_nametags.forEach([&world, &camera, this, inspectionMode](BubbleState<Nametag>& bubbleState, Nametag& nametag) { if (auto entity = as<NametagEntity>(world->entity(nametag.entityId))) { - bubbleState.idealDestination = camera.worldToScreen(entity->position()) + m_offset * camera.pixelRatio(); + bubbleState.idealDestination = camera.worldToScreen(entity->nametagOrigin()) + m_offset * camera.pixelRatio(); bubbleState.boundBox = determineBoundBox(bubbleState.idealDestination, nametag); nametag.statusText = entity->statusText(); |