From c80b2d2dbc32c45b4eaeb802af6dcdf921b8410b Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 2 Aug 2023 21:28:37 +1000 Subject: Add loading icon when swapping character --- source/game/StarHumanoid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/game/StarHumanoid.cpp') diff --git a/source/game/StarHumanoid.cpp b/source/game/StarHumanoid.cpp index 82030e0..d554a10 100644 --- a/source/game/StarHumanoid.cpp +++ b/source/game/StarHumanoid.cpp @@ -526,7 +526,7 @@ List Humanoid::render(bool withItems, bool withRotation) { auto backArmDrawable = [&](String const& frameSet, Directives const& directives) -> Drawable { String image = strf("{}:{}", frameSet, backHand.backFrame); Drawable backArm = Drawable::makeImage(move(image), 1.0f / TilePixels, true, backArmFrameOffset); - backArm.imagePart().addDirectives(directives); + backArm.imagePart().addDirectives(directives, true); backArm.rotate(backHand.angle, backArmFrameOffset + m_backArmRotationCenter + m_backArmOffset); return backArm; }; @@ -710,7 +710,7 @@ List Humanoid::render(bool withItems, bool withRotation) { auto frontArmDrawable = [&](String const& frameSet, Directives const& directives) -> Drawable { String image = strf("{}:{}", frameSet, frontHand.frontFrame); Drawable frontArm = Drawable::makeImage(image, 1.0f / TilePixels, true, frontArmFrameOffset); - frontArm.imagePart().addDirectives(directives); + frontArm.imagePart().addDirectives(directives, true); frontArm.rotate(frontHand.angle, frontArmFrameOffset + m_frontArmRotationCenter); return frontArm; }; -- cgit v1.2.3