Exemple #1
0
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);
}
Exemple #2
0
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);
}
Exemple #3
0
static void set_area_ui_object_graphic (ui_object *obj, unsigned short int *graphic)
{
	
	area_ui_object
		*area;

	area = (area_ui_object *) obj->data;

	area->graphic = graphic;

	if (graphic)
	{

		set_ui_object_graphic_type (obj, UI_OBJECT_GRAPHIC);
	}
	else
	{

		set_ui_object_graphic_type (obj, UI_OBJECT_NO_GRAPHIC);
	}
}
Exemple #4
0
static void set_area_ui_object_zoomable_palette_graphic (ui_object *obj, struct ZOOMABLE_GRAPHIC *graphic)
{
	
	area_ui_object
		*area;

	area = (area_ui_object *) obj->data;

	area->zoomable_palette_graphic = graphic;

	if (graphic)
	{

		set_ui_object_graphic_type (obj, UI_OBJECT_ZOOMABLE_PALETTE_GRAPHIC);
	}
	else
	{

		set_ui_object_graphic_type (obj, UI_OBJECT_NO_GRAPHIC);
	}
}
Exemple #5
0
static void set_area_ui_object_memory_graphic (ui_object *obj, struct SCREEN *memory_graphic)
{
	
	area_ui_object
		*area;

	area = (area_ui_object *) obj->data;

	area->memory_graphic = memory_graphic;

	if (memory_graphic)
	{

		set_ui_object_graphic_type (obj, UI_OBJECT_MEMORY_GRAPHIC);
	}
	else
	{

		set_ui_object_graphic_type (obj, UI_OBJECT_NO_GRAPHIC);
	}
}
Exemple #6
0
static void set_area_ui_object_selected_texture_graphic (ui_object *obj, struct TEXTURE_GRAPHIC *graphic)
{
	
	area_ui_object
		*area;

	area = (area_ui_object *) obj->data;

	area->selected_texture_graphic = graphic;

	if (graphic)
	{

		set_ui_object_graphic_type (obj, UI_OBJECT_TEXTURE_GRAPHIC);
	}
	else
	{

		set_ui_object_graphic_type (obj, UI_OBJECT_NO_GRAPHIC);
	}
}
Exemple #7
0
void notify_select_player_exit_button (ui_object *obj, void *arg)
{
	if ((int) arg == BUTTON_STATE_UP)
	{
		set_ui_object_redraw (credits_screen, TRUE);

		pop_ui_screen (SCREEN_POP_ACTUAL);
	}
	else 
	{
		set_ui_object_redraw (credits_screen, TRUE);
	}

	set_ui_object_graphic_type (obj, UI_OBJECT_ALPHA_GRAPHIC);
}