Exemplo n.º 1
0
static void reset_cm_regions(void)
{
	cm_remove_regions(game_root_win);
	cm_remove_regions(map_root_win);
	cm_remove_regions(console_root_win);
	cm_add_region(cm_hud_id, game_root_win, window_width-hud_x, 0, hud_x, window_height);
	cm_add_region(cm_hud_id, map_root_win, window_width-hud_x, 0, hud_x, window_height);
	cm_add_region(cm_hud_id, console_root_win, window_width-hud_x, 0, hud_x, window_height);
}
Exemplo n.º 2
0
// clear the context menu regions for all stats bars and set up again
static void reset_statsbar_exp_cm_regions(void)
{
	size_t i;
	cm_remove_regions(stats_bar_win);
	for (i=0; i<max_disp_stats; i++)
		if (watch_this_stats[i] > 0)
			cm_add_region(cm_id, stats_bar_win, exp_bar_start_x+i*(stats_bar_len+exp_bar_text_len), exp_bar_start_y, stats_bar_len, get_player_statsbar_active_height());
}
Exemplo n.º 3
0
	//	The size available to the names list has changed so resize/move elements.
	//
	void List_Window::resized_name_panel(window_info *win)
	{
		calc_num_show_names();
		cm_remove_regions(win_id);
		cm_add_region(cm_names_menu, win_id, 0, get_size_y()-get_names_size_y(), get_size_y(), get_names_size_y());
		widget_resize(win_id, names_scroll_id, ELW_BOX_SIZE, get_names_size_y()-ELW_BOX_SIZE);
		widget_move(win_id, names_scroll_id, win->len_x-ELW_BOX_SIZE, get_grid_size()*num_grid_rows);
		make_active_visable();
		update_scroll_len();
	}