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.

56 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CSBUYSUBMENU_H
  8. #define CSBUYSUBMENU_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <buysubmenu.h>
  13. #include <buymouseoverpanelbutton.h>
  14. using namespace vgui;
  15. class CCSBuySubMenu : public CBuySubMenu
  16. {
  17. private:
  18. DECLARE_CLASS_SIMPLE(CCSBuySubMenu, CBuySubMenu);
  19. public:
  20. CCSBuySubMenu (vgui::Panel *parent,const char *name = "BuySubMenu") : CBuySubMenu( parent, name )
  21. {
  22. m_backgroundLayoutFinished = false;
  23. };
  24. protected:
  25. virtual void OnThink();
  26. void UpdateVestHelmPrice();
  27. virtual void OnCommand( const char *command );
  28. MouseOverPanelButton* CreateNewMouseOverPanelButton(EditablePanel * panel)
  29. {
  30. return new BuyMouseOverPanelButton(this, NULL, panel);
  31. }
  32. CBuySubMenu* CreateNewSubMenu() { return new CCSBuySubMenu( this, "BuySubMenu" ); }
  33. // Background panel -------------------------------------------------------
  34. virtual void PerformLayout();
  35. virtual void OnSizeChanged(int newWide, int newTall); // called after the size of a panel has been changed
  36. void HandleBlackMarket( void );
  37. bool m_backgroundLayoutFinished;
  38. // End background panel ---------------------------------------------------
  39. };
  40. #endif //CSBUYSUBMENU_H