summaryrefslogtreecommitdiff
path: root/gameui/CommentaryDialog.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 /gameui/CommentaryDialog.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'gameui/CommentaryDialog.h')
-rw-r--r--gameui/CommentaryDialog.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/gameui/CommentaryDialog.h b/gameui/CommentaryDialog.h
new file mode 100644
index 0000000..c1acae4
--- /dev/null
+++ b/gameui/CommentaryDialog.h
@@ -0,0 +1,55 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef COMMENTARYDIALOG_H
+#define COMMENTARYDIALOG_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "vgui_controls/Frame.h"
+#include "utlvector.h"
+#include <vgui/KeyCode.h>
+
+class CGameChapterPanel;
+class CSkillSelectionDialog;
+
+//-----------------------------------------------------------------------------
+// Purpose: Handles selection of commentary mode on/off
+//-----------------------------------------------------------------------------
+class CCommentaryDialog : public vgui::Frame
+{
+ DECLARE_CLASS_SIMPLE( CCommentaryDialog, vgui::Frame );
+
+public:
+ CCommentaryDialog(vgui::Panel *parent);
+ ~CCommentaryDialog();
+
+ virtual void OnClose( void );
+ virtual void OnCommand( const char *command );
+ virtual void OnKeyCodePressed(vgui::KeyCode code);
+};
+
+//-----------------------------------------------------------------------------
+// Purpose: Small dialog to remind players on method of changing commentary mode
+//-----------------------------------------------------------------------------
+class CPostCommentaryDialog : public vgui::Frame
+{
+ DECLARE_CLASS_SIMPLE( CPostCommentaryDialog, vgui::Frame );
+
+public:
+ CPostCommentaryDialog(vgui::Panel *parent);
+ ~CPostCommentaryDialog();
+
+ virtual void OnFinishedClose( void );
+ virtual void OnKeyCodeTyped(vgui::KeyCode code);
+ virtual void OnKeyCodePressed(vgui::KeyCode code);
+
+private:
+ bool m_bResetPaintRestrict;
+};
+
+#endif // COMMENTARYDIALOG_H