clarification du main node
Some checks failed
Rust Checks / checks (push) Failing after 5s
Rust Checks / checks (pull_request) Failing after 4s

This commit is contained in:
Raphaël 2024-03-09 14:56:51 +01:00
parent 4b3da44d65
commit 11e4aef80d

View file

@ -2,13 +2,13 @@
use bevy::prelude::*; use bevy::prelude::*;
/// The default width of the main node /// The default width of the screen
const DEFAULT_WIDTH: f32 = 1280.; const DEFAULT_WIDTH: f32 = 1280.;
/// The default height of the main node /// The default height of the screen
const DEFAULT_HEIGHT: f32 = 720.; const DEFAULT_HEIGHT: f32 = 720.;
/// Calculates the ui_scale.0 depending on the size of the main node /// 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(mut ui_scale: ResMut<UiScale>, window: Query<&Window>) { pub fn change_scaling(mut ui_scale: ResMut<UiScale>, window: Query<&Window>) {
let window = window.single(); let window = window.single();