pub type SceneSwitcher<SR, SN> = fn(style: &UiStyle, scenes: &mut Vec<Box<dyn Scene<SR, SN>>>, new_scene: SN);
Expand description

Creates new scenes.

Important

This method must add the new scene to scenes

Arguments

  • style - Style data for [UiElement]s, can be ignored if UI is custom
  • scenes - The current scene stack
  • new_scene - The name and data for a new scene