void ASW_MessageLog_f(void)
{
	// find the asw player
	C_ASW_Player *pPlayer = C_ASW_Player::GetLocalASWPlayer();
	if (pPlayer)
		pPlayer->ShowMessageLog();
}
void CASW_VGUI_Info_Message::OnCommand(char const* command)
{
	if (!Q_strcmp(command, "OkayButton"))
	{
		CloseMessage();
		return;
	}
	else if (!Q_strcmp(command, "MessageLog"))
	{
		C_ASW_Player *pPlayer = C_ASW_Player::GetLocalASWPlayer();
		if (pPlayer)
			pPlayer->ShowMessageLog();
		return;
	}
	BaseClass::OnCommand(command);
}
bool CASW_VGUI_Info_Message::MouseClick(int x, int y, bool bRightClick, bool bDown)
{
	if (bDown)
		return true;

	if (m_pOkayButton->IsCursorOver())
	{
		CloseMessage();
	}
	else if (m_pLogButton && m_pLogButton->IsCursorOver())
	{
		C_ASW_Player *pPlayer = C_ASW_Player::GetLocalASWPlayer();
		if (pPlayer)
			pPlayer->ShowMessageLog();
	}
	
	return true;	// always swallow clicks in our window
}