summaryrefslogtreecommitdiff
path: root/game/client/cstrike/VGUI/cstrikebuysubmenu.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/cstrike/VGUI/cstrikebuysubmenu.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/cstrike/VGUI/cstrikebuysubmenu.h')
-rw-r--r--game/client/cstrike/VGUI/cstrikebuysubmenu.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/game/client/cstrike/VGUI/cstrikebuysubmenu.h b/game/client/cstrike/VGUI/cstrikebuysubmenu.h
new file mode 100644
index 0000000..ccd0edd
--- /dev/null
+++ b/game/client/cstrike/VGUI/cstrikebuysubmenu.h
@@ -0,0 +1,56 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CSBUYSUBMENU_H
+#define CSBUYSUBMENU_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <buysubmenu.h>
+#include <buymouseoverpanelbutton.h>
+
+using namespace vgui;
+
+class CCSBuySubMenu : public CBuySubMenu
+{
+private:
+ DECLARE_CLASS_SIMPLE(CCSBuySubMenu, CBuySubMenu);
+
+public:
+ CCSBuySubMenu (vgui::Panel *parent,const char *name = "BuySubMenu") : CBuySubMenu( parent, name )
+ {
+ m_backgroundLayoutFinished = false;
+ };
+
+protected:
+
+ virtual void OnThink();
+ void UpdateVestHelmPrice();
+
+ virtual void OnCommand( const char *command );
+
+ MouseOverPanelButton* CreateNewMouseOverPanelButton(EditablePanel * panel)
+ {
+ return new BuyMouseOverPanelButton(this, NULL, panel);
+ }
+
+ CBuySubMenu* CreateNewSubMenu() { return new CCSBuySubMenu( this, "BuySubMenu" ); }
+
+ // Background panel -------------------------------------------------------
+
+ virtual void PerformLayout();
+ virtual void OnSizeChanged(int newWide, int newTall); // called after the size of a panel has been changed
+
+ void HandleBlackMarket( void );
+
+ bool m_backgroundLayoutFinished;
+
+ // End background panel ---------------------------------------------------
+};
+
+#endif //CSBUYSUBMENU_H