snap text on shader

This commit is contained in:
2025-08-23 22:16:00 -04:00
parent 5ce6fca275
commit 50ccf7393d
10 changed files with 101 additions and 64 deletions

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 {