updated multiplayer lobby

This commit is contained in:
Jordà Polo 2004-10-30 15:36:52 +00:00
parent 30892869b6
commit d946a0fb17
2 changed files with 9 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View file

@ -66,7 +66,7 @@ RESULT enter(display& disp, config& game_data, const config& terrain_data, dialo
for(bool first_time = true; ; first_time = false) {
message_entry.set_focus(true);
const SDL_Rect dlg_rect = {xscale(disp,12),yscale(disp,46),xscale(disp,832),yscale(disp,518)};
const SDL_Rect dlg_rect = {xscale(disp,12),yscale(disp,42),xscale(disp,832),yscale(disp,518)};
//if the dialog is present, back it up before we repaint the entire screen
surface_restorer dlg_restorer;
@ -214,26 +214,26 @@ RESULT enter(display& disp, config& game_data, const config& terrain_data, dialo
gui::menu users_menu(disp,users);
// Set GUI locations
users_menu.set_loc(xscale(disp,856),yscale(disp,46));
users_menu.set_loc(xscale(disp,856),yscale(disp,42));
users_menu.set_width(xscale(disp,156));
users_menu.set_max_width(xscale(disp,156));
update_rect(xscale(disp,856),yscale(disp,46),xscale(disp,156),yscale(disp,708));
update_rect(xscale(disp,856),yscale(disp,42),xscale(disp,156),yscale(disp,708));
if(dlg != NULL) {
if(first_time) {
dlg->set_area(dlg_rect);
}
} else {
games_menu.set_loc(xscale(disp,12),yscale(disp,46));
games_menu.set_loc(xscale(disp,12),yscale(disp,42));
games_menu.set_width(xscale(disp,832));
}
update_rect(xscale(disp,12),yscale(disp,46),xscale(disp,832),yscale(disp,518));
join_game.set_location(xscale(disp,12),yscale(disp,4));
observe_game.set_location(join_game.location().x + join_game.location().w + 5,yscale(disp,4));
new_game.set_location(observe_game.location().x + observe_game.location().w + 5,yscale(disp,4));
quit_game.set_location(new_game.location().x + new_game.location().w + 5,yscale(disp,4));
update_rect(xscale(disp,12),yscale(disp,42),xscale(disp,832),yscale(disp,518));
join_game.set_location(xscale(disp,12),yscale(disp,7));
observe_game.set_location(join_game.location().x + join_game.location().w + 5,yscale(disp,7));
new_game.set_location(observe_game.location().x + observe_game.location().w + 5,yscale(disp,7));
quit_game.set_location(new_game.location().x + new_game.location().w + 5,yscale(disp,7));
message_entry.set_location(xscale(disp,14),yscale(disp,732));
message_entry.set_width(xscale(disp,830));