mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-17 20:10:21 +03:00
Added WIP v142 toolset support based on Source SDK 2013: Community Edition repo
This commit is contained in:
@@ -141,11 +141,11 @@ void CScratchPadGraph::UpdateTicksAndStuff( float flTime, float flValue )
|
||||
// Extend the lines attached to the time labels.
|
||||
for ( int i=0; i < m_nTimeLabelsDrawn; i++ )
|
||||
{
|
||||
float flTime = m_flTimeOrigin + m_nTimeLabelsDrawn * m_flTimeLabelEveryNSeconds;
|
||||
float flTimeLocl = m_flTimeOrigin + m_nTimeLabelsDrawn * m_flTimeLabelEveryNSeconds;
|
||||
|
||||
m_pPad->DrawLine(
|
||||
CSPVert((const Vector&) GetSamplePosition( flTime, m_flHighestValue )),
|
||||
CSPVert((const Vector&) GetSamplePosition( flTime, flValue ) )
|
||||
CSPVert((const Vector&) GetSamplePosition( flTimeLocl, m_flHighestValue )),
|
||||
CSPVert((const Vector&) GetSamplePosition( flTimeLocl, flValue ) )
|
||||
);
|
||||
}
|
||||
|
||||
@@ -158,21 +158,21 @@ void CScratchPadGraph::UpdateTicksAndStuff( float flTime, float flValue )
|
||||
{
|
||||
CTextParams params;
|
||||
|
||||
float flTime = m_flTimeOrigin + m_nTimeLabelsDrawn * m_flTimeLabelEveryNSeconds;
|
||||
float flTimeLocl = m_flTimeOrigin + m_nTimeLabelsDrawn * m_flTimeLabelEveryNSeconds;
|
||||
|
||||
params.m_bSolidBackground = true;
|
||||
params.m_vPos = GetSamplePosition( flTime, m_flValueOrigin-5 );
|
||||
params.m_vPos = GetSamplePosition( flTimeLocl, m_flValueOrigin-5 );
|
||||
params.m_bTwoSided = true;
|
||||
|
||||
char str[512];
|
||||
Q_snprintf( str, sizeof( str ), "time: %.2f", flTime );
|
||||
Q_snprintf( str, sizeof( str ), "time: %.2f", flTimeLocl );
|
||||
m_pPad->DrawText( str, params );
|
||||
|
||||
|
||||
// Now draw the vertical line for the value..
|
||||
m_pPad->DrawLine(
|
||||
CSPVert( (const Vector&)GetSamplePosition( flTime, m_flValueOrigin ) ),
|
||||
CSPVert( (const Vector&)GetSamplePosition( flTime, m_flHighestValue ) )
|
||||
CSPVert( (const Vector&)GetSamplePosition( flTimeLocl, m_flValueOrigin ) ),
|
||||
CSPVert( (const Vector&)GetSamplePosition( flTimeLocl, m_flHighestValue ) )
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user