aboutsummaryrefslogtreecommitdiff
path: root/pixel-client/src/render/misc.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-14 22:58:09 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-14 22:58:09 +0200
commit16bdd6964705a9995d1ccd9451264db59a4e8879 (patch)
tree2c4ccab3eed4f2d77bda70dbc26a80f879c9167e /pixel-client/src/render/misc.rs
parent66cfc6f5a6352d65f1b198547baaebdd2366b8a4 (diff)
downloadhurrycurry-16bdd6964705a9995d1ccd9451264db59a4e8879.tar
hurrycurry-16bdd6964705a9995d1ccd9451264db59a4e8879.tar.bz2
hurrycurry-16bdd6964705a9995d1ccd9451264db59a4e8879.tar.zst
pc: add item bubbles
Diffstat (limited to 'pixel-client/src/render/misc.rs')
-rw-r--r--pixel-client/src/render/misc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/pixel-client/src/render/misc.rs b/pixel-client/src/render/misc.rs
index 7a631154..77dc52b0 100644
--- a/pixel-client/src/render/misc.rs
+++ b/pixel-client/src/render/misc.rs
@@ -25,7 +25,7 @@ pub struct MiscTextures {
pub interact_target: Sprite,
pub solid: Rect,
pub clouds: Rect,
- pub itembubble: Rect,
+ pub itembubble: Sprite,
}
impl MiscTextures {
@@ -40,7 +40,7 @@ impl MiscTextures {
),
solid: *layout.get("solid+a").unwrap(),
clouds: *layout.get("clouds+a").unwrap(),
- itembubble: *layout.get("itembubble+a").unwrap(),
+ itembubble: Sprite::new(*layout.get("itembubble+a").unwrap(), Vec2::Y * -1., 1.),
}
}
}