blob: d5af70fd7d8216268e77daceb275ff323e7445ff (
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
|
//--------------------------------------------------------------------------------------------------------
//========= Copyright Valve Corporation, All rights reserved. ============//
#ifndef SELECTIONTOOL_H
#define SELECTIONTOOL_H
#ifdef SERVER_USES_VGUI
#include "NavUI.h"
#include "nav.h"
//--------------------------------------------------------------------------------------------------------
class SelectionToolPanel : public CNavUIToolPanel
{
DECLARE_CLASS_SIMPLE( SelectionToolPanel, CNavUIToolPanel );
public:
SelectionToolPanel( vgui::Panel *parent, const char *toolName );
virtual void Init( void );
virtual void Shutdown( void );
virtual void PerformLayout( void );
virtual void OnCommand( const char *command );
virtual void StartLeftClickAction( const char *actionName );
virtual void FinishLeftClickAction( const char *actionName );
virtual void StartRightClickAction( const char *actionName );
virtual void OnCursorMoved( int x, int y );
virtual bool IsFloodSelectable( CNavArea *area );
protected:
void FloodSelect( void );
CNavArea *m_floodStartArea;
enum DragSelectType
{
DRAG_NONE,
DRAG_SELECT,
DRAG_UNSELECT
};
DragSelectType m_dragType;
};
#endif // SERVER_USES_VGUI
#endif // SELECTIONTOOL_H
|