source-engine-2018-hl2_src/utils/vgui_panel_zoo/MenuDemo.h
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

40 lines
743 B
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "DemoPage.h"
#include <VGUI/IVGui.h>
#include <vgui_controls/Controls.h>
#include <vgui_controls/Menu.h>
#include <vgui_controls/MenuButton.h>
#include <Keyvalues.h>
using namespace vgui;
class MenuDemo: public DemoPage
{
public:
MenuDemo(Panel *parent, const char *name);
~MenuDemo();
void InitMenus();
void OnMaggie();
protected:
// Menu that opens when button is pressed
Menu *m_pMenu;
// Button to trigger the menu
MenuButton *m_pMenuButton;
private:
// explain this
DECLARE_PANELMAP();
};