Function poke_a_mango::ops::state::press_display_highscores [] [src]

pub fn press_display_highscores(s: &mut GameState)

Press the Display Highscores button in MainMenu, transforming it into LoadLeaderboard.

If the supplied argument is not MainMenu, it remains unchanged.

Examples

let mut state = GameState::MainMenu;
if display_highscores_button_pressed {
    state::press_display_highscores(&mut state);
    // Then probably load the leaderboard
}