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/tf2/itfhintitem.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf2/itfhintitem.h')
| -rw-r--r-- | game/client/tf2/itfhintitem.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/game/client/tf2/itfhintitem.h b/game/client/tf2/itfhintitem.h new file mode 100644 index 0000000..218b1f7 --- /dev/null +++ b/game/client/tf2/itfhintitem.h @@ -0,0 +1,58 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef ITFHINTITEM_H +#define ITFHINTITEM_H +#ifdef _WIN32 +#pragma once +#endif + +namespace vgui +{ + class Panel; +} + +class KeyValues; + +//----------------------------------------------------------------------------- +// Purpose: All TF Hint Item Panels multiply inheret from this interface +//----------------------------------------------------------------------------- +class ITFHintItem +{ +public: + virtual void ParseItem( KeyValues *pKeyValues ) = 0; + + // Delete the hint + virtual void DeleteThis( void ) = 0; + + // Returns true if the hint criteria have been met + virtual bool GetCompleted( void ) = 0; + // Mark the hint as active + virtual void SetActive( bool active ) = 0; + // Determine if the hint is the current, active hint + virtual bool GetActive( void ) = 0; + // Allow hint to run code + virtual void Think( void ) = 0; + // Determine height of hint + virtual int GetHeight( void ) = 0; + // Set screen position of hint + virtual void SetPosition( int x, int y ) = 0; + // Tell hint where it sits in current list of hints + virtual void SetItemNumber( int index ) = 0; + // Set the hint visible/invisible + virtual void SetVisible( bool visible ) = 0; + // Change the target (Panel) of the hint + virtual void SetHintTarget( vgui::Panel *panel ) = 0; + // Return true if hint should render this frame (default returns true if GetActive() is true) + virtual bool ShouldRenderPanelEffects( void ) = 0; + // Allow item to change title text + virtual void ComputeTitle( void ) = 0; + // Allow outside influence over keyvalues + virtual void SetKeyValue( const char *key, const char *value ) = 0; +}; + +#endif // ITFHINTITEM_H |