本文整理汇总了C++中CFloatInput::Init方法的典型用法代码示例。如果您正苦于以下问题:C++ CFloatInput::Init方法的具体用法?C++ CFloatInput::Init怎么用?C++ CFloatInput::Init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFloatInput
的用法示例。
在下文中一共展示了CFloatInput::Init方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Init
bool CPupilProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
char const* pAnimatedTextureVarName = pKeyValues->GetString( "TextureVar" );
if( !pAnimatedTextureVarName )
return false;
bool foundVar;
m_pAnimatedTextureVar = pMaterial->FindVar( pAnimatedTextureVarName, &foundVar, false );
if( !foundVar )
return false;
char const* pAnimatedTextureFrameNumVarName = pKeyValues->GetString( "TextureFrameNumVar" );
if( !pAnimatedTextureFrameNumVarName )
return false;
m_pAnimatedTextureFrameNumVar = pMaterial->FindVar( pAnimatedTextureFrameNumVarName, &foundVar, false );
if( !foundVar )
return false;
m_pLightingVar = pMaterial->FindVar( "$lighting", &foundVar, false );
if( !foundVar )
{
Warning("Materials using the pupil proxy must have a field called $lighting which has a value of 0.5!\n" );
return false;
}
m_flPupilCloseRate.Init( pMaterial, pKeyValues, "PupilCloseRate", DEFAULT_CLOSE_PUPIL_RATE );
m_flPupilOpenRate.Init( pMaterial, pKeyValues, "PupilOpenRate", DEFAULT_OPEN_PUPIL_RATE );
return true;
}
示例2: Init
bool CWrapMinMaxProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
if (!CFunctionProxy::Init( pMaterial, pKeyValues ))
return false;
if (!m_flMinVal.Init( pMaterial, pKeyValues, "minVal", 0 ))
return false;
if (!m_flMaxVal.Init( pMaterial, pKeyValues, "maxVal", 1 ))
return false;
return true;
}
示例3: Init
bool CTextureScrollMaterialProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
char const* pScrollVarName = pKeyValues->GetString( "textureScrollVar" );
if( !pScrollVarName )
return false;
bool foundVar;
m_pTextureScrollVar = pMaterial->FindVar( pScrollVarName, &foundVar, false );
if( !foundVar )
return false;
m_TextureScrollRate.Init( pMaterial, pKeyValues, "textureScrollRate", 1.0f );
m_TextureScrollAngle.Init( pMaterial, pKeyValues, "textureScrollAngle", 0.0f );
m_TextureScale.Init( pMaterial, pKeyValues, "textureScale", 1.0f );
return true;
}
示例4: Init
bool CEntityRandomProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
if (!CResultProxy::Init( pMaterial, pKeyValues ))
return false;
if (!m_Factor.Init( pMaterial, pKeyValues, "scale", 1 ))
return false;
return true;
}
示例5: Init
bool CPlayerDamageTimeProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
if (!CResultProxy::Init( pMaterial, pKeyValues ))
return false;
if (!m_Factor.Init( pMaterial, pKeyValues, "scale", 1.0f ))
return false;
return true;
}
示例6: Init
bool CObjectPowerProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
if (!CResultProxy::Init( pMaterial, pKeyValues ))
return false;
if (!m_Factor.Init( pMaterial, pKeyValues, "scale", 1 ))
return false;
return true;
}
示例7: Init
bool CPlayerFortsTimerProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
if (!CResultProxy::Init( pMaterial, pKeyValues ))
return false;
if (!m_RangeMax.Init( pMaterial, pKeyValues, "rangeMax", 360 ))
return false;
return true;
}
示例8: Init
bool CMatrixRotateProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
// All are optional...
m_pAxisVar = NULL;
bool bFoundVar;
char const* pVarName = pKeyValues->GetString( "axisVar" );
if( pVarName && pVarName[0] )
{
m_pAxisVar = pMaterial->FindVar( pVarName, &bFoundVar, false );
}
if (!m_Angle.Init( pMaterial, pKeyValues, "angle", 0 ))
return false;
return CResultProxy::Init( pMaterial, pKeyValues );
}