summaryrefslogtreecommitdiff
path: root/game/client/cstrike/VGUI/cstrikebuymenu.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/cstrikebuymenu.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/cstrikebuymenu.h')
-rw-r--r--game/client/cstrike/VGUI/cstrikebuymenu.h102
1 files changed, 102 insertions, 0 deletions
diff --git a/game/client/cstrike/VGUI/cstrikebuymenu.h b/game/client/cstrike/VGUI/cstrikebuymenu.h
new file mode 100644
index 0000000..a97e07b
--- /dev/null
+++ b/game/client/cstrike/VGUI/cstrikebuymenu.h
@@ -0,0 +1,102 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CSTRIKEBUYMENU_H
+#define CSTRIKEBUYMENU_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui_controls/WizardPanel.h>
+
+#include <buymenu.h>
+
+class BuyPresetEditPanel;
+class BuyPresetButton;
+
+namespace vgui
+{
+ class Panel;
+ class Button;
+ class Label;
+}
+
+enum
+{
+ NUM_BUY_PRESET_BUTTONS = 4,
+};
+
+//============================
+// Base CS buy Menu
+//============================
+class CCSBaseBuyMenu : public CBuyMenu
+{
+private:
+ typedef vgui::WizardPanel BaseClass;
+
+public:
+ CCSBaseBuyMenu(IViewPort *pViewPort, const char *subPanelName);
+
+ virtual void ShowPanel( bool bShow );
+ virtual void Paint( void );
+ virtual void SetVisible( bool state );
+
+ void HandleBlackMarket( void );
+
+private:
+ void UpdateBuyPresets( bool showDefaultPanel = false ); ///< Update the Buy Preset buttons and their info panels on the main buy menu
+ vgui::Panel *m_pMainBackground;
+ BuyPresetButton *m_pBuyPresetButtons[NUM_BUY_PRESET_BUTTONS];
+ BuyPresetEditPanel *m_pLoadout;
+ vgui::Label *m_pMoney;
+ int m_lastMoney;
+
+ vgui::EditablePanel *m_pBlackMarket;
+ HFont m_hUnderlineFont;
+
+ // Background panel -------------------------------------------------------
+
+public:
+ virtual void PaintBackground();
+ virtual void PerformLayout();
+ virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
+
+ bool m_backgroundLayoutFinished;
+
+ // End background panel ---------------------------------------------------
+};
+
+//============================
+// CT main buy Menu
+//============================
+class CCSBuyMenu_CT : public CCSBaseBuyMenu
+{
+private:
+ typedef vgui::WizardPanel BaseClass;
+
+public:
+ CCSBuyMenu_CT(IViewPort *pViewPort);
+
+ virtual const char *GetName( void ) { return PANEL_BUY_CT; }
+};
+
+
+//============================
+// Terrorist main buy Menu
+//============================
+class CCSBuyMenu_TER : public CCSBaseBuyMenu
+{
+private:
+ typedef vgui::WizardPanel BaseClass;
+
+public:
+ CCSBuyMenu_TER(IViewPort *pViewPort);
+
+ virtual const char *GetName( void ) { return PANEL_BUY_TER; }
+};
+
+#endif // CSTRIKEBUYMENU_H