| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 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 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /DescentIII/Main/editor/roomkeypaddialog.h $ |
| 21 | * $Revision: 1.1.1.1 $ |
| 22 | * $Date: 2003-08-26 03:57:38 $ |
| 23 | * $Author: kevinb $ |
| 24 | * |
| 25 | * Room keypad |
| 26 | * |
| 27 | * $Log: not supported by cvs2svn $ |
| 28 | * |
| 29 | * 35 10/21/99 1:33p Jeff |
| 30 | * added checkbox to prevent certain rooms from lighting |
| 31 | * |
| 32 | * 34 4/29/99 5:44p Chris |
| 33 | * Added the check for bad center points |
| 34 | * |
| 35 | * 33 4/28/99 1:39p Chris |
| 36 | * Added the ability to block portals |
| 37 | * |
| 38 | * 32 4/14/99 7:21p Jason |
| 39 | * added secret room checkbox |
| 40 | * |
| 41 | * 31 4/03/99 7:55p Matt |
| 42 | * Use new keypad update system instead of timer to update. |
| 43 | * |
| 44 | * 30 3/31/99 5:15p Matt |
| 45 | * Added checkboxes on the room tab to control rendering of faces based on |
| 46 | * shell flag. |
| 47 | * |
| 48 | * 29 3/31/99 11:34a Matt |
| 49 | * Got rid of unused forcefield checkbox on room tab |
| 50 | * |
| 51 | * 28 2/03/99 5:48p Matt |
| 52 | * Added room damage system |
| 53 | * |
| 54 | * 27 1/08/99 5:37p Samir |
| 55 | * reverb values per room. |
| 56 | * |
| 57 | * 26 12/22/98 2:03p Matt |
| 58 | * Added room names, and made rooms not compress so that room numbers are |
| 59 | * suitable for persistant uses. |
| 60 | * |
| 61 | * 25 10/06/98 6:08p Jason |
| 62 | * added RF_TRIANGULATE so that special rooms (with non-planar UVS) can be |
| 63 | * drawn correctly |
| 64 | * |
| 65 | * 24 10/04/98 2:35p Matt |
| 66 | * Added debug options to limit rendering |
| 67 | * |
| 68 | * 23 8/28/98 6:21p Matt |
| 69 | * Added a function to flip a face. |
| 70 | * |
| 71 | * 22 8/27/98 7:16p Jason |
| 72 | * changes to dialog |
| 73 | * |
| 74 | * 21 8/17/98 6:40p Matt |
| 75 | * Added ambient sound system |
| 76 | * |
| 77 | * 20 7/20/98 4:46p Jason |
| 78 | * added BOA vis table stuff |
| 79 | * |
| 80 | * 19 7/16/98 12:06p Jason |
| 81 | * added special flags to room structure |
| 82 | * |
| 83 | * 18 3/16/98 6:41p Jason |
| 84 | * added goal room stuff |
| 85 | * |
| 86 | * 17 3/06/98 3:23p Jason |
| 87 | * added lighting from satellites to indoor rooms |
| 88 | * |
| 89 | * 16 2/10/98 7:46p Matt |
| 90 | * Added roompad check boxes for fuelcen and goals |
| 91 | * |
| 92 | * 15 2/10/98 1:12p Jason |
| 93 | * added forcefields and saturating walls |
| 94 | * |
| 95 | * 14 11/05/97 9:31p Jason |
| 96 | * made render_external_rooms button work |
| 97 | * |
| 98 | * 13 10/01/97 7:49p Matt |
| 99 | * Added "External Room" checkbox on room keypad |
| 100 | * |
| 101 | * 12 9/14/97 9:48p Matt |
| 102 | * Made CEditorView a friend class |
| 103 | * |
| 104 | * 11 9/10/97 5:13p Matt |
| 105 | * Made small portal change to room keypad |
| 106 | * |
| 107 | * 10 9/06/97 10:53p Matt |
| 108 | * Added portal stuff to room keypad |
| 109 | * |
| 110 | * 9 9/06/97 3:14p Matt |
| 111 | * Added button to go to next portal |
| 112 | * Added seperate face & vert count displays for current room & cur |
| 113 | * palette room |
| 114 | * Use new PrintToDsgItem() function |
| 115 | * |
| 116 | * 8 9/02/97 12:14p Samir |
| 117 | * Fixed scrolling. |
| 118 | * |
| 119 | * 7 8/29/97 3:57p Samir |
| 120 | * This should add scrolling support. |
| 121 | * |
| 122 | * 6 8/21/97 5:59p Matt |
| 123 | * Added next vertex & combine faces functions |
| 124 | * |
| 125 | * 5 8/01/97 4:56p Jason |
| 126 | * added face moving |
| 127 | * |
| 128 | * 4 8/01/97 12:50p Jason |
| 129 | * added code to support scaling of rooms/faces/edges |
| 130 | * |
| 131 | * 3 7/31/97 3:31p Jason |
| 132 | * added functions to rotate portal rooms |
| 133 | * |
| 134 | * 3 6/27/97 4:15p Jason |
| 135 | * added room stuff |
| 136 | * |
| 137 | * 2 6/27/97 3:10p Jason |
| 138 | * added groovy stuff for rooms |
| 139 | * |
| 140 | * 1 6/27/97 11:38a Samir |
| 141 | * Initial rev. |
| 142 | * |
| 143 | * $NoKeywords: $ |
| 144 | */ |
| 145 | |
| 146 | #if !defined(AFX_ROOMKEYPADDIALOG_H__DDBE5AC1_EEDC_11D0_941E_00000000E8E8__INCLUDED_) |
| 147 | #define AFX_ROOMKEYPADDIALOG_H__DDBE5AC1_EEDC_11D0_941E_00000000E8E8__INCLUDED_ |
| 148 | |
| 149 | #if _MSC_VER >= 1000 |
| 150 | #pragma once |
| 151 | #endif // _MSC_VER >= 1000 |
| 152 | // RoomKeypadDialog.h : header file |
| 153 | // |
| 154 | |
| 155 | #include "KeypadDialog.h" |
| 156 | |
| 157 | ///////////////////////////////////////////////////////////////////////////// |
| 158 | // CRoomKeypadDialog dialog |
| 159 | |
| 160 | class CRoomKeypadDialog : public CKeypadDialog { |
| 161 | // Construction |
| 162 | public: |
| 163 | CRoomKeypadDialog(CWnd *pParent = NULL); // standard constructor |
| 164 | void UpdateKeypad(int mask); |
| 165 | |
| 166 | virtual void RunKeypadFunction(int code); |
| 167 | |
| 168 | // Dialog Data |
| 169 | //{{AFX_DATA(CRoomKeypadDialog) |
| 170 | enum { IDD = IDD_ROOMKEYPAD }; |
| 171 | // NOTE: the ClassWizard will add data members here |
| 172 | //}}AFX_DATA |
| 173 | |
| 174 | // Overrides |
| 175 | // ClassWizard generated virtual function overrides |
| 176 | //{{AFX_VIRTUAL(CRoomKeypadDialog) |
| 177 | protected: |
| 178 | virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support |
| 179 | //}}AFX_VIRTUAL |
| 180 | |
| 181 | // Implementation |
| 182 | protected: |
| 183 | // Generated message map functions |
| 184 | //{{AFX_MSG(CRoomKeypadDialog) |
| 185 | afx_msg void OnLoadRoom(); |
| 186 | afx_msg void OnSaveRoomLocally(); |
| 187 | afx_msg void OnSelendokRoomPulldown(); |
| 188 | afx_msg void OnPaint(); |
| 189 | afx_msg BOOL OnHelpInfo(HELPINFO *pHelpInfo); |
| 190 | afx_msg void OnMarkRoom(); |
| 191 | afx_msg void OnRoompadRotateLeft(); |
| 192 | afx_msg void OnRoompadRotateRight(); |
| 193 | afx_msg void OnRoompadPitchForward(); |
| 194 | afx_msg void OnRoompadPitchBackward(); |
| 195 | afx_msg void OnRoompadBankRight(); |
| 196 | afx_msg void OnRoompadBankLeft(); |
| 197 | afx_msg void OnRoompadNextEdge(); |
| 198 | afx_msg void OnRoompadExpandRoom(); |
| 199 | afx_msg void OnRoompadContractRoom(); |
| 200 | afx_msg void OnRoompadExpandFace(); |
| 201 | afx_msg void OnRoompadContractFace(); |
| 202 | afx_msg void OnRoompadExpandEdge(); |
| 203 | afx_msg void OnRoompadContractEdge(); |
| 204 | afx_msg void OnRoompadMoveForward(); |
| 205 | afx_msg void OnRoompadMoveBackward(); |
| 206 | afx_msg void OnRoompadMoveRight(); |
| 207 | afx_msg void OnRoompadMoveLeft(); |
| 208 | afx_msg void OnRoompadMoveUp(); |
| 209 | afx_msg void OnRoompadMoveDown(); |
| 210 | afx_msg void OnRoompadNextVertex(); |
| 211 | afx_msg void OnRoompadCombineFaces(); |
| 212 | afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar); |
| 213 | afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar); |
| 214 | afx_msg void OnSize(UINT nType, int cx, int cy); |
| 215 | afx_msg void OnRoompadNextPortal(); |
| 216 | virtual BOOL OnInitDialog(); |
| 217 | afx_msg void OnRenderPortalFaces(); |
| 218 | afx_msg void OnEnablePortalFlythrough(); |
| 219 | afx_msg void OnExternalRoom(); |
| 220 | afx_msg void OnRenderExternalRooms(); |
| 221 | afx_msg void OnNextFace(); |
| 222 | afx_msg void OnRoompadGoal1(); |
| 223 | afx_msg void OnRoompadGoal2(); |
| 224 | afx_msg void OnRoompadRefuelingCenter(); |
| 225 | afx_msg void OnTouchesOutside(); |
| 226 | afx_msg void OnRoompadGoal3(); |
| 227 | afx_msg void OnRoompadGoal4(); |
| 228 | afx_msg void OnGoalfaceCheck(); |
| 229 | afx_msg void OnSpecial1(); |
| 230 | afx_msg void OnSpecial2(); |
| 231 | afx_msg void OnSpecial3(); |
| 232 | afx_msg void OnSpecial4(); |
| 233 | afx_msg void OnSpecial5(); |
| 234 | afx_msg void OnSpecial6(); |
| 235 | afx_msg void OnBoaVisButton(); |
| 236 | afx_msg void OnSelendokRoomAmbient(); |
| 237 | afx_msg void OnMirrorButton(); |
| 238 | afx_msg void OnNoMirrorButton(); |
| 239 | afx_msg void OnRoompadFlipFace(); |
| 240 | afx_msg void OnRoompadNoDrawTerrain(); |
| 241 | afx_msg void OnRoompadOneRoomOnly(); |
| 242 | afx_msg void OnTriangulate(); |
| 243 | afx_msg void OnEditName(); |
| 244 | afx_msg void OnSelchangeRoomEnvaudio(); |
| 245 | afx_msg void OnKillfocusRoompadDamage(); |
| 246 | afx_msg void OnSelchangeRoompadDamageType(); |
| 247 | afx_msg void OnRenderShell(); |
| 248 | afx_msg void OnRenderNonShell(); |
| 249 | afx_msg void OnSecretCheck(); |
| 250 | afx_msg void OnPortalBlockedCheck(); |
| 251 | afx_msg void OnPortalBlockedCanGoAwayCheck(); |
| 252 | afx_msg void OnBadCenterpoints(); |
| 253 | afx_msg void OnRoomSkipLighting(); |
| 254 | //}}AFX_MSG |
| 255 | DECLARE_MESSAGE_MAP() |
| 256 | |
| 257 | private: |
| 258 | void LoadSettings(); |
| 259 | void SaveSettings(); |
| 260 | |
| 261 | static int m_Instances; // number of instances of this keypad. |
| 262 | void UpdateDialog(); |
| 263 | |
| 264 | friend class CEditorView; |
| 265 | }; |
| 266 | |
| 267 | //{{AFX_INSERT_LOCATION}} |
| 268 | // Microsoft Developer Studio will insert additional declarations immediately before the previous line. |
| 269 | |
| 270 | #endif // !defined(AFX_ROOMKEYPADDIALOG_H__DDBE5AC1_EEDC_11D0_941E_00000000E8E8__INCLUDED_) |