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.

39 lines
743 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #include "DemoPage.h"
  8. #include <VGUI/IVGui.h>
  9. #include <vgui_controls/Controls.h>
  10. #include <vgui_controls/Menu.h>
  11. #include <vgui_controls/MenuButton.h>
  12. #include <Keyvalues.h>
  13. using namespace vgui;
  14. class MenuDemo: public DemoPage
  15. {
  16. public:
  17. MenuDemo(Panel *parent, const char *name);
  18. ~MenuDemo();
  19. void InitMenus();
  20. void OnMaggie();
  21. protected:
  22. // Menu that opens when button is pressed
  23. Menu *m_pMenu;
  24. // Button to trigger the menu
  25. MenuButton *m_pMenuButton;
  26. private:
  27. // explain this
  28. DECLARE_PANELMAP();
  29. };