Trait SettingsScreenExt

Source
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§

Source

fn spawn_settings_screen(&mut self, config: SettingsScreenConfig) -> Entity

Add a settings screen with the given configuration

Source

fn spawn_simple_settings_screen(&mut self, title: impl Into<String>) -> Entity

Add a simple settings screen with basic audio settings

Source

fn spawn_component_settings_screen( &mut self, title: impl Into<String>, ) -> Entity

Spawn a component-based settings screen that uses Setting components

Source

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.

Implementations on Foreign Types§

Source§

impl SettingsScreenExt for Commands<'_, '_>

Source§

fn spawn_settings_screen(&mut self, config: SettingsScreenConfig) -> Entity

Source§

fn spawn_simple_settings_screen(&mut self, title: impl Into<String>) -> Entity

Source§

fn spawn_component_settings_screen( &mut self, title: impl Into<String>, ) -> Entity

Source§

fn spawn_input_configuration(&mut self, max_players: u32) -> Entity

Implementors§