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/strange_count_transfer_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/strange_count_transfer_panel.h')
| -rw-r--r-- | game/client/tf/vgui/strange_count_transfer_panel.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/game/client/tf/vgui/strange_count_transfer_panel.h b/game/client/tf/vgui/strange_count_transfer_panel.h new file mode 100644 index 0000000..912260e --- /dev/null +++ b/game/client/tf/vgui/strange_count_transfer_panel.h @@ -0,0 +1,60 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef STRANGE_COUNT_TRANSFER_H +#define STRANGE_COUNT_TRANSFER_H +#ifdef _WIN32 +#pragma once +#endif + +#include "backpack_panel.h" +#include "vgui_controls/ScrollableEditablePanel.h" +#include "tf_gcmessages.h" +#include "econ_gcmessages.h" +#include "tf_imagepanel.h" +#include "tf_controls.h" +#include "item_selection_panel.h" +#include "confirm_dialog.h" + +//----------------------------------------------------------------------------- +// A panel to let users choose 2 weapons to tranfer strange counts with +//----------------------------------------------------------------------------- +class CStrangeCountTransferPanel : public vgui::EditablePanel, public CGameEventListener +{ +public: + DECLARE_CLASS_SIMPLE( CStrangeCountTransferPanel, vgui::EditablePanel ); + CStrangeCountTransferPanel( vgui::Panel *parent, CEconItemView* pToolItem ); + ~CStrangeCountTransferPanel( void ); + + virtual const char *GetResFile( void ) { return "Resource/UI/econ/StrangeCountTransferDialog.res"; } + virtual void ApplySchemeSettings( vgui::IScheme *pScheme ); + virtual void PerformLayout() OVERRIDE; + virtual void FireGameEvent( IGameEvent *event ) OVERRIDE; + virtual void OnCommand( const char *command ) OVERRIDE; + + MESSAGE_FUNC_PTR( OnItemPanelMousePressed, "ItemPanelMousePressed", panel ); + MESSAGE_FUNC_PARAMS( OnSelectionReturned, "SelectionReturned", data ); + +private: + + void UpdateOKButton(); + + CTFTextToolTip *m_pToolTip; + vgui::EditablePanel *m_pToolTipEmbeddedPanel; + + DHANDLE<CItemCriteriaSelectionPanel> m_hSelectionPanel; + + CExButton *m_pOKButton; + CEconItemView *m_pToolItem; + CItemModelPanel *m_pSelectingItemModelPanel; + CItemModelPanel *m_pSourceStrangeModelPanel; + CItemModelPanel *m_pTargetStrangeModelPanel; + CItemModelPanel *m_pMouseOverItemPanel; + CItemModelPanelToolTip *m_pMouseOverTooltip; +}; + +#endif // STRANGE_COUNT_TRANSFER |