[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src multiplayer_lobby.cpp
From: |
Jon Daniel |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src multiplayer_lobby.cpp |
Date: |
Mon, 01 Aug 2005 19:19:31 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Jon Daniel <address@hidden> 05/08/01 23:19:31
Modified files:
src : multiplayer_lobby.cpp
Log message:
* hide buttons instead of disabling and hiding them because the
disabled buttons were visible
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/multiplayer_lobby.cpp.diff?tr1=1.81&tr2=1.82&r1=text&r2=text
Patches:
Index: wesnoth/src/multiplayer_lobby.cpp
diff -u wesnoth/src/multiplayer_lobby.cpp:1.81
wesnoth/src/multiplayer_lobby.cpp:1.82
--- wesnoth/src/multiplayer_lobby.cpp:1.81 Mon Aug 1 21:33:19 2005
+++ wesnoth/src/multiplayer_lobby.cpp Mon Aug 1 23:19:31 2005
@@ -1,4 +1,4 @@
-/* $Id: multiplayer_lobby.cpp,v 1.81 2005/08/01 21:33:19 j_daniel Exp $ */
+/* $Id: multiplayer_lobby.cpp,v 1.82 2005/08/01 23:19:31 j_daniel Exp $ */
/*
Copyright (C)
Part of the Battle for Wesnoth Project http://www.wesnoth.org
@@ -221,13 +221,11 @@
if(games_menu_.selection() >= 0 && games_menu_.selection() <
int(game_vacant_slots_.size())) {
wassert(game_vacant_slots_.size() == game_observers_.size());
- observe_game_.enable(true);
- join_game_.enable(true);
join_game_.hide(!game_vacant_slots_[games_menu_.selection()]);
observe_game_.hide(!game_observers_[games_menu_.selection()]);
} else {
- observe_game_.enable(false);
- join_game_.enable(false);
+ join_game_.hide();
+ observe_game_.hide();
}
}
@@ -243,6 +241,9 @@
current_game_ = selection;
join_game_.hide(!game_vacant_slots_[selection]);
observe_game_.hide(!game_observers_[selection]);
+ } else {
+ join_game_.hide();
+ observe_game_.hide();
}
const bool games_available = game_vacant_slots_.empty() == false;