From e64aabfcf1237639fa5d53ed7e02c3a6510f4a0c Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 23 Jun 2023 20:24:40 +1000 Subject: add Nametag Directives --- source/frontend/StarChatBubbleSeparation.hpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'source/frontend/StarChatBubbleSeparation.hpp') diff --git a/source/frontend/StarChatBubbleSeparation.hpp b/source/frontend/StarChatBubbleSeparation.hpp index d3a2bdc..88a860c 100644 --- a/source/frontend/StarChatBubbleSeparation.hpp +++ b/source/frontend/StarChatBubbleSeparation.hpp @@ -139,13 +139,11 @@ void BubbleSeparator::forEach(function func) { RectF boundBox = bubble.boundBox.translated(positionDelta); RectF separated = separateBubble(m_sortedLeftEdges, m_sortedRightEdges, boundBox); anyMoved = true; - bubble = Bubble{bubble.contents, - bubble.idealDestination, - bubble.idealDestination, - boundBox, - bubble.idealDestination + separated.min() - boundBox.min(), - separated, - bubble.currentPosition + positionDelta}; + bubble.currentDestination = bubble.idealDestination; + bubble.boundBox = boundBox; + bubble.separatedPosition = bubble.idealDestination + separated.min() - boundBox.min(); + bubble.separatedBox = separated; + bubble.currentPosition += positionDelta; } }); if (anyMoved) -- cgit v1.2.3