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.

83 lines
3.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #if !defined( HLFACEPOSER_H )
  8. #define HLFACEPOSER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <ctype.h>
  13. #include <float.h>
  14. #include <windows.h>
  15. #include "SoundEmitterSystem/isoundemittersystembase.h"
  16. #define CONSOLE_COLOR RGB( 82, 173, 216 )
  17. #define ERROR_COLOR RGB( 255, 50, 20 )
  18. #define FILE_COLOR RGB( 0, 63, 200 )
  19. #define MAX_FP_MODELS 16
  20. #define SCRUBBER_HANDLE_WIDTH 40
  21. #define SCRUBBER_HANDLE_HEIGHT 10
  22. char *va( PRINTF_FORMAT_STRING const char *fmt, ... );
  23. char const *GetGameDirectory(); // e.g. u:\main\game\ep2
  24. char const *GetGameDirectorySimple(); // e.g. ep2
  25. void Con_Printf( PRINTF_FORMAT_STRING const char *fmt, ... );
  26. void Con_ColorPrintf( COLORREF clr, PRINTF_FORMAT_STRING const char *fmt, ... );
  27. void Con_ErrorPrintf( PRINTF_FORMAT_STRING const char *fmt, ... );
  28. bool FPFullpathFileExists( const char *filename );
  29. void MakeFileWriteable( const char *filename );
  30. bool MakeFileWriteablePrompt( const char *filename, char const *promptTitle );
  31. bool IsFileWriteable( const char *filename );
  32. void FPCopyFile( const char *source, const char *dest, bool bCheckOut );
  33. class mxWindow;
  34. void FacePoser_MakeToolWindow( mxWindow *w, bool smallcaption );
  35. void FacePoser_LoadWindowPositions( char const *name, bool& visible, int& x, int& y, int& w, int& h, bool& locked, bool& zoomed );
  36. void FacePoser_SaveWindowPositions( char const *name, bool visible, int x, int y, int w, int h, bool locked, bool zoomed );
  37. void FacePoser_AddWindowStyle( mxWindow *w, int addbits );
  38. void FacePoser_AddWindowExStyle( mxWindow *w, int addbits );
  39. void FacePoser_RemoveWindowStyle( mxWindow *w, int removebits );
  40. void FacePoser_RemoveWindowExStyle( mxWindow *w, int removebits );
  41. bool FacePoser_HasWindowStyle( mxWindow *w, int bits );
  42. bool FacePoser_HasWindowExStyle( mxWindow *w, int bits );
  43. void FacePoser_EnsurePhonemesLoaded( void );
  44. void FacePoser_SetPhonemeRootDir( char const *pchRootDir );
  45. int ConvertANSIToUnicode(const char *ansi, wchar_t *unicode, int unicodeBufferSize);
  46. int ConvertUnicodeToANSI(const wchar_t *unicode, char *ansi, int ansiBufferSize);
  47. float FacePoser_SnapTime( float t );
  48. char const *FacePoser_DescribeSnappedTime( float t );
  49. int FacePoser_GetSceneFPS( void );
  50. bool FacePoser_IsSnapping( void );
  51. class StudioModel;
  52. char const *FacePoser_TranslateSoundName( char const *soundname, StudioModel *model = NULL );
  53. class CChoreoEvent;
  54. char const *FacePoser_TranslateSoundName( CChoreoEvent *event );
  55. char const *FacePoser_TranslateSoundNameGender( char const *soundname, gender_t gender );
  56. extern class IFileSystem *filesystem;
  57. extern class ISceneTokenProcessor *tokenprocessor;
  58. char *Q_stristr_slash( char const *pStr, char const *pSearch );
  59. void SetCloseCaptionLanguageId( int id, bool force = false ); // from sentence.h enum
  60. int GetCloseCaptionLanguageId();
  61. bool FacePoser_ShowOpenFileNameDialog( char *relative, size_t bufsize, char const *subdir, char const *wildcard );
  62. bool FacePoser_ShowSaveFileNameDialog( char *relative, size_t bufsize, char const *subdir, char const *wildcard );
  63. #endif // HLFACEPOSER_H