33 #define MULTI_PINFO_NUM_BUTTONS 4
46 #define MPI_SCROLL_STATS_UP 0
47 #define MPI_SCROLL_STATS_DOWN 1
95 #define MULTI_PINFO_NUM_TEXT 1
108 #define MULTI_PINFO_NUM_STATS_LABELS 9
110 #define MPI_MISSIONS_FLOWN 1
111 #define MPI_FLIGHT_TIME 2
112 #define MPI_LAST_FLOWN 3
113 #define MPI_FIGHTER_KILLS 4
115 #define MPI_PSHOTS_FIRED 5
117 #define MPI_PSHOTS_PCT 6
118 #define MPI_SSHOTS_FIRED 7
120 #define MPI_SSHOTS_PCT 8
124 #define MAX_LABEL_TEXT 50
127 20,10,10,20,20,10,20,10,10,
261 if(np != Multi_pinfo_popup_player){
377 k = Multi_pinfo_window.
process();
414 Multi_pinfo_window.
draw();
435 if(Mp_pilot.
bitmap != -1){
438 if(Mp_squad.
bitmap != -1){
451 Multi_pinfo_popup_player = NULL;
466 char place_text[100];
470 if(Mp_pilot.
bitmap == -1){
512 char place_text[100];
517 if(Mp_squad.
bitmap == -1){
667 #ifndef HARDWARE_ONLY
691 tm *tmr = gmtime(&last_flown_tmp);
787 Multi_pinfo_popup_player = np;
791 if(Mp_pilot.
bitmap != -1){
796 if(Mp_squad.
bitmap != -1){
825 for(idx=start_index-1; idx>=0; idx--){
void multi_pinfo_notify_drop(net_player *np)
int Multi_pinfo_pilot_coords[GR_NUM_RESOLUTIONS][4]
net_player * Multi_pinfo_popup_player
void set_highlight_action(void(*_user_function)(void))
void add_XSTR(char *string, int _xstr_id, int _x, int _y, UI_GADGET *_assoc, int _color_type, int _font_id=-1)
#define MULTI_PINFO_NUM_BUTTONS
void game_do_state_common(int, int)
void game_set_frametime(int)
char image_filename[MAX_FILENAME_LEN+1]
net_player * multi_pinfo_get_prev_player(net_player *np)
void multi_pinfo_do_medals()
#define MPI_MISSIONS_FLOWN
#define gr_restore_screen
void multi_pinfo_blit_pilot_image()
#define MULTI_STANDALONE(np)
int gameseq_get_state(void)
void multi_pinfo_popup_do()
#define GR_NUM_RESOLUTIONS
__inline void gr_string(int x, int y, const char *string, int resize_mode=GR_RESIZE_FULL)
general failure sound for any event
int bm_get_info(int handle, int *w, int *h, ubyte *flags, int *nframes, int *fps)
Gets info on the bitmap indexed by handle.
void multi_pinfo_popup_init(net_player *pl)
char Multi_pinfo_stats_vals[MULTI_PINFO_NUM_STATS_LABELS][MAX_LABEL_TEXT]
int multi_xfer_lookup(char *filename)
int bm_load_duplicate(const char *filename)
Reloads a bitmap as a duplicate.
int Multi_pinfo_squad_coords[GR_NUM_RESOLUTIONS][4]
int multi_pinfo_popup_active()
void gr_set_color_fast(color *dst)
unsigned int s_shots_fired
void gr_set_bitmap(int bitmap_num, int alphablend_mode, int bitblt_mode, float alpha)
int bm_release(int handle, int clear_render_targets)
Frees both a bitmap's data and it's associated slot.
char callsign[CALLSIGN_LEN+1]
void multi_pinfo_blit_squadron_logo()
UI_XSTR Multi_pinfo_text[GR_NUM_RESOLUTIONS][MULTI_PINFO_NUM_TEXT]
popup dialog box appeared
int Multi_pinfo_stats_label_offsets[MULTI_PINFO_NUM_STATS_LABELS]
unsigned int missions_flown
void set_mask_bmap(char *fname)
int set_bmaps(char *ani_filename, int nframes=3, int start_frame=1)
void game_format_time(long, char *)
int Multi_pinfo_screen_save
#define NET_PLAYER_INDEX(np)
void medal_main_init(player *pl, int mode)
multi_server_options options
#define MPI_SCROLL_STATS_DOWN
unsigned int p_shots_fired
void multi_pinfo_popup(net_player *np)
void multi_pinfo_maybe_reload_pic(np_bitmap *b)
sprintf(buf,"(%f,%f,%f)", v3->xyz.x, v3->xyz.y, v3->xyz.z)
void gr_shade(int x, int y, int w, int h, int resize_mode)
#define MULTI_PINFO_NUM_STATS_LABELS
int Multi_pinfo_popup_done
void multi_pinfo_popup_kill()
void multi_pinfo_build_stats()
int Multi_pinfo_popup_error
int Multi_pinfo_hardware_texture_backup
const char * XSTR(const char *str, int index)
void multi_pinfo_popup_check_buttons()
user_click (mouse selects a control)
int Multi_pinfo_popup_running
popup dialog box goes away
struct np_bitmap np_bitmap
int bm_load(const char *real_filename)
Loads a bitmap so we can draw with it later.
GLboolean GLboolean GLboolean b
net_player * multi_pinfo_get_next_player(net_player *np)
void multi_pinfo_popup_button_pressed(int n)
void link_hotspot(int num)
void create(UI_WINDOW *wnd, char *_text, int _x, int _y, int _w, int _h, int do_repeat=0, int ignore_focus=0)
#define UI_XSTR_COLOR_PINK
void palette_use_bm_palette(int n)
#define MULTI_CONNECTED(np)
void create(int _x, int _y, int _w, int _h, int _flags, int _f_id=-1)
void multi_pinfo_set_palette()
void gr_get_string_size(int *w, int *h, const char *text, int len=9999)
int Multi_pinfo_stats_area_coords[GR_NUM_RESOLUTIONS][4]
UI_BUTTON Multi_pinfo_select_button
void multi_pinfo_reset_player(net_player *np)
void common_play_highlight_sound()
int Multi_pinfo_stats_x[GR_NUM_RESOLUTIONS]
#define MPI_FIGHTER_KILLS
#define MSO_FLAG_ACCEPT_PIX
#define MLO_FLAG_ACCEPT_PIX
void multi_pinfo_blit_player_stats()
rank_stuff Ranks[NUM_RANKS]
void multi_pinfo_popup_close()
void gr_bitmap(int _x, int _y, int resize_mode)
char * Multi_pinfo_stats_labels[MULTI_PINFO_NUM_STATS_LABELS]
#define MPI_SCROLL_STATS_UP
char m_squad_filename[MAX_FILENAME_LEN+1]
UI_WINDOW Multi_pinfo_window
void gamesnd_play_iface(int n)
struct ui_button_info ui_button_info
ui_button_info Multi_pinfo_buttons[GR_NUM_RESOLUTIONS][MULTI_PINFO_NUM_BUTTONS]
void gr_set_shader(shader *shade)
int process(int key_in=-1, int process_mouse=1)
net_player Net_players[MAX_PLAYERS]
char filename[MAX_FILENAME_LEN]
char * Multi_pinfo_bitmap_name[GR_NUM_RESOLUTIONS]
#define MULTI_PINFO_NUM_TEXT
multi_local_options options
char * Multi_pinfo_bitmap_mask[GR_NUM_RESOLUTIONS]