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.

38 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef BACKGROUNDMENUBUTTON_H
  8. #define BACKGROUNDMENUBUTTON_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/Button.h>
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Baseclass for the left and right ingame menus that lay on the background
  15. //-----------------------------------------------------------------------------
  16. class CBackgroundMenuButton : public vgui::Button
  17. {
  18. public:
  19. CBackgroundMenuButton(vgui::Panel *parent, const char *name);
  20. ~CBackgroundMenuButton();
  21. virtual void OnCommand(const char *command);
  22. protected:
  23. vgui::Menu *RecursiveLoadGameMenu(KeyValues *datafile);
  24. vgui::Menu *m_pMenu;
  25. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  26. private:
  27. vgui::IImage *m_pImage, *m_pMouseOverImage;
  28. typedef vgui::Button BaseClass;
  29. };
  30. #endif // BACKGROUNDMENUBUTTON_H