| 2757 | } |
| 2758 | |
| 2759 | bool 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 |
no test coverage detected