diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/client/game_controls/teammenu.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/client/game_controls/teammenu.h')
| -rw-r--r-- | mp/src/game/client/game_controls/teammenu.h | 172 |
1 files changed, 86 insertions, 86 deletions
diff --git a/mp/src/game/client/game_controls/teammenu.h b/mp/src/game/client/game_controls/teammenu.h index 624d7662..a1eab0f5 100644 --- a/mp/src/game/client/game_controls/teammenu.h +++ b/mp/src/game/client/game_controls/teammenu.h @@ -1,86 +1,86 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef TEAMMENU_H
-#define TEAMMENU_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include <vgui_controls/Frame.h>
-#include <vgui_controls/Button.h>
-
-#include <game/client/iviewport.h>
-
-#include <vgui/KeyCode.h>
-#include <utlvector.h>
-
-namespace vgui
-{
- class RichText;
- class HTML;
-}
-class TeamFortressViewport;
-
-
-//-----------------------------------------------------------------------------
-// Purpose: Displays the team menu
-//-----------------------------------------------------------------------------
-class CTeamMenu : public vgui::Frame, public IViewPortPanel
-{
-private:
- DECLARE_CLASS_SIMPLE( CTeamMenu, vgui::Frame );
-
-public:
- CTeamMenu(IViewPort *pViewPort);
- virtual ~CTeamMenu();
-
- virtual const char *GetName( void ) { return PANEL_TEAM; }
- virtual void SetData(KeyValues *data) {};
- virtual void Reset() {};
- virtual void Update();
- virtual bool NeedsUpdate( void ) { return false; }
- virtual bool HasInputElements( void ) { return true; }
- virtual void ShowPanel( bool bShow );
-
- // both vgui::Frame and IViewPortPanel define these, so explicitly define them here as passthroughs to vgui
- vgui::VPANEL GetVPanel( void ) { return BaseClass::GetVPanel(); }
- virtual bool IsVisible() { return BaseClass::IsVisible(); }
- virtual void SetParent( vgui::VPANEL parent ) { BaseClass::SetParent( parent ); }
-
-public:
-
- void AutoAssign();
-
-protected:
-
- // int GetNumTeams() { return m_iNumTeams; }
-
- // VGUI2 overrides
- virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
- virtual void OnKeyCodePressed(vgui::KeyCode code);
-
- // helper functions
- virtual void SetLabelText(const char *textEntryName, const char *text);
- virtual void LoadMapPage( const char *mapName );
- // virtual void MakeTeamButtons( void );
-
- // command callbacks
- // MESSAGE_FUNC_INT( OnTeamButton, "TeamButton", team );
-
- IViewPort *m_pViewPort;
- vgui::RichText *m_pMapInfo;
- vgui::HTML *m_pMapInfoHTML;
-// int m_iNumTeams;
- ButtonCode_t m_iJumpKey;
- ButtonCode_t m_iScoreBoardKey;
-
- char m_szMapName[ MAX_PATH ];
-};
-
-
-#endif // TEAMMENU_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TEAMMENU_H +#define TEAMMENU_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/Frame.h> +#include <vgui_controls/Button.h> + +#include <game/client/iviewport.h> + +#include <vgui/KeyCode.h> +#include <utlvector.h> + +namespace vgui +{ + class RichText; + class HTML; +} +class TeamFortressViewport; + + +//----------------------------------------------------------------------------- +// Purpose: Displays the team menu +//----------------------------------------------------------------------------- +class CTeamMenu : public vgui::Frame, public IViewPortPanel +{ +private: + DECLARE_CLASS_SIMPLE( CTeamMenu, vgui::Frame ); + +public: + CTeamMenu(IViewPort *pViewPort); + virtual ~CTeamMenu(); + + virtual const char *GetName( void ) { return PANEL_TEAM; } + virtual void SetData(KeyValues *data) {}; + virtual void Reset() {}; + virtual void Update(); + virtual bool NeedsUpdate( void ) { return false; } + virtual bool HasInputElements( void ) { return true; } + virtual void ShowPanel( bool bShow ); + + // both vgui::Frame and IViewPortPanel define these, so explicitly define them here as passthroughs to vgui + vgui::VPANEL GetVPanel( void ) { return BaseClass::GetVPanel(); } + virtual bool IsVisible() { return BaseClass::IsVisible(); } + virtual void SetParent( vgui::VPANEL parent ) { BaseClass::SetParent( parent ); } + +public: + + void AutoAssign(); + +protected: + + // int GetNumTeams() { return m_iNumTeams; } + + // VGUI2 overrides + virtual void ApplySchemeSettings(vgui::IScheme *pScheme); + virtual void OnKeyCodePressed(vgui::KeyCode code); + + // helper functions + virtual void SetLabelText(const char *textEntryName, const char *text); + virtual void LoadMapPage( const char *mapName ); + // virtual void MakeTeamButtons( void ); + + // command callbacks + // MESSAGE_FUNC_INT( OnTeamButton, "TeamButton", team ); + + IViewPort *m_pViewPort; + vgui::RichText *m_pMapInfo; + vgui::HTML *m_pMapInfoHTML; +// int m_iNumTeams; + ButtonCode_t m_iJumpKey; + ButtonCode_t m_iScoreBoardKey; + + char m_szMapName[ MAX_PATH ]; +}; + + +#endif // TEAMMENU_H |