summaryrefslogtreecommitdiff
path: root/game/client/dod/VGUI/dodbutton.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 /game/client/dod/VGUI/dodbutton.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/dod/VGUI/dodbutton.h')
-rw-r--r--game/client/dod/VGUI/dodbutton.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/game/client/dod/VGUI/dodbutton.h b/game/client/dod/VGUI/dodbutton.h
new file mode 100644
index 0000000..dd1870b
--- /dev/null
+++ b/game/client/dod/VGUI/dodbutton.h
@@ -0,0 +1,88 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef DOD_BUTTON_H
+#define DOD_BUTTON_H
+
+#include "mouseoverpanelbutton.h"
+#include "KeyValues.h"
+#include <vgui/IScheme.h>
+#include <vgui_controls/ProgressBar.h>
+#include <vgui_controls/EditablePanel.h>
+
+// a button with the bottom right corner cut out
+
+/*
+
+|``````````````|
+| PRESS ME! |
+|_____________/
+
+*/
+
+class CDODButtonShape
+{
+public:
+ CDODButtonShape()
+ {
+ m_iWhiteTexture = -1;
+ }
+
+ void DrawShapedBorder( int x, int y, int wide, int tall, Color fgcolor );
+ void DrawShapedBackground( int x, int y, int wide, int tall, Color bgcolor );
+
+protected:
+ int m_iWhiteTexture;
+};
+
+class CDODButton : public vgui::Button, public CDODButtonShape
+{
+private:
+ DECLARE_CLASS_SIMPLE( CDODButton, vgui::Button );
+
+public:
+ CDODButton(vgui::Panel *parent ) :
+ vgui::Button( parent, "DODButton", "" )
+ {
+ }
+
+protected:
+ virtual void PaintBackground();
+ virtual void PaintBorder();
+};
+
+class CDODClassInfoPanel : public vgui::EditablePanel
+{
+private:
+ DECLARE_CLASS_SIMPLE( CDODClassInfoPanel, vgui::EditablePanel );
+
+public:
+ CDODClassInfoPanel( vgui::Panel *parent, const char *panelName ) : vgui::EditablePanel( parent, panelName )
+ {
+ }
+
+ virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
+ virtual vgui::Panel *CreateControlByName( const char *controlName );
+};
+
+
+// Solid coloured progress bar with no border
+class CDODProgressBar : public vgui::ProgressBar
+{
+private:
+ DECLARE_CLASS_SIMPLE( CDODProgressBar, vgui::ProgressBar );
+
+public:
+ CDODProgressBar(vgui::Panel *parent) : vgui::ProgressBar( parent, "statBar" )
+ {
+ }
+
+protected:
+ virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
+};
+
+#endif //DOD_BUTTON_H \ No newline at end of file