Team Fortress 2 Source Code as on 22/4/2020
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
758 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef HELPTEXT_H
  8. #define HELPTEXT_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <VGUI_KeyValues.h>
  13. //-----------------------------------------------------------------------------
  14. // Purpose: parses in a text file and returns help strings about key words
  15. //-----------------------------------------------------------------------------
  16. class CHelpText
  17. {
  18. public:
  19. CHelpText(const char *mod);
  20. ~CHelpText();
  21. void LoadHelpFile(const char *filename);
  22. const char *GetHelp(const char *keyname);
  23. private:
  24. vgui::KeyValues *m_pHelpData;
  25. };
  26. #endif // HELPTEXT_H