void notify_dedicated_server_quit_button (ui_object *obj, void *arg) { if ((int) arg == BUTTON_STATE_DOWN) { set_ui_object_graphic (obj, (unsigned short int *) get_graphics_file_data (GRAPHICS_UI_APACHE_PLANNER_BACK_BUTTON_SELECTED)); set_ui_object_redraw (dedicated_server_screen, TRUE); } else if ((int) arg == BUTTON_STATE_UP) { set_ui_object_graphic (obj, (unsigned short int *) get_graphics_file_data (GRAPHICS_UI_APACHE_PLANNER_BACK_BUTTON_UNSELECTED)); //deinitialise_base_system (); //setup_campaign_over_screen (get_local_force_entity (get_global_gunship_side ()), CAMPAIGN_CRITERIA_RESULT_SERVER_REJECTED); start_game_exit (GAME_EXIT_APACHE_HAVOC, FALSE); } else { set_ui_object_graphic (obj, (unsigned short int *) get_graphics_file_data (GRAPHICS_UI_APACHE_PLANNER_BACK_BUTTON_UNSELECTED)); set_ui_object_redraw (dedicated_server_screen, TRUE); } //set_ui_object_graphic_type (obj, UI_OBJECT_ALPHA_GRAPHIC); }
void notify_medals_screen_exit_button (ui_object *obj, void *arg) { obj; arg; if ((int) arg == BUTTON_STATE_DOWN) { set_ui_object_graphic (obj, (unsigned short int *) get_graphics_file_data (GRAPHICS_UI_APACHE_PLANNER_BACK_BUTTON_SELECTED)); } else if ((int) arg == BUTTON_STATE_UP) { set_ui_object_graphic (obj, (unsigned short int *) get_graphics_file_data (GRAPHICS_UI_APACHE_PLANNER_BACK_BUTTON_UNSELECTED)); set_ui_object_redraw (player_medals_screen, TRUE); pop_ui_screen (SCREEN_POP_ACTUAL); } else { set_ui_object_graphic (obj, (unsigned short int *) get_graphics_file_data (GRAPHICS_UI_APACHE_PLANNER_BACK_BUTTON_UNSELECTED)); set_ui_object_redraw (player_medals_screen, TRUE); } set_ui_object_graphic_type (obj, UI_OBJECT_ALPHA_GRAPHIC); }
void notify_main_screen_exit_button (ui_object *obj, void *arg) { if ((int) arg == BUTTON_STATE_DOWN) { set_ui_object_graphic (obj, (unsigned short int *) get_graphics_file_data (GRAPHICS_UI_APACHE_PLANNER_BACK_BUTTON_SELECTED)); set_ui_object_redraw (main_screen, TRUE); } else if ((int) arg == BUTTON_STATE_UP) { set_ui_object_graphic (obj, (unsigned short int *) get_graphics_file_data (GRAPHICS_UI_APACHE_PLANNER_BACK_BUTTON_UNSELECTED)); push_ui_screen ( exit_screen ); } else { set_ui_object_graphic (obj, (unsigned short int *) get_graphics_file_data (GRAPHICS_UI_APACHE_PLANNER_BACK_BUTTON_UNSELECTED)); set_ui_object_redraw (main_screen, TRUE); } set_ui_object_graphic_type (obj, UI_OBJECT_ALPHA_GRAPHIC); }
void notify_combat_zone_screen (ui_object *obj, void *arg) { ASSERT ( get_valid_current_game_session () ); combat_zone_read_text (); if ( briefing_red_forces ) { set_ui_object_graphic ( combat_zone_screen, ( unsigned short int * ) get_graphics_file_data ( GRAPHICS_UI_HAVOC_CZONE_SCREEN ) ); } else { set_ui_object_graphic ( combat_zone_screen, ( unsigned short int * ) get_graphics_file_data ( GRAPHICS_UI_APACHE_CZONE_SCREEN ) ); } }