snap text on shader

This commit is contained in:
iris committed 2025-08-23 22:16:00 -04:00
1 parent 5ce6fca275
commit 50ccf7393d
10 files changed
+101 -64

No files matched your search

+2 -2
View File
@@ -42,8 +42,8 @@ impl UiPos {
Self::anchor(corner.anchor())
}
pub const fn shift(&mut self, offset: Vec2) {
self.offset += offset;
pub const fn shift(&mut self, offset: impl const Into<Vec2>) {
self.offset += offset.into();
}
pub const fn shifted(mut self, offset: Vec2) -> Self {