//-------------------------------------------------------------// void service() override { auto f = at_scenes_base().get_filer_state(); if(!f) { change_scene(scene_id::root_menu); } }
void draw_staff_roll( void ) { long sx, sw,sh; long x, y; long i; if( get_scene() == SCENE_N_ENDING_END ){ draw_the_end(); return; } sx = 0; sw = SCREEN_WIDTH; sh = SCREEN_HEIGHT; x = (sw - (staff_roll_interval_width * staff_roll_max_len)) / 2; x += sx; y = 0; for( i = 0; i < LOOP_MAX_1000; i++ ){ if( g_str_staff_roll[i] == NULL ) break; if( g_str_staff_roll[i][0] == '\0' ) break; y = (i * staff_roll_interval_height) - staff_roll_y; if( y < 0 ) continue; if( y >= sh ) continue; draw_staff_roll_line( x, y, g_str_staff_roll[i] ); } if( (y <= (sh / 2)) && (get_scene() != SCENE_N_ENDING_END) ){ if( !g_flg_gui ){ change_scene( SCENE_N_ENDING_END ); } } }