generated from tipragot/rust
Add a responsive scaling for ui #73
Labels
No labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Fix
Kind/Security
Kind/Testing
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: fish-cannard/border-wars#73
Loading…
Reference in a new issue
No description provided.
Delete branch "change-scaling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use constants and put it in a specific module for ui
@ -20,2 +20,4 @@
Game,
}
/// Calculates the ui_scale.0 depending on the size of the main node
What is the main node?
New commits pushed, approval review dismissed automatically according to repository settings
Add a responsive scaling that calculates the ui_scale depending on the size of the main nodeto Add a responsive scaling that calculates the ui_scale depending on the size of the default screen size@ -0,0 +6,4 @@
const DEFAULT_WIDTH: f32 = 1280.;
/// The default height of the screen
const DEFAULT_HEIGHT: f32 = 720.;
You should put these constants in bevy's resources instead.
this can be changed in future settings.
resolves the comment above
I aggre with @CoCo_Sol
Add a responsive scaling that calculates the ui_scale depending on the size of the default screen sizeto Add a responsive scaling for ui