		for (int i = 0; i < nLen1; ++i)
			g_pObjectManager->m_szAccountName[i] += i;

		for (int i = 0; i < nLen1; ++i)
			g_pObjectManager->m_szAccountPass[i] += i;

		if (AccountConfig_ShouldSave())
			AccountConfig_SetAccount(pEditID->GetText(), pEditPassword->GetText());

		g_pSocketManager->SendOneMessage(reinterpret_cast<char*>(&stAccountLogin), sizeof(MSG_AccountLogin));
		LastSendMsgTime = g_pTimerManager->GetServerTime();
	}
	break;
	case B_CREATE_ID:
		m_pMessageBox->SetMessage(g_pMessageStringTable[9], B_CREATE_ID, g_pMessageStringTable[10]);
		m_pMessageBox->SetVisible(1);
		break;
	case B_QUIT:
		m_pMessageBox->SetMessage(g_pMessageStringTable[11], B_QUIT, nullptr);
		m_pMessageBox->SetVisible(1);
		break;
	case B_ACCOUNT_PREV:
		if (AccountConfig_SelectPrev())
			ApplySelectedAccountToFields();
		break;
	case B_ACCOUNT_NEXT:
		if (AccountConfig_SelectNext())
			ApplySelectedAccountToFields();
		break;
	case B_ACCOUNT_SLOT0:
	case B_ACCOUNT_SLOT1:
	case B_ACCOUNT_SLOT2:
	case B_ACCOUNT_SLOT3:
	case B_ACCOUNT_SLOT4:
	{
		const int slot = static_cast<int>(idwControlID - B_ACCOUNT_SLOT0);
		if (AccountConfig_SelectSaved(slot))
			ApplySelectedAccountToFields();
	}
	break;
	}

	if (idwControlID == B_SERVER_SEL_EXIT)
	{
		m_pMessageBox->SetMessage(g_pMessageStringTable[22], B_QUIT, nullptr);
		m_pMessageBox->SetVisible(1);
	}
	return 1;
}

int TMSelectServerScene::OnCharEvent(char iCharCode, int lParam)
{
	auto pEditID = m_pEditID;
	auto pEditPassword = m_pEditPW;

	// Atalhos do seletor: [ ] ciclam contas (só se o foco não estiver digitando ID/senha).
	if (m_cLogin == 1 && m_pLoginPanel && m_pLoginPanel->IsVisible())
	{
		const bool typing = (pEditID && pEditID->IsFocused()) || (pEditPassword && pEditPassword->IsFocused());
		if (!typing)
		{
			if (iCharCode == '[' || iCharCode == '{')
			{
				if (AccountConfig_SelectPrev())
					ApplySelectedAccountToFields();
				return 1;
			}
			if (iCharCode == ']' || iCharCode == '}')
			{
				if (AccountConfig_SelectNext())
					ApplySelectedAccountToFields();
				return 1;
			}
		}
	}

	switch (iCharCode)
	{
	case VK_TAB:

		//// teste debug centraliza??o
