diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/vgui/halloween_offering_panel.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf/vgui/halloween_offering_panel.h')
| -rw-r--r-- | game/client/tf/vgui/halloween_offering_panel.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/game/client/tf/vgui/halloween_offering_panel.h b/game/client/tf/vgui/halloween_offering_panel.h new file mode 100644 index 0000000..cc4c092 --- /dev/null +++ b/game/client/tf/vgui/halloween_offering_panel.h @@ -0,0 +1,54 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef HALLOWEEN_OFFERING_PANEL_H +#define HALLOWEEN_OFFERING_PANEL_H +#ifdef _WIN32 +#pragma once +#endif + +#include "collection_crafting_panel.h" + + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +class CHalloweenOfferingSelectionPanel : public CCollectionCraftingSelectionPanel +{ + DECLARE_CLASS_SIMPLE( CHalloweenOfferingSelectionPanel, CCollectionCraftingSelectionPanel ); +public: + CHalloweenOfferingSelectionPanel( Panel *pParent ) : BaseClass( pParent ) {} + + //----------------------------------------------------------------------------- + virtual const char *GetSelectionInvalidReason( const IEconItemInterface *pTestItem, const IEconItemInterface *pSourceItem ) const + { + return GetHalloweenOfferingInvalidReason( pTestItem, pSourceItem ); + } +}; + + +//----------------------------------------------------------------------------- +// A panel to let users choose 10 weapons to craft up within collections +//----------------------------------------------------------------------------- +class CHalloweenOfferingPanel : public CCollectionCraftingPanel +{ +public: + DECLARE_CLASS_SIMPLE( CHalloweenOfferingPanel, CCollectionCraftingPanel ); + CHalloweenOfferingPanel( vgui::Panel *parent, CItemModelPanelToolTip* pTooltip ); + ~CHalloweenOfferingPanel( void ); + + virtual const char *GetResFile( void ) { return "Resource/UI/econ/HalloweenOfferingDialog.res"; } + virtual void OnCommand( const char *command ) OVERRIDE; + + virtual int GetInputItemCount() { return HALLOWEEN_OFFERING_ITEM_COUNT; } + +protected: + + virtual void CreateSelectionPanel(); +}; + +#endif // HALLOWEEN_OFFERING_PANEL_H |