pub trait SettingsScreenExt {
// Required methods
fn spawn_settings_screen(&mut self, config: SettingsScreenConfig) -> Entity;
fn spawn_simple_settings_screen(
&mut self,
title: impl Into<String>,
) -> Entity;
fn spawn_component_settings_screen(
&mut self,
title: impl Into<String>,
) -> Entity;
fn spawn_input_configuration(&mut self, max_players: u32) -> Entity;
}
Expand description
Helper trait for easy settings screen setup
Required Methods§
Sourcefn spawn_settings_screen(&mut self, config: SettingsScreenConfig) -> Entity
fn spawn_settings_screen(&mut self, config: SettingsScreenConfig) -> Entity
Add a settings screen with the given configuration
Sourcefn spawn_simple_settings_screen(&mut self, title: impl Into<String>) -> Entity
fn spawn_simple_settings_screen(&mut self, title: impl Into<String>) -> Entity
Add a simple settings screen with basic audio settings
Sourcefn spawn_component_settings_screen(
&mut self,
title: impl Into<String>,
) -> Entity
fn spawn_component_settings_screen( &mut self, title: impl Into<String>, ) -> Entity
Spawn a component-based settings screen that uses Setting components
Sourcefn spawn_input_configuration(&mut self, max_players: u32) -> Entity
fn spawn_input_configuration(&mut self, max_players: u32) -> Entity
Spawn input configuration screen
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.