SOUNDDLG.H 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. //
  2. // Copyright 2020 Electronic Arts Inc.
  3. //
  4. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free
  5. // software: you can redistribute it and/or modify it under the terms of
  6. // the GNU General Public License as published by the Free Software Foundation,
  7. // either version 3 of the License, or (at your option) any later version.
  8. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
  9. // in the hope that it will be useful, but with permitted additional restrictions
  10. // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. // distributed with this program. You should have received a copy of the
  12. // GNU General Public License along with permitted additional restrictions
  13. // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
  14. /* $Header: /CounterStrike/SOUNDDLG.H 1 3/03/97 10:25a Joe_bostic $ */
  15. /***********************************************************************************************
  16. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  17. ***********************************************************************************************
  18. * *
  19. * Project Name : Command & Conquer *
  20. * *
  21. * File Name : OPTIONS.H *
  22. * *
  23. * Programmer : Joe L. Bostic *
  24. * *
  25. * Start Date : June 8, 1994 *
  26. * *
  27. * Last Update : June 8, 1994 [JLB] *
  28. * *
  29. *---------------------------------------------------------------------------------------------*
  30. * Functions: *
  31. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  32. #ifndef SOUNDDLG_H
  33. #define SOUNDDLG_H
  34. #include "gadget.h"
  35. class SoundControlsClass
  36. {
  37. enum SoundControlsClassEnums {
  38. #ifdef FRENCH
  39. OPTION_WIDTH=308,
  40. #else
  41. OPTION_WIDTH=292,
  42. #endif
  43. OPTION_HEIGHT=146,
  44. OPTION_X=((320 - OPTION_WIDTH) / 2),
  45. OPTION_Y=(200 - OPTION_HEIGHT) / 2,
  46. LISTBOX_X=17,
  47. LISTBOX_Y=54,
  48. LISTBOX_W=OPTION_WIDTH-(LISTBOX_X*2),
  49. LISTBOX_H=72,
  50. BUTTON_WIDTH=70,
  51. BUTTON_X=OPTION_WIDTH-(BUTTON_WIDTH+17), // Options button x pos
  52. BUTTON_Y=128, // Options button y pos
  53. STOP_X=17, // Stop button X.
  54. STOP_Y=128, // Stop button Y.
  55. PLAY_X=35,
  56. PLAY_Y=128,
  57. ONOFF_WIDTH=25,
  58. #ifdef GERMAN
  59. SHUFFLE_X=79,//BGA:91,
  60. #else
  61. #ifdef FRENCH
  62. SHUFFLE_X=99,
  63. #else
  64. SHUFFLE_X=97,
  65. #endif
  66. #endif
  67. SHUFFLE_Y=128,
  68. #ifdef FRENCH
  69. REPEAT_X=169,
  70. #else
  71. REPEAT_X=164,
  72. #endif
  73. REPEAT_Y=128,
  74. MSLIDER_X=147,
  75. MSLIDER_Y=28,
  76. MSLIDER_W=108,
  77. MSLIDER_HEIGHT=5,
  78. FXSLIDER_X=147,
  79. FXSLIDER_Y=40,
  80. FXSLIDER_W=108,
  81. FXSLIDER_HEIGHT=5,
  82. BUTTON_STOP = 605,
  83. BUTTON_PLAY,
  84. BUTTON_SHUFFLE,
  85. BUTTON_REPEAT,
  86. BUTTON_OPTIONS,
  87. SLIDER_MUSIC,
  88. SLIDER_SOUND,
  89. BUTTON_LISTBOX,
  90. };
  91. public:
  92. SoundControlsClass(void) {}
  93. void Process(void);
  94. };
  95. #endif