DrawGroupInfo.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. ** Command & Conquer Generals Zero Hour(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. ////////////////////////////////////////////////////////////////////////////////
  19. // //
  20. // (c) 2001-2003 Electronic Arts Inc. //
  21. // //
  22. ////////////////////////////////////////////////////////////////////////////////
  23. // FILE: DrawGroupInfo.h //////////////////////////////////////////////////////////////////////////
  24. // AudioEventRTS structure
  25. // Author: John K. McDonald, March 2002
  26. #pragma once
  27. #ifndef _H_DRAWGROUPINFO_
  28. #define _H_DRAWGROUPINFO_
  29. struct DrawGroupInfo
  30. {
  31. AsciiString m_fontName;
  32. Int m_fontSize;
  33. Bool m_fontIsBold;
  34. Bool m_usePlayerColor;
  35. Color m_colorForText;
  36. Color m_colorForTextDropShadow;
  37. Int m_dropShadowOffsetX;
  38. Int m_dropShadowOffsetY;
  39. union
  40. {
  41. Int m_pixelOffsetX;
  42. Real m_percentOffsetX;
  43. };
  44. Bool m_usingPixelOffsetX;
  45. union
  46. {
  47. Int m_pixelOffsetY;
  48. Real m_percentOffsetY;
  49. };
  50. Bool m_usingPixelOffsetY;
  51. DrawGroupInfo();
  52. static const FieldParse s_fieldParseTable[]; ///< the parse table for INI definition
  53. const FieldParse *getFieldParse( void ) const { return s_fieldParseTable; }
  54. };
  55. extern DrawGroupInfo *TheDrawGroupInfo;
  56. #endif /* _H_DRAWGROUPINFO */