NETPLAY:Changed it so if your set to ready the disconnect button is greyed out if your host the change game button is also greyed out.

OTHER:Some other misc ///////////'s clean up.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4207 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
death2droid
2009-09-06 01:40:44 +00:00
parent eb9f6cd7a1
commit 8b2d991be4
4 changed files with 18 additions and 32 deletions

View File

@ -381,9 +381,12 @@ void NetPlay::OnGUIEvent(wxCommandEvent& event)
buffer = ">> "+m_nick+" is now Unready !\n";
m_ready = !m_ready;
m_Disconnect->Enable(!(m_ready));
if (m_isHosting == 1)
{
m_ChangeGame->Enable(!(m_ready));
if (m_numClients > 0)
{
int buffer_size = (int)buffer.size();
@ -460,8 +463,7 @@ void NetPlay::OnGUIEvent(wxCommandEvent& event)
// TODO : there seems to be a random bug here that i can't reproduce... looked like a loop bug :/
wxString chat_str = wxString::Format(wxT("> %s : %s\n"), wxString(m_nick.c_str(), wxConvUTF8).c_str() , m_Chat->GetValue().c_str() );
int chat_size = (int)chat_str.size();
int nick_size = m_nick.size();
if(chat_size-nick_size-6 > 0)
if(chat_size-m_nick.size()-6 > 0)
{
m_Chat->Clear();