	{
		m_pInputGoldPanel->SetVisible(0);
	}
	else if (m_pMsgPanel && m_pMsgPanel->IsVisible() == 1)//esc
	{
		m_pMsgPanel->SetVisible(0);
		m_pControlContainer->SetFocusedControl(0);
	}
	else if (m_pHelpPanel && m_pHelpPanel->IsVisible() == 1)
	{
		m_pHelpPanel->SetVisible(0);
		m_pHelpBtn->SetSelected(0);

		if (g_pSoundManager)
		{
			auto pSoundData = g_pSoundManager->GetSoundData(51);

			if (pSoundData)
				pSoundData->Play(0, 0);
		}
	}
	else if (m_pServerPanel && m_pServerPanel->IsVisible() == 1)
	{
		m_pServerPanel->SetVisible(0);
	}
	else if (m_pPotalPanel && m_pPotalPanel->IsVisible() == 1)
	{
		m_pPotalPanel->SetVisible(0);
	}
	else if (m_pMessageBox && m_pMessageBox->IsVisible() == 1)
	{
		m_pMessageBox->SetVisible(0);
	}
	else if (m_pSystemPanel && !m_pSystemPanel->IsVisible())
	{
		m_pSystemPanel->SetVisible(1);
	}
	else if (m_pSystemPanel && m_pSystemPanel->IsVisible() == 1)
	{
		m_pSystemPanel->SetVisible(0);
	}
}

void TMFieldScene::FindAuto()
{
	unsigned int dwServerTime = g_pTimerManager->GetServerTime();

	if (dwServerTime - LastSendTime > 250000)
	{
		MSG_STANDARD stStandard{};
		stStandard.ID = g_pObjectManager->m_dwCharID;
		stStandard.Type = MSG_Ping_Opcode;
		SendOneMessage((char*)&stStandard, sizeof(stStandard));
	}

	// TODO: china stuffs here, not needed for now
}

int TMFieldScene::FindProcess(unsigned int processID)
{
	return 0;
