45 #define NUM_MULTI_DF_BUTTONS 1
46 #define ACCEPT_BUTTON 0
89 #define MULTI_DF_TOTAL_ADJUST 5
166 if((killer == NULL) || (dead_obj == NULL) || (killer->
m_player == NULL)){
227 b->
button.
create(&Multi_df_window, NULL, b->
x, b->
y, 60, 30, 1, 1);
251 new_k = Multi_df_window.
process(k, 0);
277 Multi_df_window.
draw();
387 int idx, s_idx, str_len;
394 float max_text_width = max_item_width * 0.8f;
409 strcpy_s(squashed_string, Multi_df_score[idx].callsign);
414 Assert(Multi_df_score[idx].np_index >= 0);
415 if(Multi_df_score[idx].np_index >= 0){
421 cx += (
int)max_item_width;
439 strcpy_s(squashed_string, Multi_df_score[idx].callsign);
442 Assert(Multi_df_score[idx].np_index >= 0);
443 if(Multi_df_score[idx].np_index >= 0){
457 Assert(Multi_df_score[idx].np_index >= 0);
458 if(Multi_df_score[idx].np_index >= 0){
469 cx += (
int)max_item_width;
474 sprintf(squashed_string,
"(%d)", row_total);
void set_highlight_action(void(*_user_function)(void))
int chatbox_create(int mode_flags)
void add_XSTR(char *string, int _xstr_id, int _x, int _y, UI_GADGET *_assoc, int _color_type, int _font_id=-1)
char * Multi_df_mask_fname[GR_NUM_RESOLUTIONS]
#define MULTI_STANDALONE(np)
char callsign[CALLSIGN_LEN+1]
int Multi_df_background_bitmap
#define GR_NUM_RESOLUTIONS
__inline void gr_string(int x, int y, const char *string, int resize_mode=GR_RESIZE_FULL)
#define GR_MAYBE_CLEAR_RES(bmap)
void common_music_close()
void gr_set_color_fast(color *dst)
void gr_set_bitmap(int bitmap_num, int alphablend_mode, int bitblt_mode, float alpha)
GLenum GLuint GLenum GLsizei const GLchar * buf
char callsign[CALLSIGN_LEN+1]
void multi_df_eval_kill(net_player *killer, object *dead_obj)
void multi_debrief_do_frame()
typedef int(SCP_EXT_CALLCONV *SCPDLL_PFVERSION)(SCPDLL_Version *)
void set_mask_bmap(char *fname)
int set_bmaps(char *ani_filename, int nframes=3, int start_frame=1)
#define NET_PLAYER_INDEX(np)
void multi_df_button_pressed(int button)
void scoring_backout_accept(scoring_struct *score)
void ml_printf(const char *format,...)
void scoring_level_close(int accepted)
sprintf(buf,"(%f,%f,%f)", v3->xyz.x, v3->xyz.y, v3->xyz.z)
#define MULTI_OBSERVER(np)
char * Multi_df_background_fname[GR_NUM_RESOLUTIONS]
#define NETPLAYER_STATE_DEBRIEF_REPLAY
color * Color_netplayer[NETPLAYER_COLORS]
int m_dogfight_kills[MAX_PLAYERS]
void multi_debrief_init()
object Objects[MAX_OBJECTS]
void multi_df_level_pre_enter()
void multi_df_debrief_do()
void multi_debrief_esc_hit()
int bm_load(const char *real_filename)
Loads a bitmap so we can draw with it later.
GLboolean GLboolean GLboolean b
#define MULTI_PERM_OBSERVER(np)
typedef float(SCP_EXT_CALLCONV *SCPTRACKIR_PFFLOATVOID)()
UI_WINDOW Multi_df_window
void update_stats_backout(scoring_struct *stats, bool training=false)
void link_hotspot(int num)
void multi_debrief_accept_hit()
void create(UI_WINDOW *wnd, char *_text, int _x, int _y, int _w, int _h, int do_repeat=0, int ignore_focus=0)
multi_df_score Multi_df_score[MAX_PLAYERS]
#define UI_XSTR_COLOR_PINK
int Multi_df_display_coords[GR_NUM_RESOLUTIONS][4]
#define MULTI_CONNECTED(np)
void create(int _x, int _y, int _w, int _h, int _flags, int _f_id=-1)
#define NETPLAYER_STATE_DEBRIEF_ACCEPT
int gr_force_fit_string(char *str, int max_str, int max_width)
void multi_df_process_buttons()
void gr_get_string_size(int *w, int *h, const char *text, int len=9999)
#define MULTIPLAYER_MASTER
void common_play_highlight_sound()
int chatbox_process(int key_in)
void multi_df_debrief_init()
struct multi_df_score multi_df_score
int multi_df_stuff_kills(char *kills, int player_x, int player_y)
void gr_bitmap(int _x, int _y, int resize_mode)
#define SCORE_DEBRIEF_SUCCESS
ui_button_info Multi_df_buttons[GR_NUM_RESOLUTIONS][NUM_MULTI_DF_BUTTONS]
#define MULTI_DF_TOTAL_ADJUST
int multi_debrief_stats_accept_code()
struct ui_button_info ui_button_info
void multi_df_debrief_close()
int multi_find_player_by_object(object *objp)
int process(int key_in=-1, int process_mouse=1)
int Multi_common_icons[MULTI_NUM_COMMON_ICONS]
#define NUM_MULTI_DF_BUTTONS
net_player Net_players[MAX_PLAYERS]
int Multi_df_check_coords[GR_NUM_RESOLUTIONS]
void multi_df_setup_kill_matrix()
void common_music_init(int score_index)
void multi_df_blit_kill_matrix()