aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/matsys_controls
diff options
context:
space:
mode:
authorJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
committerJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
commit0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch)
treec831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/public/matsys_controls
parentUpdated the SDK with the latest code from the TF and HL2 branches. (diff)
downloadsource-sdk-2013-master.tar.xz
source-sdk-2013-master.zip
Updated the SDK with the latest code from the TF and HL2 branches.HEADmaster
Diffstat (limited to 'mp/src/public/matsys_controls')
-rw-r--r--mp/src/public/matsys_controls/QCGenerator.h6
-rw-r--r--mp/src/public/matsys_controls/manipulator.h1
-rw-r--r--mp/src/public/matsys_controls/mdlpanel.h3
-rw-r--r--mp/src/public/matsys_controls/potterywheelpanel.h3
4 files changed, 9 insertions, 4 deletions
diff --git a/mp/src/public/matsys_controls/QCGenerator.h b/mp/src/public/matsys_controls/QCGenerator.h
index d9978f88..d6b69d21 100644
--- a/mp/src/public/matsys_controls/QCGenerator.h
+++ b/mp/src/public/matsys_controls/QCGenerator.h
@@ -79,9 +79,9 @@ struct QCInfo
{
pQCGenerator = pPanel;
- Q_strcpy( pszSMDPath, "" );
- Q_strcpy( pszCollisionPath, "" );
- Q_strcpy( pszSurfaceProperty, "default" );
+ V_strcpy_safe( pszSMDPath, "" );
+ V_strcpy_safe( pszCollisionPath, "" );
+ V_strcpy_safe( pszSurfaceProperty, "default" );
bStaticProp = false;
bMostlyOpaque = false;
bDisableCollision = false;
diff --git a/mp/src/public/matsys_controls/manipulator.h b/mp/src/public/matsys_controls/manipulator.h
index a08426ef..f030509a 100644
--- a/mp/src/public/matsys_controls/manipulator.h
+++ b/mp/src/public/matsys_controls/manipulator.h
@@ -19,6 +19,7 @@
class IManipulator
{
public:
+ virtual ~IManipulator(){}
virtual void OnBeginManipulation( void ) = 0;
virtual void OnAcceptManipulation( void ) = 0;
virtual void OnCancelManipulation( void ) = 0;
diff --git a/mp/src/public/matsys_controls/mdlpanel.h b/mp/src/public/matsys_controls/mdlpanel.h
index 070fb973..60068567 100644
--- a/mp/src/public/matsys_controls/mdlpanel.h
+++ b/mp/src/public/matsys_controls/mdlpanel.h
@@ -64,7 +64,7 @@ public:
void SetLOD( int nLOD );
// Sets the current sequence
- void SetSequence( int nSequence );
+ void SetSequence( int nSequence, bool bResetSequence = false );
// Set the pose parameters
void SetPoseParameters( const float *pPoseParameters, int nCount );
@@ -113,6 +113,7 @@ protected:
CMDL m_MDL;
matrix3x4_t m_MDLToWorld;
bool m_bDisabled;
+ float m_flCycleStartTime;
};
MDLData_t m_RootMDL;
diff --git a/mp/src/public/matsys_controls/potterywheelpanel.h b/mp/src/public/matsys_controls/potterywheelpanel.h
index 47125a3f..5da55e48 100644
--- a/mp/src/public/matsys_controls/potterywheelpanel.h
+++ b/mp/src/public/matsys_controls/potterywheelpanel.h
@@ -45,6 +45,7 @@ public:
virtual ~CPotteryWheelPanel();
// Overriden methods of vgui::Panel
+ virtual void ApplySettings( KeyValues *inResourceData );
virtual void Init( int x, int y, int wide, int tall );
virtual void Paint();
@@ -117,6 +118,7 @@ protected:
bool WarpMouse( int &x, int &y );
IManipulator *m_pCurrentManip;
int m_nManipStartX, m_nManipStartY;
+ int m_nClickStartX, m_nClickStartY;
// Re-apply the manipulators on a new model
void ApplyManipulation();
@@ -136,6 +138,7 @@ protected:
private:
void CreateDefaultLights();
void DestroyLights();
+ void ParseLightsFromKV( KeyValues *pLightsKV );
CMaterialReference m_LightProbeBackground;
CMaterialReference m_LightProbeHDRBackground;