Ejemplo n.º 1
0
void ASW_MessageLog_f(void)
{
	// find the asw player
	C_ASW_Player *pPlayer = C_ASW_Player::GetLocalASWPlayer();
	if (pPlayer)
		pPlayer->ShowMessageLog();
}
Ejemplo n.º 2
0
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);
}
Ejemplo n.º 3
0
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
}