From ecb6ff15c24841dc08ab8f5c3b347c8080720ac4 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 25 Jul 2024 13:50:09 +0200 Subject: pc: main menu background --- pixel-client/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pixel-client/src/main.rs') 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), -- cgit v1.2.3-70-g09d2