예제 #1
0
static void window_title_editor_resize(rct_window * w)
{
    if (w->selected_tab == WINDOW_TITLE_EDITOR_TAB_PRESETS)
        window_set_resize(w, WW, WH, 500, WH2);
    else
        window_set_resize(w, WW, WH, 500, 580);
}
예제 #2
0
static void window_text_input_invalidate(rct_window *w)
{
	// Work out the existing size of the window
	char wrapped_string[512];
	safe_strcpy(wrapped_string, text_input, 512);

	int no_lines = 0, font_height = 0;

	// String length needs to add 12 either side of box
	// +13 for cursor when max length.
	gfx_wrap_string(wrapped_string, WW - (24 + 13), &no_lines, &font_height);

	int height = no_lines * 10 + WH;

	// Change window size if required.
	if (height != w->height) {
		window_invalidate(w);
		window_set_resize(w, WW, height, WW, height);
	}

	window_text_input_widgets[WIDX_OKAY].top = height - 21;
	window_text_input_widgets[WIDX_OKAY].bottom = height - 10;

	window_text_input_widgets[WIDX_CANCEL].top = height - 21;
	window_text_input_widgets[WIDX_CANCEL].bottom = height - 10;

	window_text_input_widgets[WIDX_BACKGROUND].bottom = height - 1;
}
예제 #3
0
static void window_multiplayer_groups_resize(rct_window *w)
{
	window_set_resize(w, 320, 200, 320, 500);

	w->no_list_items = network_get_num_actions();
	w->list_item_positions[0] = 0;

	w->selected_list_item = -1;
	window_invalidate(w);
}
예제 #4
0
static void window_multiplayer_players_resize(rct_window *w)
{
	window_set_resize(w, 420, 124, 500, 450);

	w->no_list_items = network_get_num_players();
	w->list_item_positions[0] = 0;

	w->selected_list_item = -1;
	window_invalidate(w);
}
예제 #5
0
파일: Player.cpp 프로젝트: Wirlie/OpenRCT2
void window_player_overview_resize(rct_window *w)
{
    window_set_resize(w, 240, 170, 500, 300);
}
예제 #6
0
static void window_multiplayer_information_resize(rct_window *w)
{
	rct_xy16 size = window_multiplayer_information_get_size();
	window_set_resize(w, size.x, size.y, size.x, size.y);
}
/**
 *
 *  rct2: 0x00671287
 */
static void window_editor_scenario_options_park_resize(rct_window *w)
{
	window_set_resize(w, 400, 183, 400, 183);
}
/**
 *
 *  rct2: 0x00670C59
 */
static void window_editor_scenario_options_guests_resize(rct_window *w)
{
	window_set_resize(w, 380, 149, 380, 149);
}
/**
 *
 *  rct2: 0x0067077A
 */
static void window_editor_scenario_options_financial_resize(rct_window *w)
{
	window_set_resize(w, 280, 149, 280, 149);
}
예제 #10
0
void window_player_statistics_resize(rct_window *w)
{
	window_set_resize(w, 210, 80, 210, 80);
}