Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
868 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CVARTEXTENTRY_H
  8. #define CVARTEXTENTRY_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/TextEntry.h>
  13. class CCvarTextEntry : public vgui::TextEntry
  14. {
  15. DECLARE_CLASS_SIMPLE( CCvarTextEntry, vgui::TextEntry );
  16. public:
  17. CCvarTextEntry( vgui::Panel *parent, const char *panelName, char const *cvarname );
  18. ~CCvarTextEntry();
  19. MESSAGE_FUNC( OnTextChanged, "TextChanged" );
  20. void ApplyChanges( bool immediate = false );
  21. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  22. void Reset();
  23. bool HasBeenModified();
  24. private:
  25. char *m_pszCvarName;
  26. char m_pszStartValue[64];
  27. };
  28. #endif // CVARTEXTENTRY_H