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.

33 lines
773 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef CLIENT_TEXTMESSAGE_H
  7. #define CLIENT_TEXTMESSAGE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. struct client_textmessage_t
  12. {
  13. int effect;
  14. byte r1, g1, b1, a1; // 2 colors for effects
  15. byte r2, g2, b2, a2;
  16. float x;
  17. float y;
  18. float fadein;
  19. float fadeout;
  20. float holdtime;
  21. float fxtime;
  22. const char *pVGuiSchemeFontName; // If null, use default font for messages
  23. const char *pName;
  24. const char *pMessage;
  25. bool bRoundedRectBackdropBox;
  26. float flBoxSize; // as a function of font height
  27. byte boxcolor[4];
  28. char const *pClearMessage; // message to clear
  29. };
  30. #endif // CLIENT_TEXTMESSAGE_H