Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.9 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef HALLOWEEN_OFFERING_PANEL_H
  8. #define HALLOWEEN_OFFERING_PANEL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "collection_crafting_panel.h"
  13. //-----------------------------------------------------------------------------
  14. // Purpose:
  15. //-----------------------------------------------------------------------------
  16. class CHalloweenOfferingSelectionPanel : public CCollectionCraftingSelectionPanel
  17. {
  18. DECLARE_CLASS_SIMPLE( CHalloweenOfferingSelectionPanel, CCollectionCraftingSelectionPanel );
  19. public:
  20. CHalloweenOfferingSelectionPanel( Panel *pParent ) : BaseClass( pParent ) {}
  21. //-----------------------------------------------------------------------------
  22. virtual const char *GetSelectionInvalidReason( const IEconItemInterface *pTestItem, const IEconItemInterface *pSourceItem ) const
  23. {
  24. return GetHalloweenOfferingInvalidReason( pTestItem, pSourceItem );
  25. }
  26. };
  27. //-----------------------------------------------------------------------------
  28. // A panel to let users choose 10 weapons to craft up within collections
  29. //-----------------------------------------------------------------------------
  30. class CHalloweenOfferingPanel : public CCollectionCraftingPanel
  31. {
  32. public:
  33. DECLARE_CLASS_SIMPLE( CHalloweenOfferingPanel, CCollectionCraftingPanel );
  34. CHalloweenOfferingPanel( vgui::Panel *parent, CItemModelPanelToolTip* pTooltip );
  35. ~CHalloweenOfferingPanel( void );
  36. virtual const char *GetResFile( void ) { return "Resource/UI/econ/HalloweenOfferingDialog.res"; }
  37. virtual void OnCommand( const char *command ) OVERRIDE;
  38. virtual int GetInputItemCount() { return HALLOWEEN_OFFERING_ITEM_COUNT; }
  39. protected:
  40. virtual void CreateSelectionPanel();
  41. };
  42. #endif // HALLOWEEN_OFFERING_PANEL_H