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 /utils/scenemanager/statuswindow.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/scenemanager/statuswindow.h')
| -rw-r--r-- | utils/scenemanager/statuswindow.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/utils/scenemanager/statuswindow.h b/utils/scenemanager/statuswindow.h new file mode 100644 index 0000000..5e43bad --- /dev/null +++ b/utils/scenemanager/statuswindow.h @@ -0,0 +1,57 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef STATUSWINDOW_H +#define STATUSWINDOW_H +#ifdef _WIN32 +#pragma once +#endif + +class mxScrollbar; + +#define IDC_STATUS_SCROLL 1000 + +class CStatusWindow : public mxWindow +{ +public: + CStatusWindow (mxWindow *parent, int x, int y, int w, int h, const char *label = 0 ); + ~CStatusWindow(); + + void StatusPrint( int r, int g, int b, bool overwrite, const char *text ); + + virtual void redraw(); + virtual bool PaintBackground( void ); + + virtual int handleEvent( mxEvent *event ); + +// virtual void Think( float dt ); + +private: + + void PositionSliders( int sboffset ); + + enum + { + MAX_TEXT_LINES = 1024, + TEXT_LINE_MASK = MAX_TEXT_LINES - 1, + }; + + struct TextLine + { + char m_szText[ 512 ]; + int r, g, b; + float curtime; + }; + + TextLine m_rgTextLines[ MAX_TEXT_LINES ]; + int m_nCurrentLine; + + mxScrollbar *m_pScrollbar; +}; + +extern CStatusWindow *g_pStatusWindow; + +#endif // STATUSWINDOW_H |