summaryrefslogtreecommitdiff
path: root/engine/cl_demoactioneditors.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 /engine/cl_demoactioneditors.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'engine/cl_demoactioneditors.h')
-rw-r--r--engine/cl_demoactioneditors.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/engine/cl_demoactioneditors.h b/engine/cl_demoactioneditors.h
new file mode 100644
index 0000000..8d0486f
--- /dev/null
+++ b/engine/cl_demoactioneditors.h
@@ -0,0 +1,75 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CL_DEMOACTIONEDITORS_H
+#define CL_DEMOACTIONEDITORS_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui_controls/Frame.h>
+
+class CDemoEditorPanel;
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+class CBaseActionEditDialog : public vgui::Frame
+{
+ DECLARE_CLASS_SIMPLE( CBaseActionEditDialog, vgui::Frame );
+
+public:
+ CBaseActionEditDialog( CDemoEditorPanel *parent, CBaseDemoAction *action, bool newaction );
+
+ virtual void Init( void );
+
+ virtual void OnClose();
+ virtual void OnCancel();
+
+ virtual void OnCommand( char const *commands );
+
+ // Returns true if changes were effected
+ virtual bool OnSaveChanges( void );
+
+private:
+ vgui::Button *m_pOK;
+ vgui::Button *m_pCancel;
+
+ vgui::TextEntry *m_pActionName;
+
+ vgui::ComboBox *m_pStartType;
+ vgui::TextEntry *m_pStart;
+
+protected:
+ CDemoEditorPanel *m_pEditor;
+ CBaseDemoAction *m_pAction;
+ bool m_bNewAction;
+};
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+class CBaseActionWithTargetDialog : public CBaseActionEditDialog
+{
+ DECLARE_CLASS_SIMPLE( CBaseActionWithTargetDialog, CBaseActionEditDialog );
+
+public:
+ CBaseActionWithTargetDialog( CDemoEditorPanel *parent, CBaseDemoAction *action, bool newaction );
+
+ // Also a pure baseclass
+ virtual void Init( void );
+
+ // Returns true if changes were effected
+ virtual bool OnSaveChanges( void );
+
+private:
+
+ vgui::TextEntry *m_pActionTarget;
+};
+
+
+#endif // CL_DEMOACTIONEDITORS_H