From e82e7e1ea6ca76a372f3f23cf028cf7ed65da9c3 Mon Sep 17 00:00:00 2001 From: extrawurst Date: Wed, 19 Mar 2025 21:13:26 +0100 Subject: [PATCH] fit to original aspect ratio --- src/heads_ui.rs | 2 +- src/main.rs | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/heads_ui.rs b/src/heads_ui.rs index 234fab3..385c6ca 100644 --- a/src/heads_ui.rs +++ b/src/heads_ui.rs @@ -42,7 +42,7 @@ fn setup(mut commands: Commands, asset_server: Res) { .spawn(Node { position_type: PositionType::Absolute, bottom: Val::Px(20.0), - right: Val::Px(100.0), + right: Val::Px(20.0), height: Val::Px(74.0), ..default() }) diff --git a/src/main.rs b/src/main.rs index 924543e..cf1a3b0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,7 +53,14 @@ fn main() { cam_follow: true, }); - app.add_plugins(DefaultPlugins); + app.add_plugins(DefaultPlugins.set(WindowPlugin { + primary_window: Some(Window { + title: "HEDZ reloaded".into(), + resolution: (1024., 768.).into(), + ..default() + }), + ..default() + })); // app.add_plugins(bevy::pbr::wireframe::WireframePlugin) // .insert_resource(bevy::pbr::wireframe::WireframeConfig {