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§
Sourcefn spawn_credits(&mut self, config: CreditsConfig) -> Entity
fn spawn_credits(&mut self, config: CreditsConfig) -> Entity
Add a credits screen with the given configuration
Sourcefn spawn_simple_credits(&mut self, title: impl Into<String>) -> Entity
fn spawn_simple_credits(&mut self, title: impl Into<String>) -> Entity
Add a simple credits screen with just a title
Sourcefn spawn_game_credits(&mut self, title: impl Into<String>) -> Entity
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.