// Changes to the next menu
// Wraps if at the end
Changes to the next menu
Wraps if at the end
Changes to the next menu Wraps if at the end
pub fn cycle_menu() {
    let mlength = g_get_menus_length();
    let menu = g_get_current_menu();
    if menu >= (mlength - 1) {
        g_set_current_menu(0)
    } else {
        g_set_current_menu(menu + 1)
    }
    refresh_page();
}
pub fn cycle_menu ( ) { let mlength = g_get_menus_length ( ) ; let menu = g_get_current_menu ( ) ; if menu >= ( mlength - 1 ) { g_set_current_menu ( 0 ) } else { g_set_current_menu ( menu + 1 ) } refresh_page ( ) ; }
Changes to the next menu
Wraps if at the end
Changes to the next menu Wraps if at the end