SOUNDDLG.H (4328B)
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\sounddlg.h_v 2.18 16 Oct 1995 16:46:48 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 SOUNDDLG_H 36 #define SOUNDDLG_H 37 38 #include "gadget.h" 39 40 class SoundControlsClass 41 { 42 enum SoundControlsClassEnums { 43 #ifdef FRENCH 44 OPTION_WIDTH=308, 45 #else 46 OPTION_WIDTH=292, 47 #endif 48 OPTION_HEIGHT=146, 49 50 OPTION_X=((320 - OPTION_WIDTH) / 2), 51 OPTION_Y=(200 - OPTION_HEIGHT) / 2, 52 53 LISTBOX_X=1, 54 LISTBOX_Y=54, 55 LISTBOX_W=290, 56 LISTBOX_H=72, 57 58 BUTTON_WIDTH=85, 59 BUTTON_X=OPTION_WIDTH-(BUTTON_WIDTH+7), // Options button x pos 60 BUTTON_Y=130, // Options button y pos 61 62 STOP_X=5, // Stop button X. 63 STOP_Y=129, // Stop button Y. 64 65 PLAY_X=23, 66 PLAY_Y=129, 67 68 ONOFF_WIDTH=25, 69 #ifdef GERMAN 70 SHUFFLE_X=79,//BGA:91, 71 #else 72 #ifdef FRENCH 73 SHUFFLE_X=99, 74 #else 75 SHUFFLE_X=91, 76 #endif 77 #endif 78 SHUFFLE_Y=130, 79 80 #ifdef FRENCH 81 REPEAT_X=174, 82 #else 83 REPEAT_X=166, 84 #endif 85 REPEAT_Y=130, 86 87 MSLIDER_X=147, 88 MSLIDER_Y=28, 89 MSLIDER_W=108, 90 MSLIDER_HEIGHT=5, 91 92 FXSLIDER_X=147, 93 FXSLIDER_Y=40, 94 FXSLIDER_W=108, 95 FXSLIDER_HEIGHT=5, 96 97 BUTTON_STOP = 605, 98 BUTTON_PLAY, 99 BUTTON_SHUFFLE, 100 BUTTON_REPEAT, 101 BUTTON_OPTIONS, 102 SLIDER_MUSIC, 103 // SLIDER_SPEECH, 104 SLIDER_SOUND, 105 BUTTON_LISTBOX, 106 }; 107 108 public: 109 SoundControlsClass(void) {} 110 void Process(void); 111 int Init(void); 112 113 private: 114 115 int Option_Width; 116 int Option_Height; 117 118 int Option_X; 119 int Option_Y; 120 121 int Listbox_X; 122 int Listbox_Y; 123 int Listbox_W; 124 int Listbox_H; 125 126 int Button_Width; 127 int Button_X; 128 int Button_Y; 129 130 int Stop_X; 131 int Stop_Y; 132 133 int Play_X; 134 int Play_Y; 135 136 int OnOff_Width; 137 138 int Shuffle_X; 139 int Shuffle_Y; 140 141 int Repeat_X; 142 int Repeat_Y; 143 144 int MSlider_X; 145 int MSlider_Y; 146 int MSlider_W; 147 int MSlider_Height; 148 149 int FXSlider_X; 150 int FXSlider_Y; 151 int FXSlider_W; 152 int FXSlider_Height; 153 154 }; 155 156 #endif