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/c_slideshow_display.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/c_slideshow_display.h')
| -rw-r--r-- | game/client/c_slideshow_display.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/game/client/c_slideshow_display.h b/game/client/c_slideshow_display.h new file mode 100644 index 0000000..0a88d57 --- /dev/null +++ b/game/client/c_slideshow_display.h @@ -0,0 +1,76 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// +#ifndef C_SLIDESHOW_DISPLAY_H +#define C_SLIDESHOW_DISPLAY_H + +#include "cbase.h" +#include "utlvector.h" + + +struct SlideMaterialList_t +{ + char szSlideKeyword[64]; + CUtlVector<int> iSlideMaterials; + CUtlVector<int> iSlideIndex; +}; + + +class C_SlideshowDisplay : public C_BaseEntity +{ +public: + DECLARE_CLASS( C_SlideshowDisplay, CBaseEntity ); + DECLARE_CLIENTCLASS(); + + C_SlideshowDisplay(); + virtual ~C_SlideshowDisplay(); + + void Spawn( void ); + + virtual void OnDataChanged( DataUpdateType_t updateType ); + + void ClientThink( void ); + + bool IsEnabled( void ) { return m_bEnabled; } + + void GetDisplayText( char *pchText ) { Q_strcpy( pchText, m_szDisplayText ); } + int CurrentMaterialIndex( void ) { return m_iCurrentMaterialIndex; } + int GetMaterialIndex( int iSlideIndex ); + int NumMaterials( void ); + int CurrentSlideIndex( void ) { return m_iCurrentSlideIndex; } + +private: + + void BuildSlideShowImagesList( void ); + +private: + + bool m_bEnabled; + + char m_szDisplayText[ 128 ]; + + char m_szSlideshowDirectory[ 128 ]; + + CUtlVector<SlideMaterialList_t*> m_SlideMaterialLists; + unsigned char m_chCurrentSlideLists[ 16 ]; + int m_iCurrentMaterialIndex; + int m_iCurrentSlideIndex; + + float m_fMinSlideTime; + float m_fMaxSlideTime; + + float m_NextSlideTime; + + int m_iCycleType; + bool m_bNoListRepeats; + int m_iCurrentSlideList; + int m_iCurrentSlide; +}; + +extern CUtlVector< C_SlideshowDisplay* > g_SlideshowDisplays; + +#endif //C_SLIDESHOW_STATS_DISPLAY_H
\ No newline at end of file |