GOPTIONS.H 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*
  2. ** Command & Conquer(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. /* $Header: F:\projects\c&c\vcs\code\goptions.h_v 2.19 16 Oct 1995 16:46:26 JOE_BOSTIC $ */
  19. /***********************************************************************************************
  20. *** 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 ***
  21. ***********************************************************************************************
  22. * *
  23. * Project Name : Command & Conquer *
  24. * *
  25. * File Name : OPTIONS.H *
  26. * *
  27. * Programmer : Joe L. Bostic *
  28. * *
  29. * Start Date : June 8, 1994 *
  30. * *
  31. * Last Update : June 8, 1994 [JLB] *
  32. * *
  33. *---------------------------------------------------------------------------------------------*
  34. * Functions: *
  35. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  36. #ifndef GOPTIONS_H
  37. #define GOPTIONS_H
  38. #include "options.h"
  39. #include "gadget.h"
  40. class GameOptionsClass : public OptionsClass {
  41. enum GameOptionsButtonEnum {
  42. BUTTON_LOAD=1,
  43. BUTTON_SAVE,
  44. BUTTON_DELETE,
  45. BUTTON_GAME,
  46. BUTTON_QUIT,
  47. BUTTON_RESUME,
  48. BUTTON_RESTATE,
  49. BUTTON_COUNT,
  50. };
  51. enum GameOptionsEnum {
  52. #if(0)
  53. OPTION_WIDTH=(216+8),
  54. OPTION_HEIGHT=100,
  55. OPTION_X=((320 - OPTION_WIDTH) / 2),
  56. OPTION_Y=((200 - OPTION_HEIGHT) / 2),
  57. #ifdef FRENCH
  58. BUTTON_WIDTH=142,
  59. #else
  60. BUTTON_WIDTH=130,
  61. #endif
  62. // OBUTTON_HEIGHT=13,
  63. NUMBER_OF_BUTTONS=6,
  64. CAPTION_Y_POS=5,
  65. BUTTON_Y=21,
  66. BORDER1_LEN=72,
  67. BORDER2_LEN=16,
  68. BUTTON_RESUME_Y=(OPTION_HEIGHT-15)
  69. #endif
  70. };
  71. public:
  72. GameOptionsClass(void): OptionsClass () { };
  73. void Adjust_Variables_For_Resolution(void);
  74. void Process(void);
  75. private:
  76. int OptionWidth;
  77. int OptionHeight;
  78. int OptionX;
  79. int OptionY;
  80. int ButtonWidth;
  81. int OButtonHeight;
  82. int CaptionYPos;
  83. int ButtonY;
  84. int Border1Len;
  85. int Border2Len;
  86. int ButtonResumeY;
  87. };
  88. #endif