MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PltSelectShip

Function PltSelectShip

Descent3/pilot.cpp:2759–3332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2757}
2758
2759bool PltSelectShip(pilot *Pilot) {
2760#define IDP_SHPLIST 19
2761#define ID_GETANIM 20
2762#define ID_IMPORT 21
2763#define ID_PLAY1 22
2764#define ID_PLAY2 23
2765#define ID_PLAY3 24
2766#define ID_PLAY4 25
2767
2768#define ID_IMPORTSOUND 26
2769#define ID_TAUNTS 27
2770#define ID_DEL_LOGO 28
2771#define ID_DEL_TAUNTA 29
2772#define ID_DEL_TAUNTB 30
2773#define ID_DEL_TAUNTC 31
2774#define ID_DEL_TAUNTD 32
2775#define PSSELECT_WND_H 384
2776#define PSSELECT_WND_W 512
2777
2778 // variable declarations
2779 newuiTiledWindow window;
2780 newuiSheet *sheet;
2781 newuiListBox *custom_list;
2782 newuiComboBox *ship_list;
2783
2784 int count;
2785 char oldt1[PILOT_TAUNT_SIZE], oldt2[PILOT_TAUNT_SIZE];
2786 char oldt3[PILOT_TAUNT_SIZE], oldt4[PILOT_TAUNT_SIZE];
2787
2788 DoWaitMessage(true);
2789
2790 Pilot->get_multiplayer_data(NULL, oldt1, oldt2, NULL, oldt3, oldt4);
2791
2792 tCustomListInfo cust_snds;
2793 tAudioTauntComboBoxes taunts_lists;
2794 AudioTauntPilot = Pilot;
2795 AudioTauntPilotSndInfo = &cust_snds;
2796
2797 UI3DWindow ship_win;
2798 UIBmpWindow bmp_win;
2799 tCustomListInfo cust_bmps;
2800 tShipListInfo ship_info;
2801
2802 int old_bmhandle;
2803 int old_flags;
2804 bool exit_menu = false;
2805 bool ret;
2806
2807 // pre-initialize all variables
2808 cust_bmps.Init();
2809 cust_snds.Init();
2810
2811 lp_cust_bmps = &cust_bmps;
2812 lp_ship_info = &ship_info;
2813
2814 ship_pos.Init();
2815 ship_info.Init();
2816

Callers 1

PilotSelectFunction · 0.85

Calls 15

DoWaitMessageFunction · 0.85
UpdateAudioTauntBoxesFunction · 0.85
MercInstalledFunction · 0.85
DoMessageBoxFunction · 0.85
FindShipNameFunction · 0.85
UpdateGraphicsListboxFunction · 0.85
ShipSelectCallBackFunction · 0.85
GetStringInListFunction · 0.85
DoPathFileDialogFunction · 0.85
ImportGraphicFunction · 0.85
AllocLoadIFLVClipFunction · 0.85
CreateCRCFileNameFunction · 0.85

Tested by

no test coverage detected