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.

58 lines
1.8 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef SCENEMANAGER_TOOLS_H
  7. #define SCENEMANAGER_TOOLS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class mxWindow;
  12. class ITreeItem;
  13. #define ERROR_R 255
  14. #define ERROR_G 102
  15. #define ERROR_B 0
  16. #define CONSOLE_R 82
  17. #define CONSOLE_G 173
  18. #define CONSOLE_B 216
  19. class CSentence;
  20. class KeyValues;
  21. class CUtlBuffer;
  22. bool SceneManager_LoadSentenceFromWavFile( char const *wavfile, CSentence& sentence );
  23. bool SceneManager_SaveSentenceToWavFile( char const *wavfile, CSentence& sentence );
  24. void SceneManager_AddWindowStyle( mxWindow *w, int addbits );
  25. void SceneManager_MakeToolWindow( mxWindow *w, bool smallcaption );
  26. char *va( PRINTF_FORMAT_STRING const char *fmt, ... );
  27. void Con_Printf( PRINTF_FORMAT_STRING const char *fmt, ... );
  28. void Con_Overprintf( PRINTF_FORMAT_STRING const char *fmt, ... );
  29. void Con_ColorPrintf( int r, int g, int b, PRINTF_FORMAT_STRING const char *fmt, ... );
  30. char *SceneManager_MakeWindowsSlashes( char *pname );
  31. const char *SceneManager_GetGameDirectory( void );
  32. bool SceneManager_FullpathFileExists( const char *filename );
  33. int ConvertANSIToUnicode(const char *ansi, wchar_t *unicode, int unicodeBufferSize);
  34. int ConvertUnicodeToANSI(const wchar_t *unicode, char *ansi, int ansiBufferSize);
  35. extern class IFileSystem *filesystem;
  36. extern char g_appTitle[];
  37. void VSS_Checkout( char const *name, bool updatestaticons = true );
  38. void VSS_Checkin( char const *name, bool updatestaticons = true );
  39. void SceneManager_LoadWindowPositions( KeyValues *kv, mxWindow *wnd );
  40. void SceneManager_SaveWindowPositions( CUtlBuffer& buf, int indent, mxWindow *wnd );
  41. void MakeFileWriteable( const char *filename );
  42. #endif // SCENEMANAGER_TOOLS_H