diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-25 13:50:09 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-25 13:50:09 +0200 |
commit | ecb6ff15c24841dc08ab8f5c3b347c8080720ac4 (patch) | |
tree | d53db2a61a6151af970f9d27a617d12e0cac7588 /pixel-client/src/main.rs | |
parent | bc210b2632891ca163d31fb57bc0c41769249bf5 (diff) | |
download | hurrycurry-ecb6ff15c24841dc08ab8f5c3b347c8080720ac4.tar hurrycurry-ecb6ff15c24841dc08ab8f5c3b347c8080720ac4.tar.bz2 hurrycurry-ecb6ff15c24841dc08ab8f5c3b347c8080720ac4.tar.zst |
pc: main menu background
Diffstat (limited to 'pixel-client/src/main.rs')
-rw-r--r-- | pixel-client/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pixel-client/src/main.rs b/pixel-client/src/main.rs index 8c140fc5..b072a7e0 100644 --- a/pixel-client/src/main.rs +++ b/pixel-client/src/main.rs @@ -35,6 +35,7 @@ pub mod menu; pub mod network; pub mod render; pub mod tilemap; +pub mod ui; #[derive(Debug, Parser)] pub struct Args { @@ -113,7 +114,7 @@ fn main() { last_tick += dt; - renderer.ui_scale = Vec2::new(5., 5.); + renderer.set_ui_view(5.); match &mut state { State::Ingame(x) => x.draw(&mut renderer), State::Menu(x) => x.draw(&mut renderer), |