blob: 912260e49bc87290e0c9f1cf7811dec478d39f25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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
|