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 /game/client/tf/tf_hud_menu_taunt_selection.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf/tf_hud_menu_taunt_selection.h')
| -rw-r--r-- | game/client/tf/tf_hud_menu_taunt_selection.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/game/client/tf/tf_hud_menu_taunt_selection.h b/game/client/tf/tf_hud_menu_taunt_selection.h new file mode 100644 index 0000000..2c68b37 --- /dev/null +++ b/game/client/tf/tf_hud_menu_taunt_selection.h @@ -0,0 +1,58 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TF_HUD_MENU_TAUNT_SELECTION_H +#define TF_HUD_MENU_TAUNT_SELECTION_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/EditablePanel.h> +#include <vgui_controls/Label.h> +#include <game_controls/IconPanel.h> +#include <vgui/tf_controls.h> +#include "base_loadout_panel.h" + +using namespace vgui; + +#define NUM_TAUNT_SLOTS 8 + +class CHudMenuTauntSelection : public CHudElement, public EditablePanel +{ + DECLARE_CLASS_SIMPLE( CHudMenuTauntSelection, EditablePanel ); + +public: + CHudMenuTauntSelection( const char *pElementName ); + + virtual void ApplySchemeSettings( IScheme *scheme ); + virtual bool ShouldDraw( void ); + + virtual void FireGameEvent( IGameEvent *event ); + + virtual void SetVisible( bool state ); + + int HudElementKeyInput( int down, ButtonCode_t keynum, const char *pszCurrentBinding ); + + virtual int GetRenderGroupPriority( void ) { return 90; } + void SelectTaunt( int iTaunt ); + + virtual GameActionSet_t GetPreferredActionSet() { return GAME_ACTION_SET_IN_GAME_HUD; } + +private: + void SetSelectedItem( int iSlot ); + void FindTauntKeyBinding( void ); + void UpdateItemModelPanels(); + +private: + CItemModelPanel *m_pItemModelPanels[NUM_TAUNT_SLOTS]; + // CIconPanel *m_pKeyIcons[NUM_TAUNT_SLOTS]; + // CExLabel *m_pKeyLabels[NUM_TAUNT_SLOTS]; + + int m_iSelectedItem; +}; + +#endif // TF_HUD_MENU_TAUNT_SELECTION_H
\ No newline at end of file |