Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.
 
 
 
 
 
 

54 lines
1.5 KiB

//========= 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