summaryrefslogtreecommitdiff
path: root/tools/pet/particlesystempropertiescontainer.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /tools/pet/particlesystempropertiescontainer.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'tools/pet/particlesystempropertiescontainer.h')
-rw-r--r--tools/pet/particlesystempropertiescontainer.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/tools/pet/particlesystempropertiescontainer.h b/tools/pet/particlesystempropertiescontainer.h
new file mode 100644
index 0000000..26ac3f8
--- /dev/null
+++ b/tools/pet/particlesystempropertiescontainer.h
@@ -0,0 +1,45 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Dialog used to edit properties of a particle system definition
+//
+//===========================================================================//
+
+#ifndef PARTICLESYSTEMPROPERTIESCONTAINER_H
+#define PARTICLESYSTEMPROPERTIESCONTAINER_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "dme_controls/particlesystempropertiespanel.h"
+
+
+//-----------------------------------------------------------------------------
+// Forward declarations
+//-----------------------------------------------------------------------------
+class CPetDoc;
+
+
+//-----------------------------------------------------------------------------
+// Panel used to edit a particle system definition
+//-----------------------------------------------------------------------------
+class CParticleSystemPropertiesContainer : public CParticleSystemPropertiesPanel, public IParticleSystemPropertiesPanelQuery
+{
+ DECLARE_CLASS_SIMPLE( CParticleSystemPropertiesContainer, CParticleSystemPropertiesPanel );
+
+public:
+ CParticleSystemPropertiesContainer( CPetDoc *pDoc, vgui::Panel* pParent ); // standard constructor
+
+ // Inherited from IParticleSystemPropertiesPanelQuery
+ virtual void GetKnownParticleDefinitions( CUtlVector< CDmeParticleSystemDefinition* > &definitions );
+
+private:
+ MESSAGE_FUNC_PARAMS( OnParticleFunctionSelChanged, "ParticleFunctionSelChanged", params );
+
+ // For inheriting classes to get notified without having to listen to messages
+ virtual void OnParticleSystemModified();
+
+ CPetDoc *m_pDoc;
+};
+
+
+#endif // PARTICLESYSTEMPROPERTIESCONTAINER_H