diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /gameui/BackgroundMenuButton.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'gameui/BackgroundMenuButton.h')
| -rw-r--r-- | gameui/BackgroundMenuButton.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gameui/BackgroundMenuButton.h b/gameui/BackgroundMenuButton.h new file mode 100644 index 0000000..c4886a2 --- /dev/null +++ b/gameui/BackgroundMenuButton.h @@ -0,0 +1,39 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef BACKGROUNDMENUBUTTON_H +#define BACKGROUNDMENUBUTTON_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/Button.h> + +//----------------------------------------------------------------------------- +// Purpose: Baseclass for the left and right ingame menus that lay on the background +//----------------------------------------------------------------------------- +class CBackgroundMenuButton : public vgui::Button +{ +public: + CBackgroundMenuButton(vgui::Panel *parent, const char *name); + ~CBackgroundMenuButton(); + + virtual void OnCommand(const char *command); + +protected: + vgui::Menu *RecursiveLoadGameMenu(KeyValues *datafile); + vgui::Menu *m_pMenu; + + virtual void ApplySchemeSettings(vgui::IScheme *pScheme); + +private: + vgui::IImage *m_pImage, *m_pMouseOverImage; + typedef vgui::Button BaseClass; +}; + + +#endif // BACKGROUNDMENUBUTTON_H
\ No newline at end of file |