fix error
Some checks failed
Rust Checks / checks (push) Failing after 1m19s

This commit is contained in:
CoCo_Sol 2024-03-31 18:06:50 +02:00
parent 3264e06388
commit 1275c9e24c
2 changed files with 5 additions and 3 deletions

View file

@ -28,6 +28,9 @@ pub fn change_scaling(
windows: Query<&Window>,
size: Res<UILayoutSize>,
) {
if !windows.get_single().unwrap().resolution.physical_height() > 0 {
return;
};
let window = windows.get_single().expect("Main window not found");
let (a, b) = (
window.resolution.width() / size.0.x,

View file

@ -10,9 +10,8 @@ pub struct MenuPlugin;
impl Plugin for MenuPlugin {
fn build(&self, app: &mut App) {
app.add_systems(OnEnter(CurrentScene::Menu), menu_ui);
// app.add_systems(Update, change_scaling);
// app.add_systems(Update, hover_system);
// app.add_systems(Update, pressed_system);
app.add_systems(Update, hover_system);
app.add_systems(Update, pressed_system);
app.add_systems(OnExit(CurrentScene::Menu), destroy_menu);
}
}