diff --git a/assets/martian.tweak.toml b/assets/martian.tweak.toml index 444ab95..0b62b2e 100644 --- a/assets/martian.tweak.toml +++ b/assets/martian.tweak.toml @@ -41,7 +41,7 @@ rgba_background = "#000000AA" delay = 0.1 text = [ """ -At the intersection of humanity's wildest imaginations and the infinite of the cosmos, the lines between possible and real fall apart like dissolving paper. +At the intersection of humanity's wildest imaginations and the infinity of the cosmos, the lines between possible and real fall apart like dissolving paper. """, """ On Earth, a long tradition of combat and destruction between different groups has been upheld and respected; given a place of honor in the social mind. As spacetime stretches ever on, the rhyme of the universe plays out, and naturally includes such traditions. @@ -290,5 +290,8 @@ fast_light_speed = 1.0 # N: Some value in-between undo_limit = -1 +############# +### AI tweaks (mostly how long it waits to do stuff) +############# [ai] lag_secs = 2.0 \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 2c306b3..5d20c78 100644 --- a/src/main.rs +++ b/src/main.rs @@ -48,7 +48,7 @@ fn main() { }), ..default() }), - ); + ).add_systems(Update, handle_window.run_if(just_pressed(KeyCode::F11))); app.add_plugins(credits::CreditsPlugin); app.add_plugins(debug::DebugPlugin); @@ -185,3 +185,17 @@ where { Box::new(move |buttons: Res>| -> bool { buttons.pressed(button) }) } + + +fn handle_window( + mut query: Query<&mut Window> +) { + use bevy::window::WindowMode; + + query.iter_mut().for_each(|mut window| { + window.mode = match window.mode { + WindowMode::BorderlessFullscreen => WindowMode::Windowed, + _ => WindowMode::BorderlessFullscreen, + } + }) +} \ No newline at end of file