summaryrefslogtreecommitdiff
path: root/game/client/tf/vgui/sc_hinticon.h
blob: 337ece20762e7456ceb6d02d0b24a67e14500d12 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Control for displaying a Steam Controller hint icon
//
// $NoKeywords: $
//=============================================================================//

#ifndef SC_HINTICON_H
#define SC_HINTICON_H
#ifdef _WIN32
#pragma once
#endif

#include <vgui/IScheme.h>
#include <vgui/KeyCode.h>
#include <KeyValues.h>
#include <vgui/IVGui.h>
#include <vgui_controls/Label.h>

class CSCHintIcon : public vgui::Label
{
public:
	DECLARE_CLASS_SIMPLE( CSCHintIcon, vgui::Label );

	CSCHintIcon( vgui::Panel *parent, const char *panelName );

	virtual void ApplySettings( KeyValues *inResourceData );
	virtual void ApplySchemeSettings( vgui::IScheme *pScheme );

	bool IsActionMapped() const { return m_bIsActionMapped; }

private:
	bool m_bIsActionMapped;
	static const int nMaxActionNameLength = 63;
	char m_szActionName[nMaxActionNameLength+1];
	ControllerActionSetHandle_t m_actionSetHandle;
};

#endif  // SC_HINTICON_H