コード例 #1
0
void CBindPanel::UpdateKey()
{
	MEM_ALLOC_CREDIT();
	const char *key = engine->Key_LookupBindingEx( *m_szBind == '+' ? m_szBind + 1 : m_szBind, m_iSlot );
	if ( key )
	{
		Q_snprintf( m_szKey, sizeof( m_szKey ), key );
	}
	else
	{
		Q_snprintf( m_szKey, sizeof( m_szKey ), "?" );
	}
	if ( Q_stricmp( m_szKey, m_szLastKey ) )
	{
		Q_snprintf( m_szLastKey, sizeof( m_szLastKey ), "%s", m_szKey );
		UpdateBackgroundImage();
		InvalidateLayout();
		PostActionSignal( new KeyValues( "Command", "Command", "KeyChanged" ) );
	}

	m_fUpdateTime = gpGlobals->curtime + 0.75f;
}
コード例 #2
0
void CDialog_RendertargetSettings::CloseModal()
{
	PostActionSignal( new KeyValues( "UpdateList" ) );
	BaseClass::CloseModal();
}
コード例 #3
0
void CReplayBrowserBasePage::OnSelectionEnded()
{
	PostActionSignal( new KeyValues("SelectionUpdate", "open", 0 ) );
}