ajout de points a la fin des phrases
Some checks failed
Rust Checks / checks (push) Has been cancelled
Rust Checks / checks (pull_request) Successful in 2m39s

This commit is contained in:
Raphaël 2024-03-09 17:42:14 +01:00
parent ab08b03660
commit 5ea30d3501

View file

@ -12,17 +12,17 @@ impl Plugin for ResponsiveScalingPlugin {
} }
} }
/// The default window size.
#[derive(Resource)] #[derive(Resource)]
/// The default window size
pub struct WindowSize(pub Vec2); pub struct WindowSize(pub Vec2);
/// Initializes the window size /// Initializes the window size.
pub fn init_window_size(mut command: Commands) { pub fn init_window_size(mut command: Commands) {
command.insert_resource(WindowSize(Vec2::new(1280., 720.))); command.insert_resource(WindowSize(Vec2::new(1280., 720.)));
} }
/// Calculates the ui_scale.0 depending on the default screen size /// Calculates the ui_scale.0 depending on the default screen size
/// in order to make the screen responsive /// in order to make the screen responsive.
pub fn change_scaling( pub fn change_scaling(
mut ui_scale: ResMut<UiScale>, mut ui_scale: ResMut<UiScale>,
windows: Query<&Window>, windows: Query<&Window>,