DESCDLG.H (3204B)
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: /CounterStrike/DESCDLG.H 1 3/03/97 10:24a 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 : DESCDLG.H * 24 * * 25 * Programmer : Maria del Mar McCready Legg * 26 * Joe L. Bostic * 27 * * 28 * Start Date : Jan 26, 1995 * 29 * * 30 * Last Update : Jan 26, 1995 [MML] * 31 * * 32 *---------------------------------------------------------------------------------------------*/ 33 34 #ifndef DESCDLG_H 35 #define DESCDLG_H 36 37 #include "gadget.h" 38 39 class DescriptionClass 40 { 41 private: 42 43 enum DescriptionClassEnum { 44 OPTION_WIDTH=216, // Width of dialog box. 45 OPTION_HEIGHT=122, // Height of dialog box. 46 OPTION_X=(((320 - OPTION_WIDTH) / 2) & ~7), 47 OPTION_Y=((200 - OPTION_HEIGHT) / 2), 48 TEXT_X=OPTION_X+32, // Title's x pos 49 TEXT_Y=OPTION_Y+32, // Add 11 for each following line 50 BUTTON_OPTIONS=1, // Button number for "Ok" 51 BUTTON_CANCEL, 52 BUTTON_EDIT, 53 BUTTON_X=OPTION_X+63, // Options button x pos 54 BUTTON_Y=OPTION_Y+102, // Options button y pos 55 EDIT_Y =OPTION_Y+50, 56 EDIT_W =180 //204, 57 }; 58 59 public: 60 DescriptionClass(void) {}; 61 void Process(char *string); 62 }; 63 64 #endif 65 66