// ------ begin of function ScenarioEditor::disp -------// // // display interface area // void ScenarioEditor::disp( int refreshFlag ) { if( edit_mode != SEDIT_MODE_NONE ) vga.active_buf->put_bitmap( INFO_X1, INFO_Y1, image_gameif.read("SCEN-ED") ); switch( edit_mode ) { case SEDIT_MODE_NONE: break; // case SEDIT_MODE_TERRAIN: // disp_terrain_main(refreshFlag); // break; case SEDIT_MODE_HUMAN: disp_human_main(refreshFlag); break; case SEDIT_MODE_MONSTER: disp_monster_main(refreshFlag); break; case SEDIT_MODE_MISC: disp_misc_main(refreshFlag); break; case SEDIT_MODE_EDIT: disp_edit_main(refreshFlag); break; // case SEDIT_MODE_DEFINE: // disp_define_main(refreshFlag); // break; case SEDIT_MODE_PLAYER: disp_players_main(refreshFlag); break; case SEDIT_MODE_DIPLOMACY: disp_diplomacy_main(refreshFlag); break; case SEDIT_MODE_VICTORY: disp_victory_main(refreshFlag); break; case SEDIT_MODE_HERO: disp_hero_main(refreshFlag); break; default: err_here(); } }
// ------ begin of function ScenarioEditor::disp -------// // // display interface area // void ScenarioEditor::disp( int refreshFlag ) { if( refreshFlag == INFO_REPAINT || edit_mode != last_edit_mode || edit_sub_menu_mode[edit_mode] != last_edit_sub_menu_mode ) { refreshFlag = INFO_REPAINT; last_edit_mode = edit_mode; last_edit_sub_menu_mode = edit_sub_menu_mode[edit_mode]; } #ifdef USE_FLIP char useBack = vga.use_back_buf; vga.use_back(); #endif if( edit_mode != SEDIT_MODE_NONE ) vga.active_buf->put_bitmap( INFO_X1, INFO_Y1, image_gameif.read("SCEN-ED") ); switch( edit_mode ) { case SEDIT_MODE_NONE: break; // case SEDIT_MODE_TERRAIN: // disp_terrain_main(refreshFlag); // break; case SEDIT_MODE_HUMAN: disp_human_main(refreshFlag); break; case SEDIT_MODE_MONSTER: disp_monster_main(refreshFlag); break; case SEDIT_MODE_MISC: disp_misc_main(refreshFlag); break; case SEDIT_MODE_EDIT: disp_edit_main(refreshFlag); break; // case SEDIT_MODE_DEFINE: // disp_define_main(refreshFlag); // break; case SEDIT_MODE_PLAYER: disp_players_main(refreshFlag); break; case SEDIT_MODE_DIPLOMACY: disp_diplomacy_main(refreshFlag); break; case SEDIT_MODE_VICTORY: disp_victory_main(refreshFlag); break; case SEDIT_MODE_HERO: disp_hero_main(refreshFlag); break; default: err_here(); } #ifdef USE_FLIP if( !useBack ) vga.use_front(); #endif }