GOPTIONS.H (3669B)
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 9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 10 // in the hope that it will be useful, but with permitted additional restrictions 11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 12 // distributed with this program. You should have received a copy of the 13 // GNU General Public License along with permitted additional restrictions 14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection 15 16 /* $Header: F:\projects\c&c\vcs\code\goptions.h_v 2.19 16 Oct 1995 16:46:26 JOE_BOSTIC $ */ 17 /*********************************************************************************************** 18 *** 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 *** 19 *********************************************************************************************** 20 * * 21 * Project Name : Command & Conquer * 22 * * 23 * File Name : OPTIONS.H * 24 * * 25 * Programmer : Joe L. Bostic * 26 * * 27 * Start Date : June 8, 1994 * 28 * * 29 * Last Update : June 8, 1994 [JLB] * 30 * * 31 *---------------------------------------------------------------------------------------------* 32 * Functions: * 33 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 34 35 #ifndef GOPTIONS_H 36 #define GOPTIONS_H 37 38 #include "options.h" 39 #include "gadget.h" 40 41 42 class GameOptionsClass : public OptionsClass { 43 enum GameOptionsButtonEnum { 44 BUTTON_LOAD=1, 45 BUTTON_SAVE, 46 BUTTON_DELETE, 47 BUTTON_GAME, 48 BUTTON_QUIT, 49 BUTTON_RESUME, 50 BUTTON_RESTATE, 51 52 BUTTON_COUNT, 53 }; 54 55 enum GameOptionsEnum { 56 #if(0) 57 58 OPTION_WIDTH=(216+8), 59 OPTION_HEIGHT=100, 60 OPTION_X=((320 - OPTION_WIDTH) / 2), 61 OPTION_Y=((200 - OPTION_HEIGHT) / 2), 62 #ifdef FRENCH 63 BUTTON_WIDTH=142, 64 #else 65 BUTTON_WIDTH=130, 66 #endif 67 // OBUTTON_HEIGHT=13, 68 NUMBER_OF_BUTTONS=6, 69 CAPTION_Y_POS=5, 70 BUTTON_Y=21, 71 BORDER1_LEN=72, 72 BORDER2_LEN=16, 73 BUTTON_RESUME_Y=(OPTION_HEIGHT-15) 74 75 #endif 76 }; 77 78 public: 79 GameOptionsClass(void): OptionsClass () { }; 80 void Adjust_Variables_For_Resolution(void); 81 void Process(void); 82 83 private: 84 int OptionWidth; 85 int OptionHeight; 86 int OptionX; 87 int OptionY; 88 int ButtonWidth; 89 int OButtonHeight; 90 int CaptionYPos; 91 int ButtonY; 92 int Border1Len; 93 int Border2Len; 94 int ButtonResumeY; 95 }; 96 97 #endif