Trait CreditsScreenExt

Source
pub trait CreditsScreenExt {
    // Required methods
    fn spawn_credits(&mut self, config: CreditsConfig) -> Entity;
    fn spawn_simple_credits(&mut self, title: impl Into<String>) -> Entity;
    fn spawn_game_credits(&mut self, title: impl Into<String>) -> Entity;
}
Expand description

Helper trait for easy credits screen setup

Required Methods§

Source

fn spawn_credits(&mut self, config: CreditsConfig) -> Entity

Add a credits screen with the given configuration

Source

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

Add a simple credits screen with just a title

Source

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

Add a game-focused credits 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 CreditsScreenExt for Commands<'_, '_>

Source§

fn spawn_credits(&mut self, config: CreditsConfig) -> Entity

Source§

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

Source§

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

Implementors§