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/vgui/tf_item_inspection_panel.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/vgui/tf_item_inspection_panel.h')
| -rw-r--r-- | game/client/tf/vgui/tf_item_inspection_panel.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/game/client/tf/vgui/tf_item_inspection_panel.h b/game/client/tf/vgui/tf_item_inspection_panel.h new file mode 100644 index 0000000..5b57d70 --- /dev/null +++ b/game/client/tf/vgui/tf_item_inspection_panel.h @@ -0,0 +1,54 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TF_ITEM_INSPECTION_PANEL_H +#define TF_ITEM_INSPECTION_PANEL_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/Panel.h> +#include <vgui_controls/EditablePanel.h> +#include "tf_controls.h" + +using namespace vgui; + +class CEconItemView; +class CEmbeddedItemModelPanel; +class CNavigationPanel; +class CItemModelPanel; + +class CTFItemInspectionPanel : public EditablePanel +{ + DECLARE_CLASS_SIMPLE( CTFItemInspectionPanel, EditablePanel ) +public: + CTFItemInspectionPanel( Panel* pPanel, const char *pszName ); + + virtual void ApplySchemeSettings( IScheme *pScheme ) OVERRIDE; + virtual void PerformLayout() OVERRIDE; + virtual void OnCommand( const char *command ) OVERRIDE; + void SetItemCopy ( CEconItemView *pItem ); + void Reset(); + void SetSpecialAttributesOnly( bool bSpecialOnly ); + +private: + // we always want to copy item with SetItemCopy to make sure that we use high res skin + void SetItem( CEconItemView *pItem ); + void RecompositeItem(); + CNavigationPanel* m_pTeamColorNavPanel; + + MESSAGE_FUNC_PARAMS( OnNavButtonSelected, "NavButtonSelected", pData ); + MESSAGE_FUNC_PTR( OnRadioButtonChecked, "RadioButtonChecked", panel ); + + CEmbeddedItemModelPanel *m_pModelInspectPanel; + CItemModelPanel *m_pItemNamePanel; + + CEconItemView *m_pItemViewData; + CEconItem *m_pSOEconItemData; +}; + +#endif // TF_ITEM_INSPECTION_PANEL_H |