| 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/multi_ui.cpp $ |
| 21 | * $Revision: 105 $ |
| 22 | * $Date: 7/09/01 3:34p $ |
| 23 | * $Author: Matt $ |
| 24 | * |
| 25 | * |
| 26 | * |
| 27 | * $Log: /DescentIII/main/multi_ui.cpp $ |
| 28 | * |
| 29 | * 105 7/09/01 3:34p Matt |
| 30 | * Require at least one allowed ship when starting a netgame. |
| 31 | * |
| 32 | * 104 4/20/00 6:25p Matt |
| 33 | * Netgame info dialog was looking at wrong variable for the difficulty |
| 34 | * level. |
| 35 | * |
| 36 | * 103 8/02/99 9:57a Kevin |
| 37 | * fixed port parameter with -pxo |
| 38 | * |
| 39 | * 102 5/19/99 1:10p Kevin |
| 40 | * set the default (or previously selected) difficulty level |
| 41 | * |
| 42 | * 101 5/09/99 4:55p Kevin |
| 43 | * Added some options for directplay games |
| 44 | * |
| 45 | * 100 5/09/99 1:34p Kevin |
| 46 | * Added diffuculty level system to multiplayer |
| 47 | * |
| 48 | * 99 5/08/99 3:58p Kevin |
| 49 | * made ESC clear the game info dialog |
| 50 | * |
| 51 | * 98 5/06/99 6:11p Kevin |
| 52 | * fixes for save/load game syste. Also require CD again and added some |
| 53 | * heat.net stuff |
| 54 | * |
| 55 | * 97 5/06/99 1:04a Kevin |
| 56 | * Fixed stupid default selection problem |
| 57 | * |
| 58 | * 96 5/05/99 11:59p Kevin |
| 59 | * fixed command line parms for auto connecting |
| 60 | * |
| 61 | * 95 5/05/99 11:16p Kevin |
| 62 | * heat.net stuff among other things |
| 63 | * |
| 64 | * 94 4/28/99 10:04p Kevin |
| 65 | * doh! forgot to return a value |
| 66 | * |
| 67 | * 93 4/28/99 6:39p Kevin |
| 68 | * Build 182 fixes |
| 69 | * |
| 70 | * 92 4/26/99 9:11p Matt |
| 71 | * Use small font instead of old UI font. |
| 72 | * |
| 73 | * 91 4/25/99 5:02p Kevin |
| 74 | * Bunches of multiplayer UI improvements |
| 75 | * |
| 76 | * 90 4/25/99 9:44a Kevin |
| 77 | * localized remaining game info strings |
| 78 | * |
| 79 | * 89 4/25/99 8:58a Kevin |
| 80 | * fixes for server info dialog |
| 81 | * |
| 82 | * 88 4/24/99 11:58p Kevin |
| 83 | * Game info list (hit I in the pxo game list) |
| 84 | * |
| 85 | * 87 4/23/99 5:32p Kevin |
| 86 | * Fixed a few mission bugs. |
| 87 | * |
| 88 | * 86 4/20/99 11:47a Samir |
| 89 | * converted protocol help to newui and fixed connection menu so enter |
| 90 | * worked on listbox. |
| 91 | * |
| 92 | * 85 4/17/99 3:44p Kevin |
| 93 | * Demo2 changes & fixes |
| 94 | * |
| 95 | * 84 4/16/99 6:00p Kevin |
| 96 | * Bunches of Demo stuff |
| 97 | * |
| 98 | * 83 4/16/99 3:17p Kevin |
| 99 | * More mouselook support |
| 100 | * |
| 101 | * 82 4/16/99 11:56a Matt |
| 102 | * Changed directplay code to be "ifdef _WIN32" instead of "ifndef |
| 103 | * __LINUX__" so it will work on the Mac. |
| 104 | * |
| 105 | * 81 4/15/99 3:36p Kevin |
| 106 | * Added mouselook UI stuff to the multiplayer options menu |
| 107 | * |
| 108 | * 80 4/15/99 1:41a Jeff |
| 109 | * changes for linux compile |
| 110 | * |
| 111 | * 79 4/14/99 4:19a Jeff |
| 112 | * more case mismatch fixes in #includes |
| 113 | * |
| 114 | * 78 4/14/99 2:51a Jeff |
| 115 | * fixed some case mismatched #includes |
| 116 | * |
| 117 | * 77 4/08/99 4:54p Kevin |
| 118 | * Display level warp dialog for multiplayer |
| 119 | * |
| 120 | * 76 4/03/99 9:26p Jeff |
| 121 | * changed dialogs that weren't using UID_OK and UID_CANCEL to use and |
| 122 | * handle them properly |
| 123 | * |
| 124 | * 75 3/25/99 3:29p Jason |
| 125 | * added option to randomize powerup respawn points |
| 126 | * |
| 127 | * 74 3/03/99 12:44p Jason |
| 128 | * made options mirror that of the 1.1 demo |
| 129 | * |
| 130 | * 73 3/01/99 12:55a Matt |
| 131 | * Deleted some obsolete strings from the string table, and moved some |
| 132 | * formatting info from the table to the code. |
| 133 | * |
| 134 | * 72 2/28/99 6:00p Jeff |
| 135 | * converted to new ui |
| 136 | * |
| 137 | * 71 2/24/99 4:00p Jason |
| 138 | * fixed flush problem when going to the join menu |
| 139 | * |
| 140 | * 70 2/20/99 2:31p Kevin |
| 141 | * Made multiplayer DLLs return to the game list after a game. |
| 142 | * |
| 143 | * 69 2/15/99 7:50p Jeff |
| 144 | * new pilot file class and read/write system checked in...should be more |
| 145 | * robust than old |
| 146 | * |
| 147 | * 68 2/10/99 1:32p Kevin |
| 148 | * Added tablefile ignore thingy |
| 149 | * |
| 150 | * 67 2/08/99 2:39p Kevin |
| 151 | * Fixed command line joining & disabled gamespy launching in OEM builds |
| 152 | * |
| 153 | * 66 1/29/99 5:22p Jeff |
| 154 | * localization |
| 155 | * |
| 156 | * 65 1/23/99 3:21p Kevin |
| 157 | * Fixed default selection to work with new sorted listboxes |
| 158 | * |
| 159 | * 64 1/05/99 5:09p Jason |
| 160 | * added permissable server networking (ala Quake/Unreal) to Descent3 |
| 161 | * |
| 162 | * 63 1/04/99 6:56p Kevin |
| 163 | * Fixed unmatched if/else |
| 164 | * |
| 165 | * 62 12/30/98 3:49p Kevin |
| 166 | * Moved multiplayer options out of DLL and into main app |
| 167 | * |
| 168 | * 61 11/20/98 11:16a Kevin |
| 169 | * Fixed command line game launching |
| 170 | * |
| 171 | * 60 11/19/98 5:40p Kevin |
| 172 | * Demo system |
| 173 | * |
| 174 | * 59 10/24/98 10:49a Kevin |
| 175 | * Fixed Direct Serial Game |
| 176 | * |
| 177 | * 58 10/20/98 5:47p Kevin |
| 178 | * Gunboy and other fixes |
| 179 | * |
| 180 | * 57 10/19/98 11:54a Kevin |
| 181 | * |
| 182 | * 56 10/19/98 10:54a Kevin |
| 183 | * Fixed help option |
| 184 | * |
| 185 | * 55 10/16/98 11:55a Kevin |
| 186 | * Made dlls loadable in a hog |
| 187 | * |
| 188 | * 54 10/15/98 10:58a Kevin |
| 189 | * fixed ~ thingy for the first file in the dir |
| 190 | * |
| 191 | * 53 10/14/98 2:48p Kevin |
| 192 | * Changed memory code to comply with mem lib |
| 193 | * |
| 194 | * 52 10/09/98 12:59a Craig |
| 195 | * Fixed ship name for demo |
| 196 | * |
| 197 | * 51 10/06/98 5:34p Jeff |
| 198 | * various UI changes/improvements |
| 199 | * |
| 200 | * 50 10/01/98 11:45a Kevin |
| 201 | * fixed hotspot colors in allow/disallow screen |
| 202 | * |
| 203 | * 49 9/30/98 10:36a Kevin |
| 204 | * Added command line launching of URLs and command line directory |
| 205 | * specification |
| 206 | * |
| 207 | * 48 9/29/98 2:23p Kevin |
| 208 | * More UI tweaks |
| 209 | * |
| 210 | * 47 9/28/98 6:53p Kevin |
| 211 | * localized some multiplayer menus |
| 212 | * |
| 213 | * 46 9/28/98 4:35p Jeff |
| 214 | * general UI changes and improvements |
| 215 | * |
| 216 | * 45 9/28/98 4:21p Kevin |
| 217 | * Redesigned game list menus |
| 218 | * |
| 219 | * 44 9/28/98 9:53a Kevin |
| 220 | * Fixing misc UI problems, and fixed some bugs that VC 6 found |
| 221 | * |
| 222 | * 43 9/25/98 11:07a Kevin |
| 223 | * fixed columns to line up and cleaned up some PXO bugs |
| 224 | * |
| 225 | * 42 9/23/98 6:33p Kevin |
| 226 | * Fixed load settings |
| 227 | * |
| 228 | * 41 9/23/98 2:54p Kevin |
| 229 | * Saved multi config and changed UI to conform |
| 230 | * |
| 231 | * 40 9/22/98 3:55p Kevin |
| 232 | * Removed obsolete function |
| 233 | * |
| 234 | * 39 9/22/98 2:29p Kevin |
| 235 | * moved ships allowed code out of dll and into main app. Also added |
| 236 | * powerup exclusions |
| 237 | * |
| 238 | * 38 8/26/98 1:31p Jason |
| 239 | * Flush buffers before starting a game |
| 240 | * |
| 241 | * 37 8/17/98 11:00a Kevin |
| 242 | * Moved DLLs into subdirectories |
| 243 | * |
| 244 | * 36 8/15/98 5:16p Matt |
| 245 | * Added new Base_directory variable. Got rid of D3_LOCAL check and |
| 246 | * 'local directory' registry variable. |
| 247 | * |
| 248 | * 35 7/10/98 10:47a Kevin |
| 249 | * Added command line connecting to games |
| 250 | * |
| 251 | * 34 7/01/98 2:52p Kevin |
| 252 | * coop -- adding sound index |
| 253 | * |
| 254 | * 33 6/24/98 6:40p Kevin |
| 255 | * Added help to main dll menu |
| 256 | * |
| 257 | * 32 6/18/98 4:49p Kevin |
| 258 | * Updated multiplayer menus |
| 259 | * |
| 260 | * 31 6/16/98 10:54a Jeff |
| 261 | * |
| 262 | * 30 6/11/98 2:33p Kevin |
| 263 | * Updated dsps for new dll names |
| 264 | * |
| 265 | * 29 6/11/98 2:11p Kevin |
| 266 | * New Main multiplayer menu & dlls renamed to d3c |
| 267 | * |
| 268 | * 28 6/01/98 12:09p Kevin |
| 269 | * closed the menu before loading DLLs |
| 270 | * |
| 271 | * 27 6/01/98 10:09a Kevin |
| 272 | * Added DLL connection interface and auto update DLL |
| 273 | * |
| 274 | * 26 5/12/98 5:59p Jason |
| 275 | * fixed stupid timer bug |
| 276 | * |
| 277 | * 25 5/05/98 3:02p Jason |
| 278 | * attempting to add different screen resolutions |
| 279 | * |
| 280 | * 24 5/04/98 10:56a Kevin |
| 281 | * Mastertracker fixes/enhancements |
| 282 | * |
| 283 | * 23 5/01/98 12:28p Kevin |
| 284 | * Added new user registration button for MT |
| 285 | * |
| 286 | * 22 4/30/98 3:50p Kevin |
| 287 | * Mastertracker pilot stats |
| 288 | * |
| 289 | * 21 4/28/98 12:50p Kevin |
| 290 | * Master tracker login |
| 291 | * |
| 292 | * 20 4/27/98 7:12p Kevin |
| 293 | * Mastertracker pilot tracker |
| 294 | * |
| 295 | * 19 4/24/98 3:50p Kevin |
| 296 | * Added mastertracker game tracking support |
| 297 | * |
| 298 | * 18 4/23/98 4:49p Kevin |
| 299 | * Added Master tracker Game tracker support |
| 300 | * |
| 301 | * 17 4/23/98 2:12p Kevin |
| 302 | * Adding Mastertracker stuff |
| 303 | * |
| 304 | * 16 4/14/98 7:56p Matt |
| 305 | * Moved MSN_NAMELEN from mission.h to descent,h, so multi.h didn't need |
| 306 | * to include mission.h. |
| 307 | * Changed code to use ddio_MakePath() instead of sprintf() to make file |
| 308 | * spec. |
| 309 | * |
| 310 | */ |
| 311 | |
| 312 | #include "args.h"cxx . . $ `<file>/Descent3/args.h`/ |
| 313 | #include "ui.h"cxx . . $ `<file>/ui/ui.h`/ |
| 314 | #include "newui.h"cxx . . $ `<file>/Descent3/newui.h`/ |
| 315 | #include "game.h"cxx . . $ `<file>/Descent3/game.h`/ |
| 316 | #include "gamefont.h"cxx . . $ `<file>/Descent3/gamefont.h`/ |
| 317 | #include "descent.h"cxx . . $ `<file>/Descent3/descent.h`/ |
| 318 | #include "multi.h"cxx . . $ `<file>/Descent3/multi.h`/ |
| 319 | #include "multi_ui.h"cxx . . $ `<file>/Descent3/multi_ui.h`/ |
| 320 | #include "multi_server.h"cxx . . $ `<file>/Descent3/multi_server.h`/ |
| 321 | #include "multi_client.h"cxx . . $ `<file>/Descent3/multi_client.h`/ |
| 322 | #include "networking.h"cxx . . $ `<file>/lib/networking.h`/ |
| 323 | #include "player.h"cxx . . $ `<file>/Descent3/player.h`/ |
| 324 | #include "manage.h"cxx . . $ `<file>/lib/manage.h`/ |
| 325 | #include "pilot.h"cxx . . $ `<file>/Descent3/pilot.h`/ |
| 326 | #include <stdlib.h> |
| 327 | #include "ddio.h"cxx . . $ `<file>/ddio/ddio.h`/ |
| 328 | #include "objinfo.h"cxx . . $ `<file>/Descent3/objinfo.h`/ |
| 329 | #include "stringtable.h"cxx . . $ `<file>/Descent3/stringtable.h`/ |
| 330 | #include "ConfigItem.h"cxx . . $ `<file>/Descent3/ConfigItem.h`/ |
| 331 | #include "appdatabase.h"cxx . . $ `<file>/lib/appdatabase.h`/ |
| 332 | |
| 333 | // #define USE_DIRECTPLAY |
| 334 | |
| 335 | #ifdef USE_DIRECTPLAY |
| 336 | #include "directplay.h" |
| 337 | #endif |
| 338 | |
| 339 | #include "ship.h"cxx . . $ `<file>/Descent3/ship.h`/ |
| 340 | |
| 341 | #include "multi_dll_mgr.h"cxx . . $ `<file>/Descent3/multi_dll_mgr.h`/ |
| 342 | #include "Mission.h"cxx . . $ `<file>/Descent3/Mission.h`/ |
| 343 | #include "menu.h"cxx . . $ `<file>/Descent3/menu.h`/ |
| 344 | |
| 345 | #include "multi_save_settings.h"cxx . . $ `<file>/Descent3/multi_save_settings.h`/ |
| 346 | |
| 347 | #include <algorithm> |
| 348 | |
| 349 | #define MAIN_MULTI_MENU_Wcxx . . $ `Descent3/multi_ui.cpp:349:9`! 384 |
| 350 | #define MAIN_MULTI_MENU_Hcxx . . $ `Descent3/multi_ui.cpp:350:9`! 256 |
| 351 | #define MAIN_MULTI_MENU_Xcxx . . $ `Descent3/multi_ui.cpp:351:9`! 320 - (MAIN_MULTI_MENU_W / 2) |
| 352 | #define MAIN_MULTI_MENU_Ycxx . . $ `Descent3/multi_ui.cpp:352:9`! 240 - (MAIN_MULTI_MENU_H / 2) |
| 353 | |
| 354 | #define HELP_MULTI_MENU_Wcxx . . $ `Descent3/multi_ui.cpp:354:9`! 512 |
| 355 | #define HELP_MULTI_MENU_Hcxx . . $ `Descent3/multi_ui.cpp:355:9`! 192 |
| 356 | #define HELP_MULTI_MENU_Xcxx . . $ `Descent3/multi_ui.cpp:356:9`! 320 - (MAIN_MULTI_MENU_W / 2) |
| 357 | #define HELP_MULTI_MENU_Ycxx . . $ `Descent3/multi_ui.cpp:357:9`! 240 - (MAIN_MULTI_MENU_H / 2) |
| 358 | |
| 359 | #define MAX_HELP_TEXT_LENcxx . . $ `Descent3/multi_ui.cpp:359:9`! 1000 |
| 360 | char HelpText1cxx . . $ HelpText1.[MAX_HELP_TEXT_LENcxx . . $ `Descent3/multi_ui.cpp:359:9`!]; |
| 361 | char HelpText2cxx . . $ HelpText2.[MAX_HELP_TEXT_LENcxx . . $ `Descent3/multi_ui.cpp:359:9`!]; |
| 362 | char HelpText3cxx . . $ HelpText3.[MAX_HELP_TEXT_LENcxx . . $ `Descent3/multi_ui.cpp:359:9`!]; |
| 363 | char HelpText4cxx . . $ HelpText4.[MAX_HELP_TEXT_LENcxx . . $ `Descent3/multi_ui.cpp:359:9`!]; |
| 364 | |
| 365 | int MultiDLLGameStartingcxx . . $ MultiDLLGameStarting. = 0; |
| 366 | |
| 367 | void DisplayNetDLLHelpcxx . . $ DisplayNetDLLHelp(85c52e162fed56f9).(const char *topic); |
| 368 | // The first multiplayer menu that the user will see...all multiplayer stuff is |
| 369 | // reached from this menu |
| 370 | // Returns true if we're starting a multiplayer game |
| 371 | #define MAX_DLLScxx . . $ `Descent3/multi_ui.cpp:371:9`! 10 |
| 372 | #define JEFF_REDcxx . . $ `Descent3/multi_ui.cpp:372:9`! GR_RGB(255, 40, 40) |
| 373 | #define MAX_NET_DLL_LENcxx . . $ `Descent3/multi_ui.cpp:373:9`! 100 |
| 374 | |
| 375 | #define UID_MULTILBcxx . . $ `Descent3/multi_ui.cpp:375:9`! 0x1000 |
| 376 | |
| 377 | #define HEAT_NAMEcxx . . $ `Descent3/multi_ui.cpp:377:9`! "HEAT.NET" |
| 378 | #define PXO_NAMEcxx . . $ `Descent3/multi_ui.cpp:378:9`! "Parallax Online" |
| 379 | |
| 380 | int MainMultiplayerMenucxx . . $ MainMultiplayerMenu(b126dc7c1de90089).() { |
| 381 | |
| 382 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Entering MainMultiplayerMenu()\n"); |
| 383 | |
| 384 | #ifdef USE_DIRECTPLAY |
| 385 | Num_directplay_games = 0; |
| 386 | #endif |
| 387 | int exit_menu = 0; |
| 388 | int ret = 0; |
| 389 | char sznetgame[MAX_NET_DLL_LENcxx . . $ `Descent3/multi_ui.cpp:373:9`!] = ""; |
| 390 | int netgamelen = MAX_NET_DLL_LENcxx . . $ `Descent3/multi_ui.cpp:373:9`!; |
| 391 | int i; |
| 392 | uint32_tcxx . . $ uint32_t# j; |
| 393 | |
| 394 | for (i = 0; i < MAX_OBJECT_IDScxx . . $ `Descent3/objinfo.h:327:9`!; i++) { |
| 395 | if (Object_infocxx . . $ Object_info.[i].typecxx . . $ object_info#type. == OBJ_POWERUPcxx . . $ `Descent3/object_external.h:167:9`!) { |
| 396 | Object_infocxx . . $ Object_info.[i].multi_allowedcxx . . $ object_info#multi_allowed. = 1; |
| 397 | } |
| 398 | } |
| 399 | for (i = 0; i < MAX_SHIPScxx . . $ `Descent3/ship.h:122:9`!; i++) { |
| 400 | if (Shipscxx . . $ Ships.[i].usedcxx . . $ ship#used.) { |
| 401 | |
| 402 | #ifdef DEMO |
| 403 | if (stricmp(Ships[i].name, "pyro-gl") == 0) |
| 404 | #endif |
| 405 | PlayerSetShipPermissioncxx . . $ PlayerSetShipPermission(fb2bb0cf4ad3de37).(-1, Shipscxx . . $ Ships.[i].namecxx . . $ ship#name., 1); |
| 406 | #ifdef DEMO |
| 407 | else |
| 408 | PlayerSetShipPermission(-1, Ships[i].name, 0); |
| 409 | #endif |
| 410 | } |
| 411 | } |
| 412 | // Clear out residual junk |
| 413 | MultiFlushAllIncomingBufferscxx . . $ MultiFlushAllIncomingBuffers(49f6e7a06ebc5aa8).(); |
| 414 | |
| 415 | SetScreenModecxx . . $ SetScreenMode(918ebd27a9ddbad3).(SM_MENUcxx . . $ SM_MENU.); |
| 416 | |
| 417 | Databasecxx . . $ Database.->readcxx . . $ oeAppDatabase#read(3bcbb53201fcdcb8).("DefaultNetConn", sznetgame, &netgamelen); |
| 418 | if (*sznetgame == '\0') { |
| 419 | strcpy(sznetgame, "HEAT.NET"); |
| 420 | Databasecxx . . $ Database.->writecxx . . $ oeAppDatabase#write(f827cee075336303).("DefaultNetConn", sznetgame, strlen(sznetgame) + 1); |
| 421 | } |
| 422 | |
| 423 | newuiTiledWindowcxx . . $ newuiTiledWindow# menu_wndcxx . . $ newuiTiledWindow#newuiTiledWindow(49f6e7a06ebc5aa8).; |
| 424 | newuiListBoxcxx . . $ newuiListBox# *lists; |
| 425 | newuiSheetcxx . . $ newuiSheet# *sheet; |
| 426 | |
| 427 | menu_wnd.Createcxx . . $ newuiTiledWindow#Create(9860cac3d762132).(TXT_MULTIPLAYERcxx . . $ `Descent3/stringtable.h:192:9`!, 0, 0, MAIN_MULTI_MENU_Wcxx . . $ `Descent3/multi_ui.cpp:349:9`!, MAIN_MULTI_MENU_Hcxx . . $ `Descent3/multi_ui.cpp:350:9`!); |
| 428 | sheet = menu_wnd.GetSheetcxx . . $ newuiTiledWindow#GetSheet(661381a276e5b628).(); |
| 429 | |
| 430 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(TXT_MLTCHOOSETYPEcxx . . $ `Descent3/stringtable.h:193:9`!, 25, 0); |
| 431 | lists = sheet->AddListBoxcxx . . $ newuiSheet#AddListBox(b890ce7adcd9a5ed).(256, 128, UID_MULTILBcxx . . $ `Descent3/multi_ui.cpp:375:9`!, UILB_NOSORTcxx . . $ `ui/ui.h:356:9`!); |
| 432 | lists->RemoveAllcxx . . $ newuiListBox#RemoveAll(49f6e7a06ebc5aa8).(); |
| 433 | |
| 434 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 75, 145); |
| 435 | sheet->AddLongButtoncxx . . $ newuiSheet#AddLongButton(680bf41633375800).(TXT_SETITEMDEFAULTcxx . . $ `Descent3/stringtable.h:397:9`!, 0x30); |
| 436 | |
| 437 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 55, 160, NEWUI_ALIGN_HORIZcxx . . $ NEWUI_ALIGN_HORIZ.); |
| 438 | sheet->AddButtoncxx . . $ newuiSheet#AddButton(680bf41633375800).(TXT_OKcxx . . $ `Descent3/stringtable.h:34:9`!, UID_OKcxx . . $ `ui/ui.h:368:9`!); |
| 439 | sheet->AddButtoncxx . . $ newuiSheet#AddButton(680bf41633375800).(TXT_REALHELPcxx . . $ `Descent3/stringtable.h:398:9`!, 0x20); |
| 440 | sheet->AddButtoncxx . . $ newuiSheet#AddButton(680bf41633375800).(TXT_CANCELcxx . . $ `Descent3/stringtable.h:35:9`!, UID_CANCELcxx . . $ `ui/ui.h:369:9`!); |
| 441 | |
| 442 | int dllcount = 1; |
| 443 | char buffer[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`!], fname[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`!], fext[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`!], fdir[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`!]; |
| 444 | char search[256]; |
| 445 | |
| 446 | ddio_MakePathcxx . . $ ddio_MakePath(9ad4b0815420a85).(search, Base_directorycxx . . $ Base_directory., "online", "*.d3c", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 447 | |
| 448 | int dftidx = -1; |
| 449 | dllcount = 0; |
| 450 | |
| 451 | // Put the HEAT on top. |
| 452 | if (ddio_FindFileStartcxx . . $ ddio_FindFileStart(84e74a5521f49206).(search, buffer)) { |
| 453 | |
| 454 | ddio_SplitPathcxx . . $ ddio_SplitPath(b05ba7ab99603c07).(buffer, fdir, fname, fext); |
| 455 | |
| 456 | if (!stricmpcxx . . $ `linux/linux_fix.h:43:9`!(HEAT_NAMEcxx . . $ `Descent3/multi_ui.cpp:377:9`!, fname)) { |
| 457 | lists->AddItemcxx . . $ newuiListBox#AddItem(85c52e162fed56f9).(fname); |
| 458 | dllcount++; |
| 459 | } |
| 460 | if (!stricmpcxx . . $ `linux/linux_fix.h:43:9`!(sznetgame, fname)) { |
| 461 | dftidx = 0; |
| 462 | } |
| 463 | |
| 464 | while ((ddio_FindNextFilecxx . . $ ddio_FindNextFile(c6b7e35ff6de5671).(buffer)) && (dllcount < MAX_DLLScxx . . $ `Descent3/multi_ui.cpp:371:9`!)) { |
| 465 | ddio_SplitPathcxx . . $ ddio_SplitPath(b05ba7ab99603c07).(buffer, fdir, fname, fext); |
| 466 | if (!stricmpcxx . . $ `linux/linux_fix.h:43:9`!(HEAT_NAMEcxx . . $ `Descent3/multi_ui.cpp:377:9`!, fname)) { |
| 467 | lists->AddItemcxx . . $ newuiListBox#AddItem(85c52e162fed56f9).(fname); |
| 468 | dllcount++; |
| 469 | } |
| 470 | if (!stricmpcxx . . $ `linux/linux_fix.h:43:9`!(sznetgame, fname)) { |
| 471 | dftidx = 0; |
| 472 | } |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | // Put the PXO next. |
| 477 | if (ddio_FindFileStartcxx . . $ ddio_FindFileStart(84e74a5521f49206).(search, buffer)) { |
| 478 | |
| 479 | ddio_SplitPathcxx . . $ ddio_SplitPath(b05ba7ab99603c07).(buffer, fdir, fname, fext); |
| 480 | |
| 481 | if (!stricmpcxx . . $ `linux/linux_fix.h:43:9`!(PXO_NAMEcxx . . $ `Descent3/multi_ui.cpp:378:9`!, fname)) { |
| 482 | lists->AddItemcxx . . $ newuiListBox#AddItem(85c52e162fed56f9).(fname); |
| 483 | dllcount++; |
| 484 | } |
| 485 | if (!stricmpcxx . . $ `linux/linux_fix.h:43:9`!(sznetgame, fname)) { |
| 486 | dftidx = 1; |
| 487 | } |
| 488 | |
| 489 | while ((ddio_FindNextFilecxx . . $ ddio_FindNextFile(c6b7e35ff6de5671).(buffer)) && (dllcount < MAX_DLLScxx . . $ `Descent3/multi_ui.cpp:371:9`!)) { |
| 490 | ddio_SplitPathcxx . . $ ddio_SplitPath(b05ba7ab99603c07).(buffer, fdir, fname, fext); |
| 491 | if (!stricmpcxx . . $ `linux/linux_fix.h:43:9`!(PXO_NAMEcxx . . $ `Descent3/multi_ui.cpp:378:9`!, fname)) { |
| 492 | lists->AddItemcxx . . $ newuiListBox#AddItem(85c52e162fed56f9).(fname); |
| 493 | dllcount++; |
| 494 | } |
| 495 | if (!stricmpcxx . . $ `linux/linux_fix.h:43:9`!(sznetgame, fname)) { |
| 496 | dftidx = 1; |
| 497 | } |
| 498 | } |
| 499 | } |
| 500 | |
| 501 | if (ddio_FindFileStartcxx . . $ ddio_FindFileStart(84e74a5521f49206).(search, buffer)) { |
| 502 | |
| 503 | ddio_SplitPathcxx . . $ ddio_SplitPath(b05ba7ab99603c07).(buffer, fdir, fname, fext); |
| 504 | |
| 505 | for (j = 0; j < strlen(fname); j++) { |
| 506 | if (fname[j] == '~') { |
| 507 | fname[j] = '/'; |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | if ((stricmpcxx . . $ `linux/linux_fix.h:43:9`!(HEAT_NAMEcxx . . $ `Descent3/multi_ui.cpp:377:9`!, fname) != 0) && (stricmpcxx . . $ `linux/linux_fix.h:43:9`!(PXO_NAMEcxx . . $ `Descent3/multi_ui.cpp:378:9`!, fname) != 0)) { |
| 512 | lists->AddItemcxx . . $ newuiListBox#AddItem(85c52e162fed56f9).(fname); |
| 513 | if (!stricmpcxx . . $ `linux/linux_fix.h:43:9`!(sznetgame, fname)) { |
| 514 | dftidx = dllcount; |
| 515 | } |
| 516 | dllcount++; |
| 517 | } |
| 518 | |
| 519 | uint32_tcxx . . $ uint32_t# len; |
| 520 | while ((ddio_FindNextFilecxx . . $ ddio_FindNextFile(c6b7e35ff6de5671).(buffer)) && (dllcount < MAX_DLLScxx . . $ `Descent3/multi_ui.cpp:371:9`!)) { |
| 521 | ddio_SplitPathcxx . . $ ddio_SplitPath(b05ba7ab99603c07).(buffer, fdir, fname, fext); |
| 522 | len = strlen(fname); |
| 523 | |
| 524 | for (j = 0; j < len; j++) { |
| 525 | if (fname[j] == '~') { |
| 526 | fname[j] = '/'; |
| 527 | } |
| 528 | } |
| 529 | |
| 530 | if ((stricmpcxx . . $ `linux/linux_fix.h:43:9`!(HEAT_NAMEcxx . . $ `Descent3/multi_ui.cpp:377:9`!, fname) != 0) && (stricmpcxx . . $ `linux/linux_fix.h:43:9`!(PXO_NAMEcxx . . $ `Descent3/multi_ui.cpp:378:9`!, fname) != 0)) { |
| 531 | lists->AddItemcxx . . $ newuiListBox#AddItem(85c52e162fed56f9).(fname); |
| 532 | if (!stricmpcxx . . $ `linux/linux_fix.h:43:9`!(sznetgame, fname)) { |
| 533 | dftidx = dllcount; |
| 534 | } |
| 535 | dllcount++; |
| 536 | } |
| 537 | } |
| 538 | } else { |
| 539 | dllcount = 0; |
| 540 | } |
| 541 | ddio_FindFileClosecxx . . $ ddio_FindFileClose(49f6e7a06ebc5aa8).(); |
| 542 | |
| 543 | if (dllcount == 0) { |
| 544 | DoMessageBoxcxx . . $ DoMessageBox(dcc99837539e9edc).(TXT_MULTIPLAYERcxx . . $ `Descent3/stringtable.h:192:9`!, TXT_MULTINOFILEScxx . . $ `Descent3/stringtable.h:402:9`!, MSGBOX_OKcxx . . $ `Descent3/newui_core.h:78:9`!, UICOL_WINDOW_TITLEcxx . . $ `Descent3/newui.h:219:9`!, UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 545 | exit_menu = 1; |
| 546 | menu_wnd.Destroycxx . . $ UIWindow#Destroy(49f6e7a06ebc5aa8).(); |
| 547 | return 0; |
| 548 | } |
| 549 | |
| 550 | if (dftidx != -1) { |
| 551 | lists->SetCurrentItemcxx . . $ newuiListBox#SetCurrentItem(c5f7da30cbc0f4e9).(sznetgame); //>SetCurrentIndex(dftidx); |
| 552 | } |
| 553 | |
| 554 | MultiDLLGameStartingcxx . . $ MultiDLLGameStarting. = 0; |
| 555 | menu_wnd.Opencxx . . $ UIWindow#Open(49f6e7a06ebc5aa8).(); |
| 556 | |
| 557 | // Menu loop |
| 558 | char seldll[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`!]; |
| 559 | |
| 560 | while (!exit_menu) { |
| 561 | int res; |
| 562 | |
| 563 | res = menu_wnd.DoUIcxx . . $ newuiTiledWindow#DoUI(b126dc7c1de90089).(); |
| 564 | |
| 565 | // handle all UI results. |
| 566 | switch (res) { |
| 567 | case UID_CANCELcxx . . $ `ui/ui.h:369:9`!: |
| 568 | menu_wnd.Closecxx . . $ UIWindow#Close(49f6e7a06ebc5aa8).(); |
| 569 | exit_menu = 1; |
| 570 | break; |
| 571 | |
| 572 | case UID_MULTILBcxx . . $ `Descent3/multi_ui.cpp:375:9`!: |
| 573 | case UID_OKcxx . . $ `ui/ui.h:368:9`!: { |
| 574 | menu_wnd.Closecxx . . $ UIWindow#Close(49f6e7a06ebc5aa8).(); |
| 575 | lists->GetCurrentItemcxx . . $ newuiListBox#GetCurrentItem(37e8d18a243bba77).(seldll, _MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`!); |
| 576 | uint32_tcxx . . $ uint32_t# len = strlen(seldll); |
| 577 | |
| 578 | for (j = 0; j < len; j++) { |
| 579 | if (seldll[j] == '/') { |
| 580 | seldll[j] = '~'; |
| 581 | } |
| 582 | } |
| 583 | // ddio_MakePath(fulldll,Base_directory,"online",seldll,NULL); |
| 584 | if (LoadMultiDLLcxx . . $ LoadMultiDLL(5c4306d8553b3696).(seldll)) { |
| 585 | CallMultiDLLcxx . . $ CallMultiDLL(d4f767463ce0a6b3).(MT_EVT_LOGINcxx . . $ `Descent3/multi_dll_mgr.h:88:9`!); |
| 586 | exit_menu = 1; |
| 587 | ret = MultiDLLGameStartingcxx . . $ MultiDLLGameStarting.; |
| 588 | } else { |
| 589 | exit_menu = 1; |
| 590 | ret = 0; |
| 591 | } |
| 592 | } break; |
| 593 | |
| 594 | case 0x20: |
| 595 | // Help |
| 596 | { |
| 597 | lists->GetCurrentItemcxx . . $ newuiListBox#GetCurrentItem(37e8d18a243bba77).(seldll, _MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`!); |
| 598 | uint32_tcxx . . $ uint32_t# len = strlen(seldll); |
| 599 | for (j = 0; j < len; j++) { |
| 600 | if (seldll[j] == '/') { |
| 601 | seldll[j] = '~'; |
| 602 | } |
| 603 | } |
| 604 | // ddio_MakePath(fulldll,Base_directory,"online",seldll,NULL); |
| 605 | if (LoadMultiDLLcxx . . $ LoadMultiDLL(5c4306d8553b3696).(seldll)) { |
| 606 | CallMultiDLLcxx . . $ CallMultiDLL(d4f767463ce0a6b3).(MT_EVT_GET_HELPcxx . . $ `Descent3/multi_dll_mgr.h:92:9`!); |
| 607 | DisplayNetDLLHelpcxx . . $ DisplayNetDLLHelp(85c52e162fed56f9).(seldll); |
| 608 | FreeMultiDLLcxx . . $ FreeMultiDLL(49f6e7a06ebc5aa8).(); |
| 609 | } |
| 610 | } |
| 611 | break; |
| 612 | |
| 613 | case 0x30: |
| 614 | // case 3: |
| 615 | { |
| 616 | char fmtmsg[200]; |
| 617 | char def[256]; |
| 618 | |
| 619 | // Mark this baby as default. |
| 620 | lists->GetCurrentItemcxx . . $ newuiListBox#GetCurrentItem(37e8d18a243bba77).(def, 256); |
| 621 | |
| 622 | Databasecxx . . $ Database.->writecxx . . $ oeAppDatabase#write(f827cee075336303).("DefaultNetConn", def, strlen(def) + 1); |
| 623 | snprintf(fmtmsg, sizeof(fmtmsg), TXT_SETDEFAULTcxx . . $ `Descent3/stringtable.h:396:9`!, def); |
| 624 | DoMessageBoxcxx . . $ DoMessageBox(dcc99837539e9edc).(TXT_MENUMULTIPLAYERcxx . . $ `Descent3/stringtable.h:162:9`!, fmtmsg, MSGBOX_OKcxx . . $ `Descent3/newui_core.h:78:9`!, UICOL_WINDOW_TITLEcxx . . $ `Descent3/newui.h:219:9`!, UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 625 | break; |
| 626 | } |
| 627 | } |
| 628 | } |
| 629 | menu_wnd.Destroycxx . . $ UIWindow#Destroy(49f6e7a06ebc5aa8).(); |
| 630 | |
| 631 | return ret; |
| 632 | } |
| 633 | |
| 634 | void DisplayNetDLLHelpcxx . . $ DisplayNetDLLHelp(85c52e162fed56f9).(const char *topic) { |
| 635 | // samir- converted to newui. |
| 636 | newuiTiledWindowcxx . . $ newuiTiledWindow# menu_wndcxx . . $ newuiTiledWindow#newuiTiledWindow(49f6e7a06ebc5aa8).; |
| 637 | newuiSheetcxx . . $ newuiSheet# *sheet; |
| 638 | int exit_menu = 0; |
| 639 | char str[128]; |
| 640 | |
| 641 | SetScreenModecxx . . $ SetScreenMode(918ebd27a9ddbad3).(SM_MENUcxx . . $ SM_MENU.); |
| 642 | |
| 643 | // Create our buttons |
| 644 | snprintf(str, sizeof(str), "%s: %s", TXT_REALHELPcxx . . $ `Descent3/stringtable.h:398:9`!, topic); |
| 645 | |
| 646 | menu_wnd.Createcxx . . $ newuiTiledWindow#Create(9860cac3d762132).(str, 0, 0, HELP_MULTI_MENU_Wcxx . . $ `Descent3/multi_ui.cpp:354:9`!, HELP_MULTI_MENU_Hcxx . . $ `Descent3/multi_ui.cpp:355:9`!); |
| 647 | sheet = menu_wnd.GetSheetcxx . . $ newuiTiledWindow#GetSheet(661381a276e5b628).(); |
| 648 | |
| 649 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 10, 30); |
| 650 | sheet->AddTextcxx . . $ newuiSheet#AddText(326aeb464d16410c).(HelpText1cxx . . $ HelpText1.); |
| 651 | sheet->AddTextcxx . . $ newuiSheet#AddText(326aeb464d16410c).(HelpText2cxx . . $ HelpText2.); |
| 652 | sheet->AddTextcxx . . $ newuiSheet#AddText(326aeb464d16410c).(HelpText3cxx . . $ HelpText3.); |
| 653 | sheet->AddTextcxx . . $ newuiSheet#AddText(326aeb464d16410c).(HelpText4cxx . . $ HelpText4.); |
| 654 | |
| 655 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, (HELP_MULTI_MENU_Wcxx . . $ `Descent3/multi_ui.cpp:354:9`! - 140), HELP_MULTI_MENU_Hcxx . . $ `Descent3/multi_ui.cpp:355:9`! - 95, NEWUI_ALIGN_HORIZcxx . . $ NEWUI_ALIGN_HORIZ.); |
| 656 | sheet->AddButtoncxx . . $ newuiSheet#AddButton(680bf41633375800).(TXT_CLOSEcxx . . $ `Descent3/stringtable.h:614:9`!, UID_OKcxx . . $ `ui/ui.h:368:9`!); |
| 657 | |
| 658 | menu_wnd.Opencxx . . $ UIWindow#Open(49f6e7a06ebc5aa8).(); |
| 659 | |
| 660 | // Menu loop |
| 661 | while (!exit_menu) { |
| 662 | int res; |
| 663 | |
| 664 | res = menu_wnd.DoUIcxx . . $ newuiTiledWindow#DoUI(b126dc7c1de90089).(); |
| 665 | |
| 666 | // handle all UI results. |
| 667 | switch (res) { |
| 668 | case UID_OKcxx . . $ `ui/ui.h:368:9`!: |
| 669 | exit_menu = 1; |
| 670 | break; |
| 671 | } |
| 672 | } |
| 673 | |
| 674 | menu_wnd.Closecxx . . $ UIWindow#Close(49f6e7a06ebc5aa8).(); |
| 675 | menu_wnd.Destroycxx . . $ UIWindow#Destroy(49f6e7a06ebc5aa8).(); |
| 676 | } |
| 677 | |
| 678 | int AutoConnectPXOcxx . . $ AutoConnectPXO(b126dc7c1de90089).() { |
| 679 | // char seldll[_MAX_PATH]; |
| 680 | int iparg; |
| 681 | int portarg; |
| 682 | MultiDLLGameStartingcxx . . $ MultiDLLGameStarting. = 0; |
| 683 | iparg = FindArgcxx . . $ FindArg(5c4306d8553b3696).("-pxo"); |
| 684 | if (!iparg) { |
| 685 | return 0; |
| 686 | } |
| 687 | |
| 688 | strcpy(Auto_login_addrcxx . . $ Auto_login_addr., GameArgscxx . . $ GameArgs.[iparg + 1]); |
| 689 | |
| 690 | char *port = strchr(Auto_login_addrcxx . . $ Auto_login_addr., ':'); |
| 691 | if (port) { |
| 692 | // terminate the hostname |
| 693 | *port = '\0'; |
| 694 | // Increment to the first character of the port name |
| 695 | port++; |
| 696 | // get the port number |
| 697 | strcpy(Auto_login_portcxx . . $ Auto_login_port., port); |
| 698 | } else { |
| 699 | portarg = FindArgcxx . . $ FindArg(5c4306d8553b3696).("port"); |
| 700 | if (portarg) { |
| 701 | strcpy(Auto_login_portcxx . . $ Auto_login_port., GameArgscxx . . $ GameArgs.[portarg + 1]); |
| 702 | } else { |
| 703 | Auto_login_portcxx . . $ Auto_login_port.[0] = '\0'; |
| 704 | } |
| 705 | } |
| 706 | |
| 707 | // ddio_MakePath(seldll,Base_directory,"online","parallax online.d3c",NULL); |
| 708 | if (LoadMultiDLLcxx . . $ LoadMultiDLL(5c4306d8553b3696).("parallax online")) { |
| 709 | CallMultiDLLcxx . . $ CallMultiDLL(d4f767463ce0a6b3).(MT_AUTO_LOGINcxx . . $ `Descent3/multi_dll_mgr.h:93:9`!); |
| 710 | } |
| 711 | return MultiDLLGameStartingcxx . . $ MultiDLLGameStarting.; |
| 712 | } |
| 713 | |
| 714 | int AutoConnectLANIPcxx . . $ AutoConnectLANIP(b126dc7c1de90089).() { |
| 715 | // char seldll[_MAX_PATH]; |
| 716 | int iparg; |
| 717 | int portarg; |
| 718 | MultiDLLGameStartingcxx . . $ MultiDLLGameStarting. = 0; |
| 719 | iparg = FindArgcxx . . $ FindArg(5c4306d8553b3696).("ip"); |
| 720 | if (!iparg) { |
| 721 | int connarg = FindArgcxx . . $ FindArg(5c4306d8553b3696).("-directip"); |
| 722 | |
| 723 | if (!connarg) |
| 724 | return 0; |
| 725 | strcpy(Auto_login_addrcxx . . $ Auto_login_addr., GameArgscxx . . $ GameArgs.[connarg + 1]); |
| 726 | char *port = strchr(Auto_login_addrcxx . . $ Auto_login_addr., ':'); |
| 727 | if (port) { |
| 728 | // terminate the hostname |
| 729 | *port = '\0'; |
| 730 | // Increment to the first character of the port name |
| 731 | port++; |
| 732 | // get the port number |
| 733 | strcpy(Auto_login_portcxx . . $ Auto_login_port., port); |
| 734 | } |
| 735 | } else { |
| 736 | strcpy(Auto_login_addrcxx . . $ Auto_login_addr., GameArgscxx . . $ GameArgs.[iparg + 1]); |
| 737 | |
| 738 | portarg = FindArgcxx . . $ FindArg(5c4306d8553b3696).("port"); |
| 739 | if (portarg) { |
| 740 | strcpy(Auto_login_portcxx . . $ Auto_login_port., GameArgscxx . . $ GameArgs.[portarg + 1]); |
| 741 | } else { |
| 742 | Auto_login_portcxx . . $ Auto_login_port.[0] = '\0'; |
| 743 | } |
| 744 | } |
| 745 | // ddio_MakePath(seldll,Base_directory,"online","Direct TCP~IP Game.d3c",NULL); |
| 746 | if (LoadMultiDLLcxx . . $ LoadMultiDLL(5c4306d8553b3696).("Direct TCP~IP")) { |
| 747 | CallMultiDLLcxx . . $ CallMultiDLL(d4f767463ce0a6b3).(MT_AUTO_LOGINcxx . . $ `Descent3/multi_dll_mgr.h:93:9`!); |
| 748 | } |
| 749 | return MultiDLLGameStartingcxx . . $ MultiDLLGameStarting.; |
| 750 | } |
| 751 | |
| 752 | int AutoConnectHeatcxx . . $ AutoConnectHeat(b126dc7c1de90089).() { |
| 753 | // char seldll[_MAX_PATH]; |
| 754 | int iparg; |
| 755 | int portarg; |
| 756 | MultiDLLGameStartingcxx . . $ MultiDLLGameStarting. = 0; |
| 757 | iparg = FindArgcxx . . $ FindArg(5c4306d8553b3696).("ip"); |
| 758 | if (!iparg) { |
| 759 | int connarg = FindArgcxx . . $ FindArg(5c4306d8553b3696).("-heat"); |
| 760 | |
| 761 | if (!connarg) |
| 762 | return 0; |
| 763 | strcpy(Auto_login_addrcxx . . $ Auto_login_addr., GameArgscxx . . $ GameArgs.[connarg + 1]); |
| 764 | char *port = strchr(Auto_login_addrcxx . . $ Auto_login_addr., ':'); |
| 765 | if (port) { |
| 766 | // terminate the hostname |
| 767 | *port = '\0'; |
| 768 | // Increment to the first character of the port name |
| 769 | port++; |
| 770 | // get the port number |
| 771 | strcpy(Auto_login_portcxx . . $ Auto_login_port., port); |
| 772 | } |
| 773 | } else { |
| 774 | strcpy(Auto_login_addrcxx . . $ Auto_login_addr., GameArgscxx . . $ GameArgs.[iparg + 1]); |
| 775 | |
| 776 | portarg = FindArgcxx . . $ FindArg(5c4306d8553b3696).("port"); |
| 777 | if (portarg) { |
| 778 | strcpy(Auto_login_portcxx . . $ Auto_login_port., GameArgscxx . . $ GameArgs.[portarg + 1]); |
| 779 | } else { |
| 780 | Auto_login_portcxx . . $ Auto_login_port.[0] = '\0'; |
| 781 | } |
| 782 | } |
| 783 | if (LoadMultiDLLcxx . . $ LoadMultiDLL(5c4306d8553b3696).("HEAT.NET")) { |
| 784 | CallMultiDLLcxx . . $ CallMultiDLL(d4f767463ce0a6b3).(MT_AUTO_LOGINcxx . . $ `Descent3/multi_dll_mgr.h:93:9`!); |
| 785 | } |
| 786 | return MultiDLLGameStartingcxx . . $ MultiDLLGameStarting.; |
| 787 | } |
| 788 | |
| 789 | #include "mem.h"cxx . . $ `<file>/mem/mem.h`/ |
| 790 | |
| 791 | void DoMultiAllowedcxx . . $ DoMultiAllowed(49f6e7a06ebc5aa8).(void) { |
| 792 | rendering_statecxx . . $ rendering_state# rs; |
| 793 | rend_GetRenderStatecxx . . $ rend_GetRenderState(2ca0d60fb0cb1bea).(&rs); |
| 794 | int cury = 30; |
| 795 | int i; |
| 796 | const char *p; |
| 797 | int objid; |
| 798 | int *index_to_id = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 799 | bool shipsallowed[MAX_SHIPScxx . . $ `Descent3/ship.h:122:9`!]; |
| 800 | bool objsallowed[MAX_OBJECTScxx . . $ `lib/object_external_struct.h:107:9`!]; |
| 801 | ConfigItemcxx . . $ ConfigItem# **ship_list = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 802 | size_t strMax = stdcxx . . $ std/::maxcxx . . $ std/max(2a338fce5842aa6a).(strlen(TXT_ALLOWcxx . . $ `Descent3/stringtable.h:409:9`!), strlen(TXT_DISALLOWcxx . . $ `Descent3/stringtable.h:410:9`!)) + 3; |
| 803 | char *str = (char *)mem_malloccxx . . $ `mem/mem.h:79:9`!(strMax); |
| 804 | |
| 805 | // Create Text Items and Window |
| 806 | UITextItemcxx . . $ UITextItem# cancel_on_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_CANCELcxx . . $ `Descent3/stringtable.h:35:9`!, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 807 | UITextItemcxx . . $ UITextItem# cancel_off_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_CANCELcxx . . $ `Descent3/stringtable.h:35:9`!, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 808 | |
| 809 | UITextItemcxx . . $ UITextItem# exit_on_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_DONEcxx . . $ `Descent3/stringtable.h:173:9`!, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 810 | UITextItemcxx . . $ UITextItem# exit_off_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_DONEcxx . . $ `Descent3/stringtable.h:173:9`!, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 811 | |
| 812 | snprintf(str, strMax, "\x18 %s", TXT_ALLOWcxx . . $ `Descent3/stringtable.h:409:9`!); |
| 813 | UITextItemcxx . . $ UITextItem# add_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 814 | UITextItemcxx . . $ UITextItem# add_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 815 | |
| 816 | snprintf(str, strMax, "%s \x1a", TXT_DISALLOWcxx . . $ `Descent3/stringtable.h:410:9`!); |
| 817 | UITextItemcxx . . $ UITextItem# remove_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 818 | UITextItemcxx . . $ UITextItem# remove_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 819 | mem_freecxx . . $ `mem/mem.h:80:9`!(str); |
| 820 | |
| 821 | UITextItemcxx . . $ UITextItem# allowed_shipscxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_ALLOWEDSHIPScxx . . $ `Descent3/stringtable.h:407:9`!, UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 822 | UITextItemcxx . . $ UITextItem# banned_shipscxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_DISALLOWDSHIPScxx . . $ `Descent3/stringtable.h:408:9`!, UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 823 | |
| 824 | UITextItemcxx . . $ UITextItem# allowed_gencxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_ALLOWEDITEMScxx . . $ `Descent3/stringtable.h:405:9`!, UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 825 | UITextItemcxx . . $ UITextItem# banned_gencxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_DISALLOWEDITEMcxx . . $ `Descent3/stringtable.h:406:9`!, UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 826 | |
| 827 | UITextItemcxx . . $ UITextItem# obj_ticxx . . $ UITextItem#UITextItem(49f6e7a06ebc5aa8).[MAX_OBJECT_IDScxx . . $ `Descent3/objinfo.h:327:9`!]; |
| 828 | UITextItemcxx . . $ UITextItem# ship_ticxx . . $ UITextItem#UITextItem(49f6e7a06ebc5aa8).[MAX_SHIPScxx . . $ `Descent3/ship.h:122:9`!]; |
| 829 | |
| 830 | NewUIWindowcxx . . $ NewUIWindow# menu_wndcxx . . $ NewUIWindow#NewUIWindow(49f6e7a06ebc5aa8).; |
| 831 | menu_wnd.Createcxx . . $ NewUIWindow#Create(1559a299834bcdd5).(0, 0, rs.screen_widthcxx . . $ rendering_state#screen_width., rs.screen_heightcxx . . $ rendering_state#screen_height., UIF_PROCESS_ALLcxx . . $ `ui/ui.h:348:9`!); |
| 832 | |
| 833 | int xcol1 = 110; |
| 834 | int yrow1 = 50; |
| 835 | int xcol2 = 374; |
| 836 | int yrow2 = 250; |
| 837 | int list_xsize = 160; |
| 838 | int list_ysize = 160; |
| 839 | |
| 840 | NewUIListBoxcxx . . $ NewUIListBox# lb_ships_allowed; |
| 841 | NewUIListBoxcxx . . $ NewUIListBox# lb_ships_banned; |
| 842 | |
| 843 | NewUIListBoxcxx . . $ NewUIListBox# lb_generic_allowed; |
| 844 | NewUIListBoxcxx . . $ NewUIListBox# lb_generic_banned; |
| 845 | UIHotspotcxx . . $ UIHotspot# exit_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 846 | UIHotspotcxx . . $ UIHotspot# add_ship_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 847 | UIHotspotcxx . . $ UIHotspot# remove_ship_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 848 | UIHotspotcxx . . $ UIHotspot# add_gen_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 849 | UIHotspotcxx . . $ UIHotspot# remove_gen_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 850 | UIHotspotcxx . . $ UIHotspot# cancel_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 851 | |
| 852 | UITextcxx . . $ UIText# ship_allowed_txt; |
| 853 | UITextcxx . . $ UIText# ship_banned_txt; |
| 854 | UITextcxx . . $ UIText# gen_allowed_txt; |
| 855 | UITextcxx . . $ UIText# gen_banned_txt; |
| 856 | |
| 857 | int textw; |
| 858 | int startx; |
| 859 | |
| 860 | grtext_SetFontcxx . . $ grtext_SetFont(d4f767463ce0a6b3).(SMALL_FONTcxx . . $ `Descent3/gamefont.h:103:9`!); |
| 861 | |
| 862 | add_ship_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&menu_wnd, 10, 0, &add_off, &add_on, 10, (yrow1 + (list_ysize / 2)) - 25, 130, 30, |
| 863 | UIF_FITcxx . . $ `ui/ui.h:343:9`! | UIF_CENTERcxx . . $ `ui/ui.h:342:9`!); |
| 864 | remove_ship_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&menu_wnd, 11, 0, &remove_off, &remove_on, 10, (yrow1 + (list_ysize / 2)) - 5, 130, 30, |
| 865 | UIF_FITcxx . . $ `ui/ui.h:343:9`! | UIF_CENTERcxx . . $ `ui/ui.h:342:9`!); |
| 866 | |
| 867 | add_gen_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&menu_wnd, 12, 0, &add_off, &add_on, 10, (yrow2 + (list_ysize / 2)) - 25, 130, 30, |
| 868 | UIF_FITcxx . . $ `ui/ui.h:343:9`! | UIF_CENTERcxx . . $ `ui/ui.h:342:9`!); |
| 869 | remove_gen_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&menu_wnd, 13, 0, &remove_off, &remove_on, 10, (yrow2 + (list_ysize / 2)) - 5, 130, 30, |
| 870 | UIF_FITcxx . . $ `ui/ui.h:343:9`! | UIF_CENTERcxx . . $ `ui/ui.h:342:9`!); |
| 871 | |
| 872 | textw = grtext_GetTextLineWidthcxx . . $ grtext_GetTextLineWidth(5c4306d8553b3696).(allowed_ships.GetBuffercxx . . $ UITextItem#GetBuffer(a9f41ea0e82d88cf).()); |
| 873 | startx = ((list_xsize / 2) + xcol1) - (textw / 2); |
| 874 | |
| 875 | ship_allowed_txt.Createcxx . . $ UIText#Create(c90f152919fa414d).(&menu_wnd, &allowed_ships, startx, yrow1 - 15, 0); |
| 876 | textw = grtext_GetTextLineWidthcxx . . $ grtext_GetTextLineWidth(5c4306d8553b3696).(banned_ships.GetBuffercxx . . $ UITextItem#GetBuffer(a9f41ea0e82d88cf).()); |
| 877 | startx = ((list_xsize / 2) + xcol2) - (textw / 2); |
| 878 | |
| 879 | ship_banned_txt.Createcxx . . $ UIText#Create(c90f152919fa414d).(&menu_wnd, &banned_ships, startx, yrow1 - 15, 0); |
| 880 | textw = grtext_GetTextLineWidthcxx . . $ grtext_GetTextLineWidth(5c4306d8553b3696).(allowed_gen.GetBuffercxx . . $ UITextItem#GetBuffer(a9f41ea0e82d88cf).()); |
| 881 | startx = ((list_xsize / 2) + xcol1) - (textw / 2); |
| 882 | |
| 883 | gen_allowed_txt.Createcxx . . $ UIText#Create(c90f152919fa414d).(&menu_wnd, &allowed_gen, startx, yrow2 - 15, 0); |
| 884 | textw = grtext_GetTextLineWidthcxx . . $ grtext_GetTextLineWidth(5c4306d8553b3696).(banned_gen.GetBuffercxx . . $ UITextItem#GetBuffer(a9f41ea0e82d88cf).()); |
| 885 | startx = ((list_xsize / 2) + xcol2) - (textw / 2); |
| 886 | |
| 887 | gen_banned_txt.Createcxx . . $ UIText#Create(c90f152919fa414d).(&menu_wnd, &banned_gen, startx, yrow2 - 15, 0); |
| 888 | |
| 889 | lb_ships_allowed.Createcxx . . $ NewUIListBox#Create(43707b8add2f137d).(&menu_wnd, 2, xcol1, yrow1, list_xsize, list_ysize, 0); |
| 890 | lb_ships_allowed.SetSelectedColorcxx . . $ UIListBox#SetSelectedColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!); |
| 891 | lb_ships_allowed.SetHiliteColorcxx . . $ UIListBox#SetHiliteColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!); |
| 892 | lb_ships_banned.Createcxx . . $ NewUIListBox#Create(43707b8add2f137d).(&menu_wnd, 3, xcol2, yrow1, list_xsize, list_ysize, 0); |
| 893 | lb_ships_banned.SetSelectedColorcxx . . $ UIListBox#SetSelectedColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!); |
| 894 | lb_ships_banned.SetHiliteColorcxx . . $ UIListBox#SetHiliteColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!); |
| 895 | lb_generic_allowed.Createcxx . . $ NewUIListBox#Create(43707b8add2f137d).(&menu_wnd, 4, xcol1, yrow2, list_xsize, list_ysize, 0); |
| 896 | lb_generic_allowed.SetSelectedColorcxx . . $ UIListBox#SetSelectedColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!); |
| 897 | lb_generic_allowed.SetHiliteColorcxx . . $ UIListBox#SetHiliteColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!); |
| 898 | lb_generic_banned.Createcxx . . $ NewUIListBox#Create(43707b8add2f137d).(&menu_wnd, 5, xcol2, yrow2, list_xsize, list_ysize, 0); |
| 899 | lb_generic_banned.SetSelectedColorcxx . . $ UIListBox#SetSelectedColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!); |
| 900 | lb_generic_banned.SetHiliteColorcxx . . $ UIListBox#SetHiliteColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!); |
| 901 | |
| 902 | // Exit out Hotspot |
| 903 | exit_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&menu_wnd, UID_OKcxx . . $ `ui/ui.h:368:9`!, KEY_ESCcxx . . $ `ddio/ddio_common.h:267:9`!, &exit_off_text, &exit_on_text, 10, 420, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`! | UIF_CENTERcxx . . $ `ui/ui.h:342:9`!); |
| 904 | cury += 20; |
| 905 | cancel_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&menu_wnd, UID_CANCELcxx . . $ `ui/ui.h:369:9`!, 0, &cancel_off_text, &cancel_on_text, 10, 445, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`! | UIF_CENTERcxx . . $ `ui/ui.h:342:9`!); |
| 906 | cury += 20; |
| 907 | |
| 908 | NewUIWindowLoadBackgroundImagecxx . . $ NewUIWindowLoadBackgroundImage(a519a360beb3a806).(&menu_wnd, "multimain.ogf"); |
| 909 | |
| 910 | // Object_info[MAX_OBJECT_IDS]; |
| 911 | // |
| 912 | // if(Object_info[i].type==OBJ_POWERUP) |
| 913 | for (i = 0; i < MAX_OBJECT_IDScxx . . $ `Descent3/objinfo.h:327:9`!; i++) { |
| 914 | if (Object_infocxx . . $ Object_info.[i].typecxx . . $ object_info#type. == OBJ_POWERUPcxx . . $ `Descent3/object_external.h:167:9`!) { |
| 915 | obj_ti[i] =cxx . . $ UITextItem#`operator=`(5ad635489e71ed3b). UITextItemcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(Object_infocxx . . $ Object_info.[i].namecxx . . $ object_info#name., UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 916 | if (Object_infocxx . . $ Object_info.[i].multi_allowedcxx . . $ object_info#multi_allowed.) { |
| 917 | objsallowed[i] = true; |
| 918 | lb_generic_allowed.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(&obj_ti[i]); |
| 919 | } else { |
| 920 | objsallowed[i] = false; |
| 921 | lb_generic_banned.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(&obj_ti[i]); |
| 922 | } |
| 923 | } |
| 924 | } |
| 925 | |
| 926 | for (i = 0; i < MAX_SHIPScxx . . $ `Descent3/ship.h:122:9`!; i++) { |
| 927 | if (Shipscxx . . $ Ships.[i].usedcxx . . $ ship#used.) { |
| 928 | ship_ti[i] =cxx . . $ UITextItem#`operator=`(5ad635489e71ed3b). UITextItemcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(Shipscxx . . $ Ships.[i].namecxx . . $ ship#name., UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 929 | |
| 930 | if (PlayerIsShipAllowedcxx . . $ PlayerIsShipAllowed(cf9ef193275fa6d8).(0, i)) { |
| 931 | shipsallowed[i] = true; |
| 932 | lb_ships_allowed.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(&ship_ti[i]); |
| 933 | } else { |
| 934 | shipsallowed[i] = false; |
| 935 | lb_ships_banned.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(&ship_ti[i]); |
| 936 | } |
| 937 | } |
| 938 | } |
| 939 | // |
| 940 | // Open the window and process |
| 941 | menu_wnd.Opencxx . . $ UIWindow#Open(49f6e7a06ebc5aa8).(); |
| 942 | int exit_menu = 0; |
| 943 | |
| 944 | while (!exit_menu) { |
| 945 | int res; |
| 946 | |
| 947 | res = DoUIcxx . . $ DoUI(b126dc7c1de90089).(); |
| 948 | switch (res) { |
| 949 | case UID_OKcxx . . $ `ui/ui.h:368:9`!: { |
| 950 | // Check for at least one ship allowed |
| 951 | for (i = 0; i < MAX_SHIPScxx . . $ `Descent3/ship.h:122:9`!; i++) { |
| 952 | if (Shipscxx . . $ Ships.[i].usedcxx . . $ ship#used. && PlayerIsShipAllowedcxx . . $ PlayerIsShipAllowed(cf9ef193275fa6d8).(0, i)) { |
| 953 | break; |
| 954 | } |
| 955 | } |
| 956 | |
| 957 | // If no allowed ships found, put up message |
| 958 | if (i == MAX_SHIPScxx . . $ `Descent3/ship.h:122:9`!) { |
| 959 | DoMessageBoxcxx . . $ DoMessageBox(dcc99837539e9edc).(TXT_MENUMULTIPLAYERcxx . . $ `Descent3/stringtable.h:162:9`!, "You must have at least one allowed ship.", MSGBOX_OKcxx . . $ `Descent3/newui_core.h:78:9`!, UICOL_WINDOW_TITLEcxx . . $ `Descent3/newui.h:219:9`!, |
| 960 | UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 961 | break; |
| 962 | } |
| 963 | |
| 964 | // exit |
| 965 | exit_menu = true; |
| 966 | |
| 967 | } break; |
| 968 | case UID_CANCELcxx . . $ `ui/ui.h:369:9`!: |
| 969 | // restore old settings |
| 970 | for (i = 0; i < MAX_OBJECT_IDScxx . . $ `Descent3/objinfo.h:327:9`!; i++) { |
| 971 | if (Object_infocxx . . $ Object_info.[i].typecxx . . $ object_info#type. == OBJ_POWERUPcxx . . $ `Descent3/object_external.h:167:9`!) { |
| 972 | if (objsallowed[i]) { |
| 973 | Object_infocxx . . $ Object_info.[i].multi_allowedcxx . . $ object_info#multi_allowed. = 1; |
| 974 | } else { |
| 975 | Object_infocxx . . $ Object_info.[i].multi_allowedcxx . . $ object_info#multi_allowed. = 0; |
| 976 | } |
| 977 | } |
| 978 | } |
| 979 | for (i = 0; i < MAX_SHIPScxx . . $ `Descent3/ship.h:122:9`!; i++) { |
| 980 | if (Shipscxx . . $ Ships.[i].usedcxx . . $ ship#used.) { |
| 981 | if (shipsallowed[i]) { |
| 982 | PlayerSetShipPermissioncxx . . $ PlayerSetShipPermission(fb2bb0cf4ad3de37).(-1, Shipscxx . . $ Ships.[i].namecxx . . $ ship#name., 1); |
| 983 | } else { |
| 984 | PlayerSetShipPermissioncxx . . $ PlayerSetShipPermission(fb2bb0cf4ad3de37).(-1, Shipscxx . . $ Ships.[i].namecxx . . $ ship#name., 0); |
| 985 | } |
| 986 | } |
| 987 | } |
| 988 | // now exit |
| 989 | exit_menu = true; |
| 990 | break; |
| 991 | case 10: |
| 992 | #ifndef DEMO |
| 993 | { |
| 994 | // Make ship allowed |
| 995 | UITextItemcxx . . $ UITextItem# *selti = (UITextItemcxx . . $ UITextItem# *)lb_ships_banned.GetItemcxx . . $ UIListBox#GetItem(546e15a08a69e3a5).(lb_ships_banned.GetSelectedIndexcxx . . $ UIListBox#GetSelectedIndex(455f465bc33b4cdf).()); |
| 996 | if (!selti) |
| 997 | break; |
| 998 | p = selti->GetBuffercxx . . $ UITextItem#GetBuffer(a9f41ea0e82d88cf).(); |
| 999 | PlayerSetShipPermissioncxx . . $ PlayerSetShipPermission(fb2bb0cf4ad3de37).(-1, (char *)p, 1); |
| 1000 | lb_ships_banned.RemoveItemcxx . . $ UIListBox#RemoveItem(f57aa2fef0df48a8).(selti); |
| 1001 | lb_ships_allowed.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(selti); |
| 1002 | break; |
| 1003 | } |
| 1004 | #else |
| 1005 | DoMessageBox(TXT_ERROR, TXT_WRONGVERSION, MSGBOX_OK, UICOL_WINDOW_TITLE, UICOL_TEXT_NORMAL); |
| 1006 | break; |
| 1007 | #endif |
| 1008 | case 11: |
| 1009 | #ifndef DEMO |
| 1010 | { |
| 1011 | // Make ship not allowed |
| 1012 | UITextItemcxx . . $ UITextItem# *selti = (UITextItemcxx . . $ UITextItem# *)lb_ships_allowed.GetItemcxx . . $ UIListBox#GetItem(546e15a08a69e3a5).(lb_ships_allowed.GetSelectedIndexcxx . . $ UIListBox#GetSelectedIndex(455f465bc33b4cdf).()); |
| 1013 | if (!selti) |
| 1014 | break; |
| 1015 | p = selti->GetBuffercxx . . $ UITextItem#GetBuffer(a9f41ea0e82d88cf).(); |
| 1016 | PlayerSetShipPermissioncxx . . $ PlayerSetShipPermission(fb2bb0cf4ad3de37).(-1, (char *)p, 0); |
| 1017 | lb_ships_allowed.RemoveItemcxx . . $ UIListBox#RemoveItem(f57aa2fef0df48a8).(selti); |
| 1018 | lb_ships_banned.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(selti); |
| 1019 | break; |
| 1020 | } |
| 1021 | #else |
| 1022 | DoMessageBox(TXT_ERROR, TXT_WRONGVERSION, MSGBOX_OK, UICOL_WINDOW_TITLE, UICOL_TEXT_NORMAL); |
| 1023 | break; |
| 1024 | #endif |
| 1025 | case 12: { |
| 1026 | // make obj allowed |
| 1027 | UITextItemcxx . . $ UITextItem# *selti = (UITextItemcxx . . $ UITextItem# *)lb_generic_banned.GetItemcxx . . $ UIListBox#GetItem(546e15a08a69e3a5).(lb_generic_banned.GetSelectedIndexcxx . . $ UIListBox#GetSelectedIndex(455f465bc33b4cdf).()); |
| 1028 | if (!selti) |
| 1029 | break; |
| 1030 | p = selti->GetBuffercxx . . $ UITextItem#GetBuffer(a9f41ea0e82d88cf).(); |
| 1031 | objid = FindObjectIDNamecxx . . $ FindObjectIDName(5c4306d8553b3696).(IGNORE_TABLEcxx . . $ `lib/manage_external.h:54:9`!(p)); |
| 1032 | if (objid != -1) { |
| 1033 | ASSERTcxx . . $ `misc/pserror.h:246:9`!(Object_info[objid].type == OBJ_POWERUPcxx . . $ `Descent3/object_external.h:167:9`!); |
| 1034 | ASSERTcxx . . $ `misc/pserror.h:246:9`!(Object_info[objid].multi_allowed == 0); |
| 1035 | Object_infocxx . . $ Object_info.[objid].multi_allowedcxx . . $ object_info#multi_allowed. = 1; |
| 1036 | lb_generic_banned.RemoveItemcxx . . $ UIListBox#RemoveItem(f57aa2fef0df48a8).(&obj_ti[objid]); |
| 1037 | lb_generic_allowed.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(&obj_ti[objid]); |
| 1038 | } |
| 1039 | break; |
| 1040 | } |
| 1041 | case 13: { |
| 1042 | // make obj not allowed |
| 1043 | UITextItemcxx . . $ UITextItem# *selti = (UITextItemcxx . . $ UITextItem# *)lb_generic_allowed.GetItemcxx . . $ UIListBox#GetItem(546e15a08a69e3a5).(lb_generic_allowed.GetSelectedIndexcxx . . $ UIListBox#GetSelectedIndex(455f465bc33b4cdf).()); |
| 1044 | if (!selti) |
| 1045 | break; |
| 1046 | p = selti->GetBuffercxx . . $ UITextItem#GetBuffer(a9f41ea0e82d88cf).(); |
| 1047 | objid = FindObjectIDNamecxx . . $ FindObjectIDName(5c4306d8553b3696).(IGNORE_TABLEcxx . . $ `lib/manage_external.h:54:9`!(p)); |
| 1048 | if (objid != -1) { |
| 1049 | ASSERTcxx . . $ `misc/pserror.h:246:9`!(Object_info[objid].type == OBJ_POWERUPcxx . . $ `Descent3/object_external.h:167:9`!); |
| 1050 | ASSERTcxx . . $ `misc/pserror.h:246:9`!(Object_info[objid].multi_allowed == 1); |
| 1051 | Object_infocxx . . $ Object_info.[objid].multi_allowedcxx . . $ object_info#multi_allowed. = 0; |
| 1052 | lb_generic_allowed.RemoveItemcxx . . $ UIListBox#RemoveItem(f57aa2fef0df48a8).(&obj_ti[objid]); |
| 1053 | lb_generic_banned.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(&obj_ti[objid]); |
| 1054 | } |
| 1055 | break; |
| 1056 | } |
| 1057 | default: { |
| 1058 | } |
| 1059 | } |
| 1060 | } |
| 1061 | // handle all UI results. |
| 1062 | menu_wnd.Closecxx . . $ UIWindow#Close(49f6e7a06ebc5aa8).(); |
| 1063 | menu_wnd.Destroycxx . . $ UIWindow#Destroy(49f6e7a06ebc5aa8).(); |
| 1064 | } |
| 1065 | |
| 1066 | void MultiDoConfigSavecxx . . $ MultiDoConfigSave(49f6e7a06ebc5aa8).(void) { |
| 1067 | char file[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! * 2]; |
| 1068 | |
| 1069 | ddio_MakePathcxx . . $ ddio_MakePath(9ad4b0815420a85).(file, Base_directory_writecxx . . $ Base_directory_write., "custom", "settings", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 1070 | if (DoPathFileDialogcxx . . $ DoPathFileDialog(5d8ce13d0347d7c1).(true, file, TXT_MULTISAVESETcxx . . $ `Descent3/stringtable.h:403:9`!, "*.mps", 0)) { |
| 1071 | if (stricmpcxx . . $ `linux/linux_fix.h:43:9`!(file + (strlen(file) - 4), ".mps") != 0) |
| 1072 | strcat(file, ".mps"); |
| 1073 | MultiSaveSettingscxx . . $ MultiSaveSettings(5c4306d8553b3696).(file); |
| 1074 | } |
| 1075 | } |
| 1076 | |
| 1077 | void MultiDoConfigLoadcxx . . $ MultiDoConfigLoad(49f6e7a06ebc5aa8).(void) { |
| 1078 | char file[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! * 2]; |
| 1079 | |
| 1080 | ddio_MakePathcxx . . $ ddio_MakePath(9ad4b0815420a85).(file, Base_directory_writecxx . . $ Base_directory_write., "custom", "settings", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 1081 | if (DoPathFileDialogcxx . . $ DoPathFileDialog(5d8ce13d0347d7c1).(false, file, TXT_MULTILOADSETcxx . . $ `Descent3/stringtable.h:404:9`!, "*.mps", PFDF_FILEMUSTEXISTcxx . . $ `Descent3/newui.h:351:9`!)) |
| 1082 | MultiLoadSettingscxx . . $ MultiLoadSettings(5c4306d8553b3696).(file); |
| 1083 | } |
| 1084 | |
| 1085 | #define CHAR_LEFT_ARROWcxx . . $ `Descent3/multi_ui.cpp:1085:9`! 24 |
| 1086 | #define CHAR_UP_ARROWcxx . . $ `Descent3/multi_ui.cpp:1086:9`! 25 |
| 1087 | #define CHAR_RIGHT_ARROWcxx . . $ `Descent3/multi_ui.cpp:1087:9`! 26 |
| 1088 | #define CHAR_DOWN_ARROWcxx . . $ `Descent3/multi_ui.cpp:1088:9`! 27 |
| 1089 | #define CHAR_CHECKBOX_OFFcxx . . $ `Descent3/multi_ui.cpp:1089:9`! 28 |
| 1090 | #define CHAR_CHECKBOX_ONcxx . . $ `Descent3/multi_ui.cpp:1090:9`! 29 |
| 1091 | #define CHAR_RADIO_OFFcxx . . $ `Descent3/multi_ui.cpp:1091:9`! 30 |
| 1092 | #define CHAR_RADIO_ONcxx . . $ `Descent3/multi_ui.cpp:1092:9`! 31 |
| 1093 | |
| 1094 | #define CS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1094:9`! 20 |
| 1095 | #define PP_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1095:9`! 21 |
| 1096 | #define ROT_VEL_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1096:9`! 22 |
| 1097 | #define ACC_WEAP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1097:9`! 24 |
| 1098 | #define BRIGHT_SHIP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1098:9`! 25 |
| 1099 | #define RAND_POWERUP_IDcxx . . $ `Descent3/multi_ui.cpp:1099:9`! 26 |
| 1100 | #define PS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1100:9`! 27 |
| 1101 | #define MLOOK_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1101:9`! 28 |
| 1102 | #define DIFF_LIST_IDcxx . . $ `Descent3/multi_ui.cpp:1102:9`! 30 |
| 1103 | #define SHIP_ALLOW_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1103:9`! 0xdd |
| 1104 | |
| 1105 | void MultiGameOptionsMenucxx . . $ MultiGameOptionsMenu(d4f767463ce0a6b3).(int alloptions) { |
| 1106 | |
| 1107 | #define MULTI_OPT_TITLE_Ycxx . . $ `Descent3/multi_ui.cpp:1107:9`! 30 |
| 1108 | #define MULTI_OPT_EDITS_Ycxx . . $ `Descent3/multi_ui.cpp:1108:9`! 80 |
| 1109 | #define MULTI_OPT_EDITS_X_LCOL1cxx . . $ `Descent3/multi_ui.cpp:1109:9`! 40 |
| 1110 | #define MULTI_OPT_EDITS_X_COL1cxx . . $ `Descent3/multi_ui.cpp:1110:9`! 160 |
| 1111 | #define MULTI_OPT_EDITS_X_LCOL2cxx . . $ `Descent3/multi_ui.cpp:1111:9`! 300 |
| 1112 | #define MULTI_OPT_EDITS_X_COL2cxx . . $ `Descent3/multi_ui.cpp:1112:9`! 460 |
| 1113 | #define MULTI_OPT_TOGGLES_Ycxx . . $ `Descent3/multi_ui.cpp:1113:9`! 210 |
| 1114 | #define MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`! 40 |
| 1115 | #define MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`! 300 |
| 1116 | #define MULTI_OPT_LABEL_OFScxx . . $ `Descent3/multi_ui.cpp:1116:9`! 10 |
| 1117 | #define MULTI_OPT_HOTSPOT_X_MIDcxx . . $ `Descent3/multi_ui.cpp:1117:9`! 410 |
| 1118 | #define MULTI_OPT_HOTSPOT_Ycxx . . $ `Descent3/multi_ui.cpp:1118:9`! 360 |
| 1119 | |
| 1120 | UITextItemcxx . . $ UITextItem# options_title_textcxx . . $ UITextItem#UITextItem(284d3affb5f9e25a).(BIG_BRIEFING_FONTcxx . . $ `Descent3/gamefont.h:112:9`!, TXT_GEN_MPLYROPTIONScxx . . $ `Descent3/stringtable.h:459:9`!, UICOL_WINDOW_TITLEcxx . . $ `Descent3/newui.h:219:9`!); |
| 1121 | UITextItemcxx . . $ UITextItem# time_limit_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_GEN_TIMELIMITcxx . . $ `Descent3/stringtable.h:460:9`!, UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 1122 | UITextItemcxx . . $ UITextItem# kill_goal_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_GEN_KILLGOALcxx . . $ `Descent3/stringtable.h:461:9`!, UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 1123 | UITextItemcxx . . $ UITextItem# pps_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_GEN_PPScxx . . $ `Descent3/stringtable.h:462:9`!, UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 1124 | UITextItemcxx . . $ UITextItem# respawn_rate_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_GEN_RESPAWNRATEcxx . . $ `Descent3/stringtable.h:467:9`!, UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 1125 | UITextItemcxx . . $ UITextItem# max_players_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_GEN_MAXPLAYERScxx . . $ `Descent3/stringtable.h:470:9`!, UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 1126 | |
| 1127 | UITextItemcxx . . $ UITextItem# exit_on_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_DONEcxx . . $ `Descent3/stringtable.h:173:9`!, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1128 | UITextItemcxx . . $ UITextItem# exit_off_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_DONEcxx . . $ `Descent3/stringtable.h:173:9`!, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1129 | |
| 1130 | UITextItemcxx . . $ UITextItem# cancel_on_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_CANCELcxx . . $ `Descent3/stringtable.h:35:9`!, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1131 | UITextItemcxx . . $ UITextItem# cancel_off_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_CANCELcxx . . $ `Descent3/stringtable.h:35:9`!, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1132 | |
| 1133 | UITextItemcxx . . $ UITextItem# ship_on_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_GEN_CFGALLOWEDSHIPcxx . . $ `Descent3/stringtable.h:463:9`!, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1134 | UITextItemcxx . . $ UITextItem# ship_off_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_GEN_CFGALLOWEDSHIPcxx . . $ `Descent3/stringtable.h:463:9`!, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1135 | |
| 1136 | UITextItemcxx . . $ UITextItem# blank_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).("", UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!); |
| 1137 | |
| 1138 | char str[100]; |
| 1139 | |
| 1140 | int cancel_id; |
| 1141 | rendering_statecxx . . $ rendering_state# rs; |
| 1142 | rend_GetRenderStatecxx . . $ rend_GetRenderState(2ca0d60fb0cb1bea).(&rs); |
| 1143 | |
| 1144 | NewUIWindowcxx . . $ NewUIWindow# main_wndcxx . . $ NewUIWindow#NewUIWindow(49f6e7a06ebc5aa8).; |
| 1145 | main_wnd.Createcxx . . $ NewUIWindow#Create(1559a299834bcdd5).(0, 0, rs.screen_widthcxx . . $ rendering_state#screen_width., rs.screen_heightcxx . . $ rendering_state#screen_height., UIF_PROCESS_ALLcxx . . $ `ui/ui.h:348:9`!); |
| 1146 | |
| 1147 | int num_text = 0, num_edit = 0; |
| 1148 | int return_id; |
| 1149 | int id = 0; |
| 1150 | |
| 1151 | UITextcxx . . $ UIText# title_txt; |
| 1152 | title_txt.Createcxx . . $ UIText#Create(c90f152919fa414d).(&main_wnd, &options_title_text, 0, MULTI_OPT_TITLE_Ycxx . . $ `Descent3/multi_ui.cpp:1107:9`!, UIF_CENTERcxx . . $ `ui/ui.h:342:9`!); |
| 1153 | int cury = MULTI_OPT_EDITS_Ycxx . . $ `Descent3/multi_ui.cpp:1108:9`!; |
| 1154 | // Time limit |
| 1155 | UITextcxx . . $ UIText# time_limit; |
| 1156 | time_limit.Createcxx . . $ UIText#Create(c90f152919fa414d).(&main_wnd, &time_limit_text, MULTI_OPT_EDITS_X_LCOL1cxx . . $ `Descent3/multi_ui.cpp:1109:9`!, cury + MULTI_OPT_LABEL_OFScxx . . $ `Descent3/multi_ui.cpp:1116:9`!, 0); |
| 1157 | NewUIEditcxx . . $ NewUIEdit# time_limit_edit; |
| 1158 | time_limit_edit.Createcxx . . $ NewUIEdit#Create(43707b8add2f137d).(&main_wnd, id++, MULTI_OPT_EDITS_X_COL1cxx . . $ `Descent3/multi_ui.cpp:1110:9`!, cury, 100, 15, 0); |
| 1159 | cury += 20; |
| 1160 | cury += 20; |
| 1161 | |
| 1162 | // Kill goal |
| 1163 | UITextcxx . . $ UIText# kill_goal; |
| 1164 | kill_goal.Createcxx . . $ UIText#Create(c90f152919fa414d).(&main_wnd, &kill_goal_text, MULTI_OPT_EDITS_X_LCOL1cxx . . $ `Descent3/multi_ui.cpp:1109:9`!, cury + MULTI_OPT_LABEL_OFScxx . . $ `Descent3/multi_ui.cpp:1116:9`!, 0); |
| 1165 | NewUIEditcxx . . $ NewUIEdit# kill_goal_edit; |
| 1166 | kill_goal_edit.Createcxx . . $ NewUIEdit#Create(43707b8add2f137d).(&main_wnd, id++, MULTI_OPT_EDITS_X_COL1cxx . . $ `Descent3/multi_ui.cpp:1110:9`!, cury, 100, 15, 0); |
| 1167 | cury += 20; |
| 1168 | cury += 20; |
| 1169 | NewUIEditcxx . . $ NewUIEdit# max_players_edit; |
| 1170 | UITextcxx . . $ UIText# max_players; |
| 1171 | if (alloptions) { |
| 1172 | // Max Players |
| 1173 | max_players.Createcxx . . $ UIText#Create(c90f152919fa414d).(&main_wnd, &max_players_text, MULTI_OPT_EDITS_X_LCOL1cxx . . $ `Descent3/multi_ui.cpp:1109:9`!, cury + MULTI_OPT_LABEL_OFScxx . . $ `Descent3/multi_ui.cpp:1116:9`!, 0); |
| 1174 | max_players_edit.Createcxx . . $ NewUIEdit#Create(43707b8add2f137d).(&main_wnd, id++, MULTI_OPT_EDITS_X_COL1cxx . . $ `Descent3/multi_ui.cpp:1110:9`!, cury, 100, 15, 0); |
| 1175 | cury += 20; |
| 1176 | } |
| 1177 | cury += 20; |
| 1178 | |
| 1179 | cury = MULTI_OPT_EDITS_Ycxx . . $ `Descent3/multi_ui.cpp:1108:9`!; |
| 1180 | |
| 1181 | // Packets per second |
| 1182 | UITextcxx . . $ UIText# pps; |
| 1183 | pps.Createcxx . . $ UIText#Create(c90f152919fa414d).(&main_wnd, &pps_text, MULTI_OPT_EDITS_X_LCOL2cxx . . $ `Descent3/multi_ui.cpp:1111:9`!, cury + MULTI_OPT_LABEL_OFScxx . . $ `Descent3/multi_ui.cpp:1116:9`!, 0); |
| 1184 | NewUIEditcxx . . $ NewUIEdit# pps_edit; |
| 1185 | pps_edit.Createcxx . . $ NewUIEdit#Create(43707b8add2f137d).(&main_wnd, id++, MULTI_OPT_EDITS_X_COL2cxx . . $ `Descent3/multi_ui.cpp:1112:9`!, cury, 100, 15, 0); |
| 1186 | cury += 20; |
| 1187 | cury += 20; |
| 1188 | |
| 1189 | // Respawn rate |
| 1190 | UITextcxx . . $ UIText# respawn; |
| 1191 | respawn.Createcxx . . $ UIText#Create(c90f152919fa414d).(&main_wnd, &respawn_rate_text, MULTI_OPT_EDITS_X_LCOL2cxx . . $ `Descent3/multi_ui.cpp:1111:9`!, cury + MULTI_OPT_LABEL_OFScxx . . $ `Descent3/multi_ui.cpp:1116:9`!, 0); |
| 1192 | NewUIEditcxx . . $ NewUIEdit# respawn_edit; |
| 1193 | respawn_edit.Createcxx . . $ NewUIEdit#Create(43707b8add2f137d).(&main_wnd, id++, MULTI_OPT_EDITS_X_COL2cxx . . $ `Descent3/multi_ui.cpp:1112:9`!, cury, 100, 15, 0); |
| 1194 | cury += 20; |
| 1195 | |
| 1196 | cury = MULTI_OPT_TOGGLES_Ycxx . . $ `Descent3/multi_ui.cpp:1113:9`!; |
| 1197 | UIHotspotcxx . . $ UIHotspot# cs_mode_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 1198 | UIHotspotcxx . . $ UIHotspot# pp_mode_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 1199 | UIHotspotcxx . . $ UIHotspot# pcs_mode_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 1200 | snprintf(str, sizeof(str), "%c %s", CHAR_CHECKBOX_ONcxx . . $ `Descent3/multi_ui.cpp:1090:9`!, TXT_GEN_USEROTVELcxx . . $ `Descent3/stringtable.h:468:9`!); |
| 1201 | UITextItemcxx . . $ UITextItem# rot_vel_sel_txt_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1202 | UITextItemcxx . . $ UITextItem# rot_vel_sel_txt_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1203 | |
| 1204 | snprintf(str, sizeof(str), "%c %s", CHAR_CHECKBOX_OFFcxx . . $ `Descent3/multi_ui.cpp:1089:9`!, TXT_GEN_USEROTVELcxx . . $ `Descent3/stringtable.h:468:9`!); |
| 1205 | UITextItemcxx . . $ UITextItem# rot_vel_unsel_txt_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1206 | UITextItemcxx . . $ UITextItem# rot_vel_unsel_txt_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1207 | |
| 1208 | snprintf(str, sizeof(str), "%c %s", CHAR_CHECKBOX_ONcxx . . $ `Descent3/multi_ui.cpp:1090:9`!, TXT_GEN_BRIGHT_PLAYERScxx . . $ `Descent3/stringtable.h:472:9`!); |
| 1209 | UITextItemcxx . . $ UITextItem# bright_players_sel_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1210 | UITextItemcxx . . $ UITextItem# bright_players_sel_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1211 | |
| 1212 | snprintf(str, sizeof(str), "%c %s", CHAR_CHECKBOX_OFFcxx . . $ `Descent3/multi_ui.cpp:1089:9`!, TXT_GEN_BRIGHT_PLAYERScxx . . $ `Descent3/stringtable.h:472:9`!); |
| 1213 | UITextItemcxx . . $ UITextItem# bright_players_unsel_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1214 | UITextItemcxx . . $ UITextItem# bright_players_unsel_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1215 | |
| 1216 | snprintf(str, sizeof(str), "%c %s", CHAR_RADIO_ONcxx . . $ `Descent3/multi_ui.cpp:1092:9`!, TXT_GEN_CLIENTSERVERcxx . . $ `Descent3/stringtable.h:465:9`!); |
| 1217 | UITextItemcxx . . $ UITextItem# cs_mode_sel_text_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1218 | UITextItemcxx . . $ UITextItem# cs_mode_sel_text_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1219 | |
| 1220 | snprintf(str, sizeof(str), "%c %s", CHAR_RADIO_OFFcxx . . $ `Descent3/multi_ui.cpp:1091:9`!, TXT_GEN_CLIENTSERVERcxx . . $ `Descent3/stringtable.h:465:9`!); |
| 1221 | UITextItemcxx . . $ UITextItem# cs_mode_unsel_text_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1222 | UITextItemcxx . . $ UITextItem# cs_mode_unsel_text_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1223 | |
| 1224 | snprintf(str, sizeof(str), "%c %s", CHAR_RADIO_ONcxx . . $ `Descent3/multi_ui.cpp:1092:9`!, TXT_GEN_PEERPEERcxx . . $ `Descent3/stringtable.h:466:9`!); |
| 1225 | UITextItemcxx . . $ UITextItem# pp_mode_sel_text_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1226 | UITextItemcxx . . $ UITextItem# pp_mode_sel_text_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1227 | |
| 1228 | snprintf(str, sizeof(str), "%c %s", CHAR_RADIO_OFFcxx . . $ `Descent3/multi_ui.cpp:1091:9`!, TXT_GEN_PEERPEERcxx . . $ `Descent3/stringtable.h:466:9`!); |
| 1229 | UITextItemcxx . . $ UITextItem# pp_mode_unsel_text_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1230 | UITextItemcxx . . $ UITextItem# pp_mode_unsel_text_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1231 | |
| 1232 | snprintf(str, sizeof(str), "%c %s", CHAR_RADIO_ONcxx . . $ `Descent3/multi_ui.cpp:1092:9`!, TXT_GEN_PERMISSABLE_CScxx . . $ `Descent3/stringtable.h:475:9`!); |
| 1233 | UITextItemcxx . . $ UITextItem# pcs_mode_sel_text_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1234 | UITextItemcxx . . $ UITextItem# pcs_mode_sel_text_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1235 | |
| 1236 | snprintf(str, sizeof(str), "%c %s", CHAR_RADIO_OFFcxx . . $ `Descent3/multi_ui.cpp:1091:9`!, TXT_GEN_PERMISSABLE_CScxx . . $ `Descent3/stringtable.h:475:9`!); |
| 1237 | UITextItemcxx . . $ UITextItem# pcs_mode_unsel_text_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1238 | UITextItemcxx . . $ UITextItem# pcs_mode_unsel_text_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1239 | |
| 1240 | snprintf(str, sizeof(str), TXT_GEN_ACC_WEAP_COLLcxx . . $ `Descent3/stringtable.h:471:9`!, CHAR_CHECKBOX_ONcxx . . $ `Descent3/multi_ui.cpp:1090:9`!); |
| 1241 | UITextItemcxx . . $ UITextItem# acc_weap_coll_sel_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1242 | UITextItemcxx . . $ UITextItem# acc_weap_coll_sel_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1243 | |
| 1244 | snprintf(str, sizeof(str), TXT_GEN_ACC_WEAP_COLLcxx . . $ `Descent3/stringtable.h:471:9`!, CHAR_CHECKBOX_OFFcxx . . $ `Descent3/multi_ui.cpp:1089:9`!); |
| 1245 | UITextItemcxx . . $ UITextItem# acc_weap_coll_unsel_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1246 | UITextItemcxx . . $ UITextItem# acc_weap_coll_unsel_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1247 | |
| 1248 | snprintf(str, sizeof(str), "%c %s", CHAR_CHECKBOX_ONcxx . . $ `Descent3/multi_ui.cpp:1090:9`!, TXT_RANDOMPOWERUPRESPAWNcxx . . $ `Descent3/stringtable.h:787:9`!); |
| 1249 | UITextItemcxx . . $ UITextItem# powerup_respawn_sel_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1250 | UITextItemcxx . . $ UITextItem# powerup_respawn_sel_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1251 | |
| 1252 | snprintf(str, sizeof(str), "%c %s", CHAR_CHECKBOX_OFFcxx . . $ `Descent3/multi_ui.cpp:1089:9`!, TXT_RANDOMPOWERUPRESPAWNcxx . . $ `Descent3/stringtable.h:787:9`!); |
| 1253 | UITextItemcxx . . $ UITextItem# powerup_respawn_unsel_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1254 | UITextItemcxx . . $ UITextItem# powerup_respawn_unsel_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1255 | |
| 1256 | snprintf(str, sizeof(str), "%c %s", CHAR_CHECKBOX_ONcxx . . $ `Descent3/multi_ui.cpp:1090:9`!, TXT_ALLOWMLOOKcxx . . $ `Descent3/stringtable.h:825:9`!); |
| 1257 | UITextItemcxx . . $ UITextItem# mouselookers_sel_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1258 | UITextItemcxx . . $ UITextItem# mouselookers_sel_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1259 | |
| 1260 | snprintf(str, sizeof(str), "%c %s", CHAR_CHECKBOX_OFFcxx . . $ `Descent3/multi_ui.cpp:1089:9`!, TXT_ALLOWMLOOKcxx . . $ `Descent3/stringtable.h:825:9`!); |
| 1261 | UITextItemcxx . . $ UITextItem# mouselookers_unsel_offcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!); |
| 1262 | UITextItemcxx . . $ UITextItem# mouselookers_unsel_oncxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(str, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!); |
| 1263 | |
| 1264 | int cs_y; |
| 1265 | int pp_y; |
| 1266 | int pcs_y; |
| 1267 | UIHotspotcxx . . $ UIHotspot# rot_vel_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 1268 | UIHotspotcxx . . $ UIHotspot# acc_weap_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 1269 | UIHotspotcxx . . $ UIHotspot# powerup_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 1270 | UIHotspotcxx . . $ UIHotspot# mlook_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 1271 | UIHotspotcxx . . $ UIHotspot# bright_players_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 1272 | |
| 1273 | int rotvely; |
| 1274 | int acc_weap_y; |
| 1275 | int powerup_y; |
| 1276 | int mlook_y; |
| 1277 | int bright_players_y; |
| 1278 | int diff_y; |
| 1279 | |
| 1280 | cury -= 15; |
| 1281 | diff_y = cury; |
| 1282 | if (alloptions) { |
| 1283 | |
| 1284 | cury += 15; |
| 1285 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_PEER_PEERcxx . . $ `Descent3/multi_external.h:230:9`!) { |
| 1286 | cs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, CS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1094:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &cs_mode_unsel_text_off, &cs_mode_unsel_text_on, |
| 1287 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1288 | cs_y = cury; |
| 1289 | cury += 20; |
| 1290 | |
| 1291 | pp_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PP_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1095:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pp_mode_sel_text_off, &pp_mode_sel_text_on, |
| 1292 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1293 | pp_y = cury; |
| 1294 | cury += 20; |
| 1295 | |
| 1296 | pcs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1100:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pcs_mode_unsel_text_off, &pcs_mode_unsel_text_on, |
| 1297 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1298 | pcs_y = cury; |
| 1299 | cury += 20; |
| 1300 | } else if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_PERMISSABLEcxx . . $ `Descent3/multi_external.h:239:9`!) { |
| 1301 | //// |
| 1302 | cs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, CS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1094:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &cs_mode_unsel_text_off, &cs_mode_unsel_text_on, |
| 1303 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1304 | cs_y = cury; |
| 1305 | cury += 20; |
| 1306 | |
| 1307 | pp_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PP_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1095:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pp_mode_unsel_text_off, &pp_mode_unsel_text_on, |
| 1308 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1309 | pp_y = cury; |
| 1310 | cury += 20; |
| 1311 | |
| 1312 | pcs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1100:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pcs_mode_sel_text_off, &pcs_mode_sel_text_on, |
| 1313 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1314 | pcs_y = cury; |
| 1315 | cury += 20; |
| 1316 | } else { |
| 1317 | cs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, CS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1094:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &cs_mode_sel_text_off, &cs_mode_sel_text_on, |
| 1318 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1319 | cs_y = cury; |
| 1320 | cury += 20; |
| 1321 | pp_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PP_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1095:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pp_mode_unsel_text_off, &pp_mode_unsel_text_on, |
| 1322 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1323 | pp_y = cury; |
| 1324 | cury += 20; |
| 1325 | |
| 1326 | pcs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1100:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pcs_mode_unsel_text_off, &pcs_mode_unsel_text_on, |
| 1327 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1328 | pcs_y = cury; |
| 1329 | cury += 20; |
| 1330 | } |
| 1331 | |
| 1332 | cury += 10; |
| 1333 | diff_y = cury; |
| 1334 | |
| 1335 | // Rotvel toggle |
| 1336 | |
| 1337 | cury = MULTI_OPT_TOGGLES_Ycxx . . $ `Descent3/multi_ui.cpp:1113:9`!; |
| 1338 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_SENDROTVELcxx . . $ `Descent3/multi_external.h:231:9`!) { |
| 1339 | rot_vel_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, ROT_VEL_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1096:9`!, 0, &rot_vel_sel_txt_off, &rot_vel_sel_txt_on, |
| 1340 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1341 | } else { |
| 1342 | rot_vel_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, ROT_VEL_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1096:9`!, 0, &rot_vel_unsel_txt_off, &rot_vel_unsel_txt_on, |
| 1343 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1344 | } |
| 1345 | rotvely = cury; |
| 1346 | cury += 20; |
| 1347 | } |
| 1348 | // Accurate collisions toggle |
| 1349 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_USE_ACC_WEAPcxx . . $ `Descent3/multi_external.h:236:9`!) { |
| 1350 | acc_weap_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, ACC_WEAP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1097:9`!, KEY_Acxx . . $ `ddio/ddio_common.h:229:9`!, &acc_weap_coll_sel_off, &acc_weap_coll_sel_on, |
| 1351 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1352 | } else { |
| 1353 | acc_weap_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, ACC_WEAP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1097:9`!, KEY_Acxx . . $ `ddio/ddio_common.h:229:9`!, &acc_weap_coll_unsel_off, &acc_weap_coll_unsel_on, |
| 1354 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1355 | } |
| 1356 | acc_weap_y = cury; |
| 1357 | cury += 20; |
| 1358 | |
| 1359 | // Bright players toggle |
| 1360 | |
| 1361 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_BRIGHT_PLAYERScxx . . $ `Descent3/multi_external.h:238:9`!) { |
| 1362 | bright_players_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, BRIGHT_SHIP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1098:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &bright_players_sel_off, &bright_players_sel_on, |
| 1363 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1364 | } else { |
| 1365 | bright_players_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, BRIGHT_SHIP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1098:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &bright_players_unsel_off, &bright_players_unsel_on, |
| 1366 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1367 | } |
| 1368 | bright_players_y = cury; |
| 1369 | cury += 20; |
| 1370 | |
| 1371 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_RANDOMIZE_RESPAWNcxx . . $ `Descent3/multi_external.h:241:9`!) { |
| 1372 | powerup_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, RAND_POWERUP_IDcxx . . $ `Descent3/multi_ui.cpp:1099:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &powerup_respawn_sel_off, &powerup_respawn_sel_on, |
| 1373 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1374 | } else { |
| 1375 | powerup_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, RAND_POWERUP_IDcxx . . $ `Descent3/multi_ui.cpp:1099:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &powerup_respawn_unsel_off, &powerup_respawn_unsel_on, |
| 1376 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1377 | } |
| 1378 | powerup_y = cury; |
| 1379 | cury += 20; |
| 1380 | |
| 1381 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_ALLOW_MLOOKcxx . . $ `Descent3/multi_external.h:242:9`!) { |
| 1382 | mlook_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, MLOOK_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1101:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &mouselookers_sel_off, &mouselookers_sel_on, |
| 1383 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1384 | } else { |
| 1385 | mlook_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, MLOOK_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1101:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &mouselookers_unsel_off, &mouselookers_unsel_on, |
| 1386 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1387 | } |
| 1388 | mlook_y = cury; |
| 1389 | cury += 20; |
| 1390 | |
| 1391 | // Difficulty Listbox & title |
| 1392 | UITextItemcxx . . $ UITextItem# diff_title_textcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_PLTDIFFICULTcxx . . $ `Descent3/stringtable.h:52:9`!, UICOL_WINDOW_TITLEcxx . . $ `Descent3/newui.h:219:9`!); |
| 1393 | UITextItemcxx . . $ UITextItem# traineecxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_TRAINEEcxx . . $ `Descent3/stringtable.h:53:9`!, GR_LIGHTGRAYcxx . . $ GR_LIGHTGRAY.); |
| 1394 | UITextItemcxx . . $ UITextItem# rookiecxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_ROOKIEcxx . . $ `Descent3/stringtable.h:54:9`!, GR_LIGHTGRAYcxx . . $ GR_LIGHTGRAY.); |
| 1395 | UITextItemcxx . . $ UITextItem# hotshotcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_HOTSHOTcxx . . $ `Descent3/stringtable.h:55:9`!, GR_LIGHTGRAYcxx . . $ GR_LIGHTGRAY.); |
| 1396 | UITextItemcxx . . $ UITextItem# acecxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_ACEcxx . . $ `Descent3/stringtable.h:56:9`!, GR_LIGHTGRAYcxx . . $ GR_LIGHTGRAY.); |
| 1397 | UITextItemcxx . . $ UITextItem# insanecxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_INSANEcxx . . $ `Descent3/stringtable.h:57:9`!, GR_LIGHTGRAYcxx . . $ GR_LIGHTGRAY.); |
| 1398 | |
| 1399 | UITextcxx . . $ UIText# diff_title; |
| 1400 | |
| 1401 | diff_title.Createcxx . . $ UIText#Create(c90f152919fa414d).(&main_wnd, &diff_title_text, MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, diff_y, 0); |
| 1402 | diff_y += 15; |
| 1403 | NewUIListBoxcxx . . $ NewUIListBox# diff_list; |
| 1404 | |
| 1405 | diff_list.SetSelectedColorcxx . . $ UIListBox#SetSelectedColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!); |
| 1406 | diff_list.SetHiliteColorcxx . . $ UIListBox#SetHiliteColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!); |
| 1407 | diff_list.Createcxx . . $ NewUIListBox#Create(43707b8add2f137d).(&main_wnd, DIFF_LIST_IDcxx . . $ `Descent3/multi_ui.cpp:1102:9`!, MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, diff_y, 160, 96, UILB_NOSORTcxx . . $ `ui/ui.h:356:9`!); |
| 1408 | |
| 1409 | diff_list.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(&trainee); |
| 1410 | diff_list.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(&rookie); |
| 1411 | diff_list.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(&hotshot); |
| 1412 | diff_list.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(&ace); |
| 1413 | diff_list.AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(&insane); |
| 1414 | |
| 1415 | switch (Netgamecxx . . $ Netgame..difficultycxx . . $ netgame_info#difficulty.) { |
| 1416 | case 0: |
| 1417 | diff_list.SelectItemcxx . . $ UIListBox#SelectItem(f57aa2fef0df48a8).(&trainee); |
| 1418 | break; |
| 1419 | case 1: |
| 1420 | diff_list.SelectItemcxx . . $ UIListBox#SelectItem(f57aa2fef0df48a8).(&rookie); |
| 1421 | break; |
| 1422 | case 2: |
| 1423 | diff_list.SelectItemcxx . . $ UIListBox#SelectItem(f57aa2fef0df48a8).(&hotshot); |
| 1424 | break; |
| 1425 | case 3: |
| 1426 | diff_list.SelectItemcxx . . $ UIListBox#SelectItem(f57aa2fef0df48a8).(&ace); |
| 1427 | break; |
| 1428 | case 4: |
| 1429 | diff_list.SelectItemcxx . . $ UIListBox#SelectItem(f57aa2fef0df48a8).(&insane); |
| 1430 | break; |
| 1431 | } |
| 1432 | |
| 1433 | cury = MULTI_OPT_HOTSPOT_Ycxx . . $ `Descent3/multi_ui.cpp:1118:9`!; |
| 1434 | // int hsmid = MULTI_OPT_HOTSPOT_X_MID - (DLLgrtext_GetTextLineWidth(TXT_GEN_CFGALLOWEDSHIP)/2); |
| 1435 | UIHotspotcxx . . $ UIHotspot# ship_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 1436 | ship_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, SHIP_ALLOW_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1103:9`!, KEY_Scxx . . $ `ddio/ddio_common.h:247:9`!, &ship_off_text, &ship_on_text, 0, cury, 180, 30, |
| 1437 | UIF_FITcxx . . $ `ui/ui.h:343:9`! | UIF_CENTERcxx . . $ `ui/ui.h:342:9`!); |
| 1438 | cury += 20; |
| 1439 | return_id = UID_OKcxx . . $ `ui/ui.h:368:9`!; |
| 1440 | cury += 10; |
| 1441 | // hsmid = MULTI_OPT_HOTSPOT_X_MID - (DLLgrtext_GetTextLineWidth(TXT_GEN_PREVMENU)/2); |
| 1442 | UIHotspotcxx . . $ UIHotspot# exit_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 1443 | exit_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, UID_OKcxx . . $ `ui/ui.h:368:9`!, KEY_ESCcxx . . $ `ddio/ddio_common.h:267:9`!, &exit_off_text, &exit_on_text, 0, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`! | UIF_CENTERcxx . . $ `ui/ui.h:342:9`!); |
| 1444 | cury += 20; |
| 1445 | cancel_id = UID_CANCELcxx . . $ `ui/ui.h:369:9`!; |
| 1446 | /// hsmid = MULTI_OPT_HOTSPOT_X_MID - (DLLgrtext_GetTextLineWidth(TXT_GEN_CANCEL)/2); |
| 1447 | UIHotspotcxx . . $ UIHotspot# cancel_hscxx . . $ UIHotspot#UIHotspot(49f6e7a06ebc5aa8).; |
| 1448 | cancel_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, UID_CANCELcxx . . $ `ui/ui.h:369:9`!, 0, &cancel_off_text, &cancel_on_text, 0, cury, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`! | UIF_CENTERcxx . . $ `ui/ui.h:342:9`!); |
| 1449 | cury += 20; |
| 1450 | // Bash some values |
| 1451 | |
| 1452 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_TIMERcxx . . $ `Descent3/multi_external.h:226:9`!) |
| 1453 | snprintf(str, sizeof(str), "%d", Netgamecxx . . $ Netgame..timelimitcxx . . $ netgame_info#timelimit.); |
| 1454 | else |
| 1455 | snprintf(str, sizeof(str), "%d", 0); |
| 1456 | |
| 1457 | time_limit_edit.SetTextcxx . . $ UIEdit#SetText(85c52e162fed56f9).(str); |
| 1458 | |
| 1459 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_KILLGOALcxx . . $ `Descent3/multi_external.h:227:9`!) |
| 1460 | snprintf(str, sizeof(str), "%d", Netgamecxx . . $ Netgame..killgoalcxx . . $ netgame_info#killgoal.); |
| 1461 | else |
| 1462 | snprintf(str, sizeof(str), "%d", 0); |
| 1463 | |
| 1464 | kill_goal_edit.SetTextcxx . . $ UIEdit#SetText(85c52e162fed56f9).(str); |
| 1465 | |
| 1466 | snprintf(str, sizeof(str), "%d", Netgamecxx . . $ Netgame..packets_per_secondcxx . . $ netgame_info#packets_per_second.); |
| 1467 | pps_edit.SetTextcxx . . $ UIEdit#SetText(85c52e162fed56f9).(str); |
| 1468 | |
| 1469 | snprintf(str, sizeof(str), "%d", Netgamecxx . . $ Netgame..max_playerscxx . . $ netgame_info#max_players.); |
| 1470 | if (alloptions) { |
| 1471 | max_players_edit.SetTextcxx . . $ UIEdit#SetText(85c52e162fed56f9).(str); |
| 1472 | } |
| 1473 | |
| 1474 | snprintf(str, sizeof(str), "%d", Netgamecxx . . $ Netgame..respawn_timecxx . . $ netgame_info#respawn_time.); |
| 1475 | respawn_edit.SetTextcxx . . $ UIEdit#SetText(85c52e162fed56f9).(str); |
| 1476 | |
| 1477 | main_wnd.LoadBackgroundImagecxx . . $ NewUIWindow#LoadBackgroundImage(85c52e162fed56f9).("multimain.ogf"); |
| 1478 | main_wnd.Opencxx . . $ UIWindow#Open(49f6e7a06ebc5aa8).(); |
| 1479 | int exit_menu = 0; |
| 1480 | |
| 1481 | while (!exit_menu) { |
| 1482 | int res; |
| 1483 | |
| 1484 | res = DoUIcxx . . $ DoUI(b126dc7c1de90089).(); |
| 1485 | if (res == cancel_id) { |
| 1486 | exit_menu = true; |
| 1487 | break; |
| 1488 | } |
| 1489 | if (alloptions) { |
| 1490 | if (res == CS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1094:9`!) { |
| 1491 | cs_mode_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1492 | pp_mode_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1493 | pcs_mode_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1494 | |
| 1495 | cs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, CS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1094:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &cs_mode_sel_text_off, &cs_mode_sel_text_on, |
| 1496 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cs_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1497 | pp_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PP_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1095:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pp_mode_unsel_text_off, &pp_mode_unsel_text_on, |
| 1498 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, pp_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1499 | pcs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1100:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pcs_mode_unsel_text_off, &pcs_mode_unsel_text_on, |
| 1500 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, pcs_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1501 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. &= ~NF_PEER_PEERcxx . . $ `Descent3/multi_external.h:230:9`!; |
| 1502 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. &= ~NF_PERMISSABLEcxx . . $ `Descent3/multi_external.h:239:9`!; |
| 1503 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Using Client/Server model\n"); |
| 1504 | } else if (res == PP_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1095:9`!) { |
| 1505 | cs_mode_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1506 | pp_mode_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1507 | pcs_mode_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1508 | |
| 1509 | cs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, CS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1094:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &cs_mode_unsel_text_off, &cs_mode_unsel_text_on, |
| 1510 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cs_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1511 | pp_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PP_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1095:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pp_mode_sel_text_off, &pp_mode_sel_text_on, |
| 1512 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, pp_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1513 | pcs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1100:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pcs_mode_unsel_text_off, &pcs_mode_unsel_text_on, |
| 1514 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, pcs_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1515 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. |= NF_PEER_PEERcxx . . $ `Descent3/multi_external.h:230:9`!; |
| 1516 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. &= ~NF_PERMISSABLEcxx . . $ `Descent3/multi_external.h:239:9`!; |
| 1517 | |
| 1518 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Using Peer/Peer model\n"); |
| 1519 | } else if (res == PS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1100:9`!) { |
| 1520 | cs_mode_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1521 | pp_mode_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1522 | pcs_mode_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1523 | |
| 1524 | cs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, CS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1094:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &cs_mode_unsel_text_off, &cs_mode_unsel_text_on, |
| 1525 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, cs_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1526 | pp_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PP_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1095:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pp_mode_unsel_text_off, &pp_mode_unsel_text_on, |
| 1527 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, pp_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1528 | pcs_mode_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, PS_MODE_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1100:9`!, KEY_Ccxx . . $ `ddio/ddio_common.h:231:9`!, &pcs_mode_sel_text_off, &pcs_mode_sel_text_on, |
| 1529 | MULTI_OPT_TOGGLES_Xcxx . . $ `Descent3/multi_ui.cpp:1114:9`!, pcs_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1530 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. |= NF_PERMISSABLEcxx . . $ `Descent3/multi_external.h:239:9`!; |
| 1531 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. &= ~NF_PEER_PEERcxx . . $ `Descent3/multi_external.h:230:9`!; |
| 1532 | |
| 1533 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Using Permissable model\n"); |
| 1534 | } else if (res == ROT_VEL_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1096:9`!) { |
| 1535 | rot_vel_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1536 | |
| 1537 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_SENDROTVELcxx . . $ `Descent3/multi_external.h:231:9`!) { |
| 1538 | rot_vel_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, ROT_VEL_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1096:9`!, 0, &rot_vel_unsel_txt_off, &rot_vel_unsel_txt_on, |
| 1539 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, rotvely, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1540 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. &= ~NF_SENDROTVELcxx . . $ `Descent3/multi_external.h:231:9`!; |
| 1541 | } else { |
| 1542 | rot_vel_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, ROT_VEL_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1096:9`!, 0, &rot_vel_sel_txt_off, &rot_vel_sel_txt_on, |
| 1543 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, rotvely, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1544 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. |= NF_SENDROTVELcxx . . $ `Descent3/multi_external.h:231:9`!; |
| 1545 | } |
| 1546 | } |
| 1547 | } |
| 1548 | |
| 1549 | if (res == SHIP_ALLOW_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1103:9`!) { |
| 1550 | // Ships allowed |
| 1551 | main_wnd.Closecxx . . $ UIWindow#Close(49f6e7a06ebc5aa8).(); |
| 1552 | DoMultiAllowedcxx . . $ DoMultiAllowed(49f6e7a06ebc5aa8).(); |
| 1553 | main_wnd.Opencxx . . $ UIWindow#Open(49f6e7a06ebc5aa8).(); |
| 1554 | } else if (res == ACC_WEAP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1097:9`!) { |
| 1555 | acc_weap_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1556 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_USE_ACC_WEAPcxx . . $ `Descent3/multi_external.h:236:9`!) { |
| 1557 | acc_weap_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, ACC_WEAP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1097:9`!, KEY_Acxx . . $ `ddio/ddio_common.h:229:9`!, &acc_weap_coll_unsel_off, &acc_weap_coll_unsel_on, |
| 1558 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, acc_weap_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1559 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. &= ~NF_USE_ACC_WEAPcxx . . $ `Descent3/multi_external.h:236:9`!; |
| 1560 | } else { |
| 1561 | acc_weap_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, ACC_WEAP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1097:9`!, KEY_Acxx . . $ `ddio/ddio_common.h:229:9`!, &acc_weap_coll_sel_off, &acc_weap_coll_sel_on, |
| 1562 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, acc_weap_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1563 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. |= NF_USE_ACC_WEAPcxx . . $ `Descent3/multi_external.h:236:9`!; |
| 1564 | } |
| 1565 | |
| 1566 | } else if (res == BRIGHT_SHIP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1098:9`!) { |
| 1567 | bright_players_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1568 | |
| 1569 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_BRIGHT_PLAYERScxx . . $ `Descent3/multi_external.h:238:9`!) { |
| 1570 | bright_players_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, BRIGHT_SHIP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1098:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &bright_players_unsel_off, |
| 1571 | &bright_players_unsel_on, MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, bright_players_y, 180, 30, |
| 1572 | UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1573 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. &= ~NF_BRIGHT_PLAYERScxx . . $ `Descent3/multi_external.h:238:9`!; |
| 1574 | } else { |
| 1575 | bright_players_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, BRIGHT_SHIP_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1098:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &bright_players_sel_off, &bright_players_sel_on, |
| 1576 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, bright_players_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1577 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. |= NF_BRIGHT_PLAYERScxx . . $ `Descent3/multi_external.h:238:9`!; |
| 1578 | } |
| 1579 | } |
| 1580 | |
| 1581 | else if (res == RAND_POWERUP_IDcxx . . $ `Descent3/multi_ui.cpp:1099:9`!) { |
| 1582 | powerup_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1583 | |
| 1584 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_RANDOMIZE_RESPAWNcxx . . $ `Descent3/multi_external.h:241:9`!) { |
| 1585 | powerup_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, RAND_POWERUP_IDcxx . . $ `Descent3/multi_ui.cpp:1099:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &powerup_respawn_unsel_off, &powerup_respawn_unsel_on, |
| 1586 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, powerup_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1587 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. &= ~NF_RANDOMIZE_RESPAWNcxx . . $ `Descent3/multi_external.h:241:9`!; |
| 1588 | } else { |
| 1589 | powerup_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, RAND_POWERUP_IDcxx . . $ `Descent3/multi_ui.cpp:1099:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &powerup_respawn_sel_off, &powerup_respawn_sel_on, |
| 1590 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, powerup_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1591 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. |= NF_RANDOMIZE_RESPAWNcxx . . $ `Descent3/multi_external.h:241:9`!; |
| 1592 | } |
| 1593 | } |
| 1594 | |
| 1595 | else if (res == MLOOK_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1101:9`!) { |
| 1596 | mlook_hs.Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); |
| 1597 | |
| 1598 | if (Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. & NF_ALLOW_MLOOKcxx . . $ `Descent3/multi_external.h:242:9`!) { |
| 1599 | mlook_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, MLOOK_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1101:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &mouselookers_unsel_off, &mouselookers_unsel_on, |
| 1600 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, mlook_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1601 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. &= ~NF_ALLOW_MLOOKcxx . . $ `Descent3/multi_external.h:242:9`!; |
| 1602 | } else { |
| 1603 | mlook_hs.Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&main_wnd, MLOOK_HS_IDcxx . . $ `Descent3/multi_ui.cpp:1101:9`!, KEY_Bcxx . . $ `ddio/ddio_common.h:230:9`!, &mouselookers_sel_off, &mouselookers_sel_on, |
| 1604 | MULTI_OPT_TOGGLES_COL2_Xcxx . . $ `Descent3/multi_ui.cpp:1115:9`!, mlook_y, 180, 30, UIF_FITcxx . . $ `ui/ui.h:343:9`!); |
| 1605 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. |= NF_ALLOW_MLOOKcxx . . $ `Descent3/multi_external.h:242:9`!; |
| 1606 | } |
| 1607 | } else if (res == return_id) { |
| 1608 | int val; |
| 1609 | |
| 1610 | // Get kill goal |
| 1611 | // edits[killgoal_edit].GetText (str,100); |
| 1612 | kill_goal_edit.GetTextcxx . . $ UIEdit#GetText(a07d8cccb7673f5a).(str, 100); |
| 1613 | val = atoi(str); |
| 1614 | if (val > 1) { |
| 1615 | if (val > 10000) |
| 1616 | val = 10000; |
| 1617 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. |= NF_KILLGOALcxx . . $ `Descent3/multi_external.h:227:9`!; |
| 1618 | } else { |
| 1619 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. &= ~NF_KILLGOALcxx . . $ `Descent3/multi_external.h:227:9`!; |
| 1620 | val = 0; |
| 1621 | } |
| 1622 | |
| 1623 | Netgamecxx . . $ Netgame..killgoalcxx . . $ netgame_info#killgoal. = val; |
| 1624 | |
| 1625 | // Get timelimit |
| 1626 | // edits[timer_edit].GetText (str,100); |
| 1627 | time_limit_edit.GetTextcxx . . $ UIEdit#GetText(a07d8cccb7673f5a).(str, 100); |
| 1628 | val = atoi(str); |
| 1629 | if (val > 0) { |
| 1630 | if (val > 10000) |
| 1631 | val = 10000; |
| 1632 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. |= NF_TIMERcxx . . $ `Descent3/multi_external.h:226:9`!; |
| 1633 | } else { |
| 1634 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. &= ~NF_TIMERcxx . . $ `Descent3/multi_external.h:226:9`!; |
| 1635 | val = 0; |
| 1636 | } |
| 1637 | |
| 1638 | Netgamecxx . . $ Netgame..timelimitcxx . . $ netgame_info#timelimit. = val; |
| 1639 | |
| 1640 | // Get packets per second |
| 1641 | pps_edit.GetTextcxx . . $ UIEdit#GetText(a07d8cccb7673f5a).(str, 100); |
| 1642 | val = atoi(str); |
| 1643 | Netgamecxx . . $ Netgame..packets_per_secondcxx . . $ netgame_info#packets_per_second. = val; |
| 1644 | if (val > 20) |
| 1645 | val = 20; |
| 1646 | if (val < 2) |
| 1647 | val = 2; |
| 1648 | |
| 1649 | if (alloptions) { |
| 1650 | // Get Max players |
| 1651 | max_players_edit.GetTextcxx . . $ UIEdit#GetText(a07d8cccb7673f5a).(str, 100); |
| 1652 | val = atoi(str); |
| 1653 | Netgamecxx . . $ Netgame..max_playerscxx . . $ netgame_info#max_players. = val; |
| 1654 | if (val > MAX_NET_PLAYERScxx . . $ `Descent3/multi_external.h:132:9`!) |
| 1655 | Netgamecxx . . $ Netgame..max_playerscxx . . $ netgame_info#max_players. = MAX_NET_PLAYERScxx . . $ `Descent3/multi_external.h:132:9`!; |
| 1656 | if (val < 2) |
| 1657 | val = 2; |
| 1658 | } |
| 1659 | // Get respawn rate |
| 1660 | // edits[respawn_edit].GetText (str,100); |
| 1661 | respawn_edit.GetTextcxx . . $ UIEdit#GetText(a07d8cccb7673f5a).(str, 100); |
| 1662 | val = atoi(str); |
| 1663 | if (val < 15) |
| 1664 | val = 15; |
| 1665 | if (val > 300) |
| 1666 | val = 300; |
| 1667 | |
| 1668 | Netgamecxx . . $ Netgame..respawn_timecxx . . $ netgame_info#respawn_time. = val; |
| 1669 | |
| 1670 | int difficulty = diff_list.GetSelectedIndexcxx . . $ UIListBox#GetSelectedIndex(455f465bc33b4cdf).(); |
| 1671 | |
| 1672 | Netgamecxx . . $ Netgame..difficultycxx . . $ netgame_info#difficulty. = difficulty; |
| 1673 | |
| 1674 | exit_menu = 1; |
| 1675 | } |
| 1676 | } |
| 1677 | |
| 1678 | main_wnd.Closecxx . . $ UIWindow#Close(49f6e7a06ebc5aa8).(); |
| 1679 | main_wnd.Destroycxx . . $ UIWindow#Destroy(49f6e7a06ebc5aa8).(); |
| 1680 | } |
| 1681 | |
| 1682 | int ReturnMultiplayerGameMenucxx . . $ ReturnMultiplayerGameMenu(b126dc7c1de90089).(void) { |
| 1683 | MultiFlushAllIncomingBufferscxx . . $ MultiFlushAllIncomingBuffers(49f6e7a06ebc5aa8).(); |
| 1684 | CallMultiDLLcxx . . $ CallMultiDLL(d4f767463ce0a6b3).(MT_RETURN_TO_GAME_LISTcxx . . $ `Descent3/multi_external.h:144:9`!); |
| 1685 | return MultiDLLGameStartingcxx . . $ MultiDLLGameStarting.; |
| 1686 | } |
| 1687 | |
| 1688 | int MultiLevelSelectioncxx . . $ MultiLevelSelection(b126dc7c1de90089).(void) { |
| 1689 | if (Current_missioncxx . . $ Current_mission..num_levelscxx . . $ tMission#num_levels. == 1) |
| 1690 | return 1; |
| 1691 | |
| 1692 | Current_missioncxx . . $ Current_mission..cur_levelcxx . . $ tMission#cur_level. = DisplayLevelWarpDlgcxx . . $ DisplayLevelWarpDlg(7864480464b09eea).(Current_missioncxx . . $ Current_mission..num_levelscxx . . $ tMission#num_levels.); |
| 1693 | |
| 1694 | if (Current_missioncxx . . $ Current_mission..cur_levelcxx . . $ tMission#cur_level. < 1) { |
| 1695 | Current_missioncxx . . $ Current_mission..cur_levelcxx . . $ tMission#cur_level. = 1; |
| 1696 | return -1; |
| 1697 | } |
| 1698 | return Current_missioncxx . . $ Current_mission..cur_levelcxx . . $ tMission#cur_level.; |
| 1699 | } |
| 1700 | |
| 1701 | bool DoPlayerMouselookCheckcxx . . $ DoPlayerMouselookCheck(dfa6e707f7696010).(uint32_tcxx . . $ uint32_t# flags) { |
| 1702 | if (Current_pilotcxx . . $ Current_pilot..mouselook_controlcxx . . $ pilot#mouselook_control.) { |
| 1703 | if (flags & NF_ALLOW_MLOOKcxx . . $ `Descent3/multi_external.h:242:9`!) { |
| 1704 | return true; |
| 1705 | } else { |
| 1706 | int ret = DoMessageBoxcxx . . $ DoMessageBox(dcc99837539e9edc).(TXT_NOMOUSELOOKcxx . . $ `Descent3/stringtable.h:826:9`!, TXT_MLOOK_JOINANYWAYcxx . . $ `Descent3/stringtable.h:827:9`!, MSGBOX_YESNOcxx . . $ `Descent3/newui_core.h:80:9`!); |
| 1707 | return ret ? true : false; |
| 1708 | } |
| 1709 | } |
| 1710 | |
| 1711 | return true; |
| 1712 | } |
| 1713 | |
| 1714 | #define GAME_INFO_MENU_Wcxx . . $ `Descent3/multi_ui.cpp:1714:9`! 384 |
| 1715 | #define GAME_INFO_MENU_Hcxx . . $ `Descent3/multi_ui.cpp:1715:9`! 384 |
| 1716 | #define GAME_INFO_MENU_Xcxx . . $ `Descent3/multi_ui.cpp:1716:9`! 320 - (GAME_INFO_MENU_W / 2) |
| 1717 | #define GAME_INFO_MENU_Ycxx . . $ `Descent3/multi_ui.cpp:1717:9`! 240 - (GAME_INFO_MENU_H / 2) |
| 1718 | |
| 1719 | #define GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`! 10 |
| 1720 | |
| 1721 | #define GAME_INFO_GOTO_NEXT_LINEcxx . . $ `Descent3/multi_ui.cpp:1721:9`! cury += 13 |
| 1722 | |
| 1723 | #define UID_GAMEINFO_PLAYERScxx . . $ `Descent3/multi_ui.cpp:1723:9`! 1000 |
| 1724 | |
| 1725 | extern char *Multi_recieved_player_listcxx . . $ Multi_recieved_player_list.; |
| 1726 | extern bool Multi_got_player_listcxx . . $ Multi_got_player_list.; |
| 1727 | |
| 1728 | void RequestPlayerListcxx . . $ RequestPlayerList(f2758234d0c8cb80).(network_addresscxx . . $ network_address# *addr); |
| 1729 | |
| 1730 | #define ASK_PLAYERS_RETRY_INTERVALcxx . . $ `Descent3/multi_ui.cpp:1730:9`! 2.0 |
| 1731 | #define ASK_PLAYERS_RETRIEScxx . . $ `Descent3/multi_ui.cpp:1731:9`! 4 |
| 1732 | |
| 1733 | // Display a dialog box showing the information relating to this particular net game |
| 1734 | void ShowNetgameInfocxx . . $ ShowNetgameInfo(9bfd554a3f15d3ba).(network_gamecxx . . $ network_game# *game) { |
| 1735 | char str[200]; |
| 1736 | int cury = 10; |
| 1737 | int exit_menu = 0; |
| 1738 | newuiTiledWindowcxx . . $ newuiTiledWindow# menu_wndcxx . . $ newuiTiledWindow#newuiTiledWindow(49f6e7a06ebc5aa8).; |
| 1739 | newuiListBoxcxx . . $ newuiListBox# *lists; |
| 1740 | newuiSheetcxx . . $ newuiSheet# *sheet; |
| 1741 | char *plyr; |
| 1742 | |
| 1743 | ASSERTcxx . . $ `misc/pserror.h:246:9`!(game); |
| 1744 | |
| 1745 | menu_wnd.Createcxx . . $ newuiTiledWindow#Create(9860cac3d762132).(TXT_GAME_INFOcxx . . $ `Descent3/stringtable.h:859:9`!, 0, 0, GAME_INFO_MENU_Wcxx . . $ `Descent3/multi_ui.cpp:1714:9`!, GAME_INFO_MENU_Hcxx . . $ `Descent3/multi_ui.cpp:1715:9`!); |
| 1746 | sheet = menu_wnd.GetSheetcxx . . $ newuiTiledWindow#GetSheet(661381a276e5b628).(); |
| 1747 | |
| 1748 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(game->namecxx . . $ network_game#name., GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`!, cury); |
| 1749 | cury += 15; |
| 1750 | snprintf(str, sizeof(str), TXT_GINFO_MISSIONcxx . . $ `Descent3/stringtable.h:858:9`!, game->mission_namecxx . . $ network_game#mission_name.); |
| 1751 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(str, GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`!, cury); |
| 1752 | GAME_INFO_GOTO_NEXT_LINEcxx . . $ `Descent3/multi_ui.cpp:1721:9`!; |
| 1753 | |
| 1754 | snprintf(str, sizeof(str), TXT_PLAYERS_X_OF_Xcxx . . $ `Descent3/stringtable.h:857:9`!, game->curr_num_playerscxx . . $ network_game#curr_num_players., game->max_num_playerscxx . . $ network_game#max_num_players.); |
| 1755 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(str, GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`!, cury); |
| 1756 | GAME_INFO_GOTO_NEXT_LINEcxx . . $ `Descent3/multi_ui.cpp:1721:9`!; |
| 1757 | |
| 1758 | const char *szdiff = TXT_ERRORcxx . . $ `Descent3/stringtable.h:165:9`!; |
| 1759 | |
| 1760 | switch (game->difficultycxx . . $ network_game#difficulty.) { |
| 1761 | case 0: |
| 1762 | szdiff = TXT_TRAINEEcxx . . $ `Descent3/stringtable.h:53:9`!; |
| 1763 | break; |
| 1764 | case 1: |
| 1765 | szdiff = TXT_ROOKIEcxx . . $ `Descent3/stringtable.h:54:9`!; |
| 1766 | break; |
| 1767 | case 2: |
| 1768 | szdiff = TXT_HOTSHOTcxx . . $ `Descent3/stringtable.h:55:9`!; |
| 1769 | break; |
| 1770 | case 3: |
| 1771 | szdiff = TXT_ACEcxx . . $ `Descent3/stringtable.h:56:9`!; |
| 1772 | break; |
| 1773 | case 4: |
| 1774 | szdiff = TXT_INSANEcxx . . $ `Descent3/stringtable.h:57:9`!; |
| 1775 | break; |
| 1776 | default: |
| 1777 | szdiff = TXT_ERRORcxx . . $ `Descent3/stringtable.h:165:9`!; |
| 1778 | } |
| 1779 | |
| 1780 | snprintf(str, sizeof(str), "%s: %s", TXT_PLTDIFFICULTcxx . . $ `Descent3/stringtable.h:52:9`!, szdiff); |
| 1781 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(str, GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`!, cury); |
| 1782 | GAME_INFO_GOTO_NEXT_LINEcxx . . $ `Descent3/multi_ui.cpp:1721:9`!; |
| 1783 | |
| 1784 | const char *mode; |
| 1785 | if ((game->flagscxx . . $ network_game#flags. & NF_PEER_PEERcxx . . $ `Descent3/multi_external.h:230:9`!)) { |
| 1786 | mode = TXT_GEN_PEERPEERcxx . . $ `Descent3/stringtable.h:466:9`!; |
| 1787 | } else if ((game->flagscxx . . $ network_game#flags. & NF_PERMISSABLEcxx . . $ `Descent3/multi_external.h:239:9`!)) { |
| 1788 | mode = TXT_GEN_PERMISSABLE_CScxx . . $ `Descent3/stringtable.h:475:9`!; |
| 1789 | } else { |
| 1790 | mode = TXT_GEN_CLIENTSERVERcxx . . $ `Descent3/stringtable.h:465:9`!; |
| 1791 | } |
| 1792 | |
| 1793 | if (game->dedicated_servercxx . . $ network_game#dedicated_server.) |
| 1794 | snprintf(str, sizeof(str), TXT_DEDICATED_SERVERcxx . . $ `Descent3/stringtable.h:849:9`!, mode); |
| 1795 | else |
| 1796 | snprintf(str, sizeof(str), TXT_NONDEDICATED_SERVERcxx . . $ `Descent3/stringtable.h:850:9`!, mode); |
| 1797 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(str, GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`!, cury); |
| 1798 | GAME_INFO_GOTO_NEXT_LINEcxx . . $ `Descent3/multi_ui.cpp:1721:9`!; |
| 1799 | |
| 1800 | snprintf(str, sizeof(str), TXT_GINFO_ALLOWMOUSELOOKcxx . . $ `Descent3/stringtable.h:851:9`!, (game->flagscxx . . $ network_game#flags. & NF_ALLOW_MLOOKcxx . . $ `Descent3/multi_external.h:242:9`!) ? TXT_DOEScxx . . $ `Descent3/stringtable.h:852:9`! : TXT_DOESNOTcxx . . $ `Descent3/stringtable.h:853:9`!); |
| 1801 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(str, GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`!, cury); |
| 1802 | GAME_INFO_GOTO_NEXT_LINEcxx . . $ `Descent3/multi_ui.cpp:1721:9`!; |
| 1803 | |
| 1804 | snprintf(str, sizeof(str), "%s: %s", TXT_GEN_BRIGHT_PLAYERScxx . . $ `Descent3/stringtable.h:472:9`!, (game->flagscxx . . $ network_game#flags. & NF_BRIGHT_PLAYERScxx . . $ `Descent3/multi_external.h:238:9`!) ? TXT_ONcxx . . $ `Descent3/stringtable.h:111:9`! : TXT_OFFcxx . . $ `Descent3/stringtable.h:110:9`!); |
| 1805 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(str, GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`!, cury); |
| 1806 | GAME_INFO_GOTO_NEXT_LINEcxx . . $ `Descent3/multi_ui.cpp:1721:9`!; |
| 1807 | |
| 1808 | snprintf(str, sizeof(str), TXT_GINFO_ACC_WEAPCOLLcxx . . $ `Descent3/stringtable.h:854:9`!, (game->flagscxx . . $ network_game#flags. & NF_USE_ACC_WEAPcxx . . $ `Descent3/multi_external.h:236:9`!) ? TXT_ONcxx . . $ `Descent3/stringtable.h:111:9`! : TXT_OFFcxx . . $ `Descent3/stringtable.h:110:9`!); |
| 1809 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(str, GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`!, cury); |
| 1810 | GAME_INFO_GOTO_NEXT_LINEcxx . . $ `Descent3/multi_ui.cpp:1721:9`!; |
| 1811 | |
| 1812 | snprintf(str, sizeof(str), TXT_USE_ROTATIONAL_VELcxx . . $ `Descent3/stringtable.h:855:9`!, (game->flagscxx . . $ network_game#flags. & NF_SENDROTVELcxx . . $ `Descent3/multi_external.h:231:9`!) ? TXT_ONcxx . . $ `Descent3/stringtable.h:111:9`! : TXT_OFFcxx . . $ `Descent3/stringtable.h:110:9`!); |
| 1813 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(str, GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`!, cury); |
| 1814 | GAME_INFO_GOTO_NEXT_LINEcxx . . $ `Descent3/multi_ui.cpp:1721:9`!; |
| 1815 | |
| 1816 | snprintf(str, sizeof(str), TXT_RANDOMIZEPOWERUPSPAWNcxx . . $ `Descent3/stringtable.h:856:9`!, (game->flagscxx . . $ network_game#flags. & NF_RANDOMIZE_RESPAWNcxx . . $ `Descent3/multi_external.h:241:9`!) ? TXT_ONcxx . . $ `Descent3/stringtable.h:111:9`! : TXT_OFFcxx . . $ `Descent3/stringtable.h:110:9`!); |
| 1817 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(str, GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`!, cury); |
| 1818 | GAME_INFO_GOTO_NEXT_LINEcxx . . $ `Descent3/multi_ui.cpp:1721:9`!; |
| 1819 | |
| 1820 | // GAME_INFO_GOTO_NEXT_LINE; |
| 1821 | |
| 1822 | snprintf(str, sizeof(str), "%s:", TXT_GAMEINFOPLAYERSTITLEcxx . . $ `Descent3/stringtable.h:863:9`!); |
| 1823 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(str, GAME_INFO_COL1cxx . . $ `Descent3/multi_ui.cpp:1719:9`!, cury); |
| 1824 | GAME_INFO_GOTO_NEXT_LINEcxx . . $ `Descent3/multi_ui.cpp:1721:9`!; |
| 1825 | |
| 1826 | lists = sheet->AddListBoxcxx . . $ newuiSheet#AddListBox(b890ce7adcd9a5ed).(256, 128, UID_GAMEINFO_PLAYERScxx . . $ `Descent3/multi_ui.cpp:1723:9`!); |
| 1827 | lists->RemoveAllcxx . . $ newuiListBox#RemoveAll(49f6e7a06ebc5aa8).(); |
| 1828 | |
| 1829 | sheet->NewGroupcxx . . $ newuiSheet#NewGroup(465b27e37ce794b1).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, (GAME_INFO_MENU_Wcxx . . $ `Descent3/multi_ui.cpp:1714:9`! - 140), GAME_INFO_MENU_Hcxx . . $ `Descent3/multi_ui.cpp:1715:9`! - 95, NEWUI_ALIGN_HORIZcxx . . $ NEWUI_ALIGN_HORIZ.); |
| 1830 | sheet->AddButtoncxx . . $ newuiSheet#AddButton(680bf41633375800).(TXT_DONEcxx . . $ `Descent3/stringtable.h:173:9`!, UID_CANCELcxx . . $ `ui/ui.h:369:9`!); |
| 1831 | // Get players |
| 1832 | Multi_recieved_player_listcxx . . $ Multi_recieved_player_list. = (char *)mem_malloccxx . . $ `mem/mem.h:79:9`!(((CALLSIGN_LENcxx . . $ `Descent3/player_external_struct.h:89:9`! + 1) * MAX_NET_PLAYERScxx . . $ `Descent3/multi_external.h:132:9`!) + 1); |
| 1833 | memset(Multi_recieved_player_listcxx . . $ Multi_recieved_player_list., 0, ((CALLSIGN_LENcxx . . $ `Descent3/player_external_struct.h:89:9`! + 1) * MAX_NET_PLAYERScxx . . $ `Descent3/multi_external.h:132:9`!) + 1); |
| 1834 | |
| 1835 | Multi_got_player_listcxx . . $ Multi_got_player_list. = false; |
| 1836 | |
| 1837 | CreateSplashScreencxx . . $ CreateSplashScreen(34d26762b42c433a).(TXT_GETTINGPLAYERLISTcxx . . $ `Descent3/stringtable.h:864:9`!, 1); |
| 1838 | |
| 1839 | RequestPlayerListcxx . . $ RequestPlayerList(f2758234d0c8cb80).(&game->addrcxx . . $ network_game#addr.); |
| 1840 | float last_asked_time = timer_GetTimecxx . . $ `ddio/ddio.h:236:9`!(); |
| 1841 | int retries = 0; |
| 1842 | do { |
| 1843 | MultiProcessIncomingcxx . . $ MultiProcessIncoming(49f6e7a06ebc5aa8).(); |
| 1844 | int res = PollUIcxx . . $ PollUI(b126dc7c1de90089).(); |
| 1845 | // If the user hit cancel... |
| 1846 | if (res == 99) { |
| 1847 | CloseSplashScreencxx . . $ CloseSplashScreen(49f6e7a06ebc5aa8).(); |
| 1848 | goto no_players; |
| 1849 | } |
| 1850 | if ((timer_GetTimecxx . . $ `ddio/ddio.h:236:9`!() - last_asked_time) > ASK_PLAYERS_RETRY_INTERVALcxx . . $ `Descent3/multi_ui.cpp:1730:9`!) { |
| 1851 | last_asked_time = timer_GetTimecxx . . $ `ddio/ddio.h:236:9`!(); |
| 1852 | RequestPlayerListcxx . . $ RequestPlayerList(f2758234d0c8cb80).(&game->addrcxx . . $ network_game#addr.); |
| 1853 | retries++; |
| 1854 | } |
| 1855 | if (retries >= ASK_PLAYERS_RETRIEScxx . . $ `Descent3/multi_ui.cpp:1731:9`!) { |
| 1856 | DoMessageBoxcxx . . $ DoMessageBox(dcc99837539e9edc).(TXT_ERRORcxx . . $ `Descent3/stringtable.h:165:9`!, TXT_CANTGETPLAYERLISTcxx . . $ `Descent3/stringtable.h:862:9`!, MSGBOX_OKcxx . . $ `Descent3/newui_core.h:78:9`!); |
| 1857 | CloseSplashScreencxx . . $ CloseSplashScreen(49f6e7a06ebc5aa8).(); |
| 1858 | goto no_players; |
| 1859 | } |
| 1860 | |
| 1861 | } while (!Multi_got_player_listcxx . . $ Multi_got_player_list.); |
| 1862 | |
| 1863 | CloseSplashScreencxx . . $ CloseSplashScreen(49f6e7a06ebc5aa8).(); |
| 1864 | |
| 1865 | // Ok, now we've got the list of players.. let's parse it and add the players to the list |
| 1866 | plyr = Multi_recieved_player_listcxx . . $ Multi_recieved_player_list.; |
| 1867 | |
| 1868 | while (*plyr) { |
| 1869 | lists->AddItemcxx . . $ newuiListBox#AddItem(85c52e162fed56f9).(plyr); |
| 1870 | // Move on to the next item |
| 1871 | while (*plyr) { |
| 1872 | plyr++; |
| 1873 | } |
| 1874 | // Move past the NULL |
| 1875 | plyr++; |
| 1876 | } |
| 1877 | |
| 1878 | if (Multi_recieved_player_listcxx . . $ Multi_recieved_player_list.) { |
| 1879 | mem_freecxx . . $ `mem/mem.h:80:9`!(Multi_recieved_player_list); |
| 1880 | Multi_recieved_player_listcxx . . $ Multi_recieved_player_list. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 1881 | } |
| 1882 | |
| 1883 | menu_wnd.Opencxx . . $ UIWindow#Open(49f6e7a06ebc5aa8).(); |
| 1884 | |
| 1885 | while (!exit_menu) { |
| 1886 | int res; |
| 1887 | |
| 1888 | res = menu_wnd.DoUIcxx . . $ newuiTiledWindow#DoUI(b126dc7c1de90089).(); |
| 1889 | |
| 1890 | // handle all UI results. |
| 1891 | switch (res) { |
| 1892 | case UID_CANCELcxx . . $ `ui/ui.h:369:9`!: |
| 1893 | menu_wnd.Closecxx . . $ UIWindow#Close(49f6e7a06ebc5aa8).(); |
| 1894 | exit_menu = 1; |
| 1895 | break; |
| 1896 | } |
| 1897 | } |
| 1898 | menu_wnd.Destroycxx . . $ UIWindow#Destroy(49f6e7a06ebc5aa8).(); |
| 1899 | |
| 1900 | no_players: |
| 1901 | if (Multi_recieved_player_listcxx . . $ Multi_recieved_player_list.) { |
| 1902 | mem_freecxx . . $ `mem/mem.h:80:9`!(Multi_recieved_player_list); |
| 1903 | Multi_recieved_player_listcxx . . $ Multi_recieved_player_list. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 1904 | } |
| 1905 | } |