FS2_Open
Open source remastering of the Freespace 2 engine
multi_pxo.cpp File Reference
#include "network/multi_pxo.h"
#include "anim/animplay.h"
#include "ui/ui.h"
#include "io/key.h"
#include "bmpman/bmpman.h"
#include "palman/palman.h"
#include "gamesnd/gamesnd.h"
#include "gamesequence/gamesequence.h"
#include "cfile/cfile.h"
#include "network/chat_api.h"
#include "popup/popup.h"
#include "freespace2/freespace.h"
#include "graphics/font.h"
#include "network/multi.h"
#include "network/multiui.h"
#include "network/multi_log.h"
#include "stats/medals.h"
#include "globalincs/alphacolors.h"
#include "graphics/2d.h"
#include "graphics/generic.h"
#include "io/timer.h"
#include "inetfile/inetgetfile.h"
#include "cfile/cfilesystem.h"
#include "osapi/osregistry.h"
#include "parse/parselo.h"
#include "stats/scoring.h"
#include "playerman/player.h"
#include "fs2netd/fs2netd_client.h"
#include "menuui/mainhallmenu.h"
#include "debugconsole/console.h"

Go to the source code of this file.

Classes

struct  pxo_channel
 
struct  player_list
 
struct  chat_line
 
struct  help_page
 
struct  pxo_banner
 

Macros

#define MAX_PXO_TEXT_LEN   255
 
#define MULTI_PXO_NUM_BUTTONS   15
 
#define MULTI_PXO_PLIST_UP   0
 
#define MULTI_PXO_PLIST_DOWN   1
 
#define MULTI_PXO_RANKINGS   2
 
#define MULTI_PXO_PINFO   3
 
#define MULTI_PXO_FIND   4
 
#define MULTI_PXO_MOTD   5
 
#define MULTI_PXO_JOIN   6
 
#define MULTI_PXO_JOIN_PRIV   7
 
#define MULTI_PXO_CHAN_UP   8
 
#define MULTI_PXO_CHAN_DOWN   9
 
#define MULTI_PXO_TEXT_UP   10
 
#define MULTI_PXO_TEXT_DOWN   11
 
#define MULTI_PXO_EXIT   12
 
#define MULTI_PXO_HELP   13
 
#define MULTI_PXO_GAMES   14
 
#define MULTI_PXO_NUM_TEXT   16
 
#define MULTI_PXO_ANIM_FNAME   "pxologo"
 
#define MULTI_PXO_ANIM_X   0
 
#define MULTI_PXO_ANIM_Y   4
 
#define MULTI_PXO_RANK_TIME   (5.0f)
 
#define MULTI_PXO_MODE_NORMAL   0
 
#define MULTI_PXO_MODE_PRIVATE   1
 
#define MULTI_PXO_MODE_FIND   2
 
#define MAX_CHANNEL_NAME_LEN   32
 
#define MAX_CHANNEL_DESCRIPT_LEN   120
 
#define SWITCHING_CHANNELS()   (Multi_pxo_channel_switch.num_users != -1)
 
#define ON_CHANNEL()   (Multi_pxo_channel_current.num_users != -1)
 
#define MULTI_PXO_AUTOJOIN_PREFIX   "#lobby"
 
#define MULTI_PXO_AUTOJOIN_CHANNEL   "#autoselect"
 
#define CHAN_PLAYERS_COLUMN   0
 
#define CHAN_GAMES_COLUMN   1
 
#define CHANNEL_REFRESH_TIME   (75.0f)
 
#define CHANNEL_SERVER_REFRESH_TIME   (35.0f)
 
#define MAX_PLAYER_NAME_LEN   32
 
#define MAX_CHAT_LINES   60
 
#define MAX_CHAT_LINE_LEN   256
 
#define MULTI_PXO_SERVER_PREFIX   "*** "
 
#define MULTI_PXO_HAS_LEFT   "has left"
 
#define CHAT_MODE_NORMAL   0
 
#define CHAT_MODE_SERVER   1
 
#define CHAT_MODE_CARRY   2
 
#define CHAT_MODE_PRIVATE   3
 
#define CHAT_MODE_CHANNEL_SWITCH   4
 
#define CHAT_MODE_MOTD   5
 
#define MULTI_PXO_SWITCH_DELAY_TIME   2000
 
#define MAX_PXO_MOTD_LEN   1024
 
#define PXO_MOTD_BLINK_TIME   500
 
#define MULTI_PXO_COM_NUM_BUTTONS   2
 
#define MULTI_PXO_COM_CANCEL   0
 
#define MULTI_PXO_COM_OK   1
 
#define MULTI_PXO_COM_NUM_TEXT   2
 
#define MULTI_PXO_PRIV_MAX_TEXT_LEN   30
 
#define MULTI_PXO_PINFO_NUM_BUTTONS   2
 
#define MULTI_PXO_PINFO_MEDALS   0
 
#define MULTI_PXO_PINFO_OK   1
 
#define MULTI_PXO_PINFO_NUM_TEXT   2
 
#define MULTI_PXO_PINFO_NUM_LABELS   18
 
#define MULTI_PXO_NOTIFY_TIME   4000
 
#define MULTI_PXO_NOTIFY_Y   435
 
#define MULTI_PXO_HELP_NUM_BUTTONS   3
 
#define MULTI_PXO_HELP_PREV   0
 
#define MULTI_PXO_HELP_NEXT   1
 
#define MULTI_PXO_HELP_CONTINUE   2
 
#define MULTI_PXO_HELP_NUM_TEXT   1
 
#define MULTI_PXO_HELP_FILE   "pxohelp.txt"
 
#define MULTI_PXO_MAX_LINES_PP   57
 
#define MULTI_PXO_MAX_PAGES   5
 
#define PXO_BANNERS_CONFIG_FILE   "pxobanners.cfg"
 
#define PXO_BAN_MODE_LIST_STARTUP   0
 
#define PXO_BAN_MODE_LIST   1
 
#define PXO_BAN_MODE_IMAGES_STARTUP   2
 
#define PXO_BAN_MODE_IMAGES   3
 
#define PXO_BAN_MODE_IMAGES_DONE   4
 
#define PXO_BAN_MODE_IDLE   5
 
#define PXO_BAN_MODE_CHOOSE_RANDOM   6
 
#define PMSG_FROM   "private message from "
 
#define PMSG_TO   "private message to "
 

Typedefs

typedef struct pxo_channel pxo_channel
 
typedef struct player_list player_list
 
typedef struct chat_line chat_line
 
typedef struct help_page help_page
 
typedef struct pxo_banner pxo_banner
 

Functions

void multi_pxo_check_buttons ()
 
void multi_pxo_button_pressed (int n)
 
int multi_pxo_connect_do ()
 
int multi_pxo_connect ()
 
void multi_pxo_api_process ()
 
void multi_pxo_process_nick_change (char *data)
 
void multi_pxo_do_normal ()
 
void multi_pxo_blit_all ()
 
void multi_pxo_process_common ()
 
void multi_pxo_get_data (char *name)
 
void multi_pxo_handle_kick ()
 
void multi_pxo_handle_disconnect ()
 
void multi_pxo_strip_space (char *string1, char *string2)
 
void multi_pxo_url (char *url)
 
void multi_pxo_load_palette ()
 
void multi_pxo_unload_palette ()
 
int multi_pxo_on_private_channel ()
 
void multi_pxo_underscore_nick (char *string1, char *string2)
 
int multi_pxo_is_nick_command (char *msg)
 
void multi_pxo_set_status_text (const char *txt)
 
void multi_pxo_blit_status_text ()
 
void multi_pxo_get_channels ()
 
void multi_pxo_clear_channels ()
 
void multi_pxo_make_channels (char *chan_str)
 
pxo_channelmulti_pxo_add_channel (char *name, pxo_channel **list)
 
pxo_channelmulti_pxo_find_channel (char *name, pxo_channel *list)
 
void multi_pxo_process_channels ()
 
void multi_pxo_blit_channels ()
 
void multi_pxo_scroll_channels_up ()
 
void multi_pxo_scroll_channels_down ()
 
void multi_pxo_join_channel (pxo_channel *chan)
 
void multi_pxo_handle_channel_change ()
 
void multi_pxo_autojoin ()
 
int multi_pxo_is_autojoin (char *name)
 
void multi_pxo_channel_refresh_servers ()
 
void multi_pxo_channel_refresh_current ()
 
void multi_pxo_clear_players ()
 
player_listmulti_pxo_add_player (char *name)
 
void multi_pxo_del_player (char *name)
 
player_listmulti_pxo_find_player (char *name)
 
void multi_pxo_process_players ()
 
void multi_pxo_blit_players ()
 
void multi_pxo_scroll_players_up ()
 
void multi_pxo_scroll_players_down ()
 
int multi_pxo_get_select_index ()
 
 for (int idx=0;idx< i;idx++)
 
void multi_pxo_chat_init ()
 
void multi_pxo_chat_free ()
 
void multi_pxo_chat_clear ()
 
void multi_pxo_chat_blit ()
 
void multi_pxo_chat_add_line (const char *txt, int mode)
 
void multi_pxo_chat_process_incoming (const char *txt, int mode=CHAT_MODE_NORMAL)
 
void multi_pxo_goto_bottom ()
 
int multi_pxo_can_scroll_down ()
 
void multi_pxo_scroll_chat_up ()
 
void multi_pxo_scroll_chat_down ()
 
void multi_pxo_chat_process ()
 
const char * multi_pxo_chat_is_private (const char *txt)
 
int multi_pxo_is_server_text (const char *txt)
 
int multi_pxo_is_motd_text (const char *txt)
 
int multi_pxo_is_end_of_motd_text (const char *txt)
 
int multi_pxo_chat_is_left_message (const char *txt)
 
void multi_pxo_chat_adjust_start ()
 
void multi_pxo_motd_init ()
 
void multi_pxo_motd_add_text (const char *text)
 
void multi_pxo_set_end_of_motd ()
 
void multi_pxo_motd_dialog ()
 
void multi_pxo_motd_maybe_blit ()
 
void multi_pxo_com_init ()
 
void multi_pxo_com_close ()
 
void multi_pxo_com_blit_text ()
 
void multi_pxo_com_set_top_text (const char *txt)
 
void multi_pxo_com_set_middle_text (const char *txt)
 
void multi_pxo_com_set_bottom_text (const char *txt)
 
void multi_pxo_priv_init ()
 
void multi_pxo_priv_close ()
 
int multi_pxo_priv_popup ()
 
void multi_pxo_priv_process_buttons ()
 
void multi_pxo_priv_button_pressed (int n)
 
void multi_pxo_priv_process_input ()
 
void multi_pxo_find_init ()
 
void multi_pxo_find_close ()
 
int multi_pxo_find_popup ()
 
void multi_pxo_find_process_buttons ()
 
void multi_pxo_find_button_pressed (int n)
 
void multi_pxo_find_process_input ()
 
void multi_pxo_find_search_process ()
 
int multi_pxo_pinfo_cond ()
 
int multi_pxo_pinfo_get (char *name)
 
void multi_pxo_pinfo_show ()
 
void multi_pxo_pinfo_build_vals ()
 
void multi_pxo_pinfo_init ()
 
int multi_pxo_pinfo_do ()
 
void multi_pxo_pinfo_close ()
 
void multi_pxo_pinfo_blit ()
 
void multi_pxo_run_medals ()
 
void multi_pxo_notify_add (const char *txt)
 
void multi_pxo_notify_blit ()
 
void multi_pxo_help_load ()
 
void multi_pxo_help_blit_page ()
 
void multi_pxo_help_process_buttons ()
 
void multi_pxo_help_button_pressed (int n)
 
void multi_pxo_ban_init ()
 
void multi_pxo_ban_process ()
 
void multi_pxo_ban_close ()
 
void multi_pxo_ban_parse_banner_file (int choose_existing)
 
void multi_pxo_ban_draw ()
 
void multi_pxo_ban_clicked ()
 
void multi_pxo_init (int use_last_channel)
 
void multi_pxo_do ()
 
void multi_pxo_close ()
 
int multi_pxo_autojoin_do ()
 
void multi_pxo_channel_count_update (char *name, int count)
 
void multi_pxo_com_init (int input_len)
 
void multi_pxo_help_init ()
 
void multi_pxo_help_do ()
 
void multi_pxo_help_close ()
 

Variables

ui_button_info Multi_pxo_buttons [GR_NUM_RESOLUTIONS][MULTI_PXO_NUM_BUTTONS]
 
UI_XSTR Multi_pxo_text [GR_NUM_RESOLUTIONS][MULTI_PXO_NUM_TEXT]
 
char Multi_pxo_bitmap_fname [GR_NUM_RESOLUTIONS][MAX_FILENAME_LEN]
 
char Multi_pxo_mask_fname [GR_NUM_RESOLUTIONS][MAX_FILENAME_LEN]
 
UI_WINDOW Multi_pxo_window
 
int Multi_pxo_bitmap = -1
 
int Multi_pxo_palette = -1
 
generic_anim Multi_pxo_anim
 
float Multi_pxo_ranking_last = -1.0f
 
int Multi_pxo_must_connect = 0
 
int Multi_pxo_connected = 0
 
int Multi_pxo_must_validate = 0
 
int Multi_pxo_must_autojoin = 1
 
int Multi_pxo_mode = MULTI_PXO_MODE_NORMAL
 
char Multi_pxo_nick [NAME_LENGTH+1]
 
int Multi_pxo_status_coords [GR_NUM_RESOLUTIONS][4]
 
char Multi_pxo_status_text [MAX_PXO_TEXT_LEN]
 
char Multi_pxo_channel_last [MAX_CHANNEL_NAME_LEN+1] = ""
 
int Multi_pxo_use_last_channel = 0
 
int Multi_pxo_chan_coords [GR_NUM_RESOLUTIONS][4]
 
float Multi_pxo_channel_last_refresh = -1.0f
 
float Multi_pxo_channel_server_refresh = -1.0f
 
int Multi_pxo_max_chan_display [GR_NUM_RESOLUTIONS]
 
UI_BUTTON Multi_pxo_channel_button
 
pxo_channelMulti_pxo_channels = NULL
 
int Multi_pxo_channel_count = 0
 
pxo_channelMulti_pxo_channel_start = NULL
 
int Multi_pxo_channel_start_index = -1
 
pxo_channelMulti_pxo_channel_select = NULL
 
pxo_channel Multi_pxo_channel_current
 
pxo_channel Multi_pxo_channel_switch
 
int Multi_pxo_player_coords [GR_NUM_RESOLUTIONS][4]
 
int Multi_pxo_max_player_display [GR_NUM_RESOLUTIONS]
 
UI_BUTTON Multi_pxo_player_button
 
int Multi_pxo_player_slider_coords [GR_NUM_RESOLUTIONS][4]
 
char * Multi_pxo_player_slider_name [GR_NUM_RESOLUTIONS]
 
player_listMulti_pxo_players = NULL
 
int Multi_pxo_player_count = 0
 
player_listMulti_pxo_player_start = NULL
 
player_listMulti_pxo_player_select = NULL
 
int i
 
int Multi_pxo_chat_title_y [GR_NUM_RESOLUTIONS]
 
int Multi_pxo_chat_coords [GR_NUM_RESOLUTIONS][4]
 
int Multi_pxo_input_coords [GR_NUM_RESOLUTIONS][4]
 
int Multi_pxo_max_chat_display [GR_NUM_RESOLUTIONS]
 
chat_lineMulti_pxo_chat = NULL
 
chat_lineMulti_pxo_chat_add = NULL
 
chat_lineMulti_pxo_chat_start = NULL
 
int Multi_pxo_chat_start_index = -1
 
UI_INPUTBOX Multi_pxo_chat_input
 
UI_SLIDER2 Multi_pxo_chat_slider
 
int Multi_pxo_chat_slider_coords [GR_NUM_RESOLUTIONS][4]
 
char * Multi_pxo_chat_slider_name [GR_NUM_RESOLUTIONS]
 
int Multi_pxo_chat_count = 0
 
int Multi_pxo_switch_delay = -1
 
char Pxo_motd [1024] = ""
 
int Pxo_motd_end = 0
 
int Pxo_motd_read = 0
 
int Pxo_motd_blink_stamp = -1
 
int Pxo_motd_blink_on = 0
 
int Pxo_motd_blinked_already = 0
 
char * Multi_pxo_com_fname [GR_NUM_RESOLUTIONS]
 
char * Multi_pxo_com_mask_fname [GR_NUM_RESOLUTIONS]
 
int Multi_pxo_com_coords [GR_NUM_RESOLUTIONS][2]
 
int Multi_pxo_com_input_coords [GR_NUM_RESOLUTIONS][4]
 
ui_button_info Multi_pxo_com_buttons [GR_NUM_RESOLUTIONS][MULTI_PXO_COM_NUM_BUTTONS]
 
UI_XSTR Multi_pxo_com_text [GR_NUM_RESOLUTIONS][MULTI_PXO_COM_NUM_TEXT]
 
int Multi_pxo_com_bitmap = -1
 
UI_WINDOW Multi_pxo_com_window
 
UI_INPUTBOX Multi_pxo_com_input
 
char Multi_pxo_com_top_text [MAX_PXO_TEXT_LEN]
 
char Multi_pxo_com_middle_text [MAX_PXO_TEXT_LEN]
 
char Multi_pxo_com_bottom_text [MAX_PXO_TEXT_LEN]
 
int Multi_pxo_com_top_text_coords [GR_NUM_RESOLUTIONS][2]
 
int Multi_pxo_com_middle_text_y [GR_NUM_RESOLUTIONS]
 
int Multi_pxo_com_bottom_text_y [GR_NUM_RESOLUTIONS]
 
char Multi_pxo_priv_chan [MULTI_PXO_PRIV_MAX_TEXT_LEN+100]
 
int Multi_pxo_priv_return_code = -1
 
char Multi_pxo_find_channel [MAX_CHANNEL_NAME_LEN+1]
 
int Multi_pxo_find_return_code = -1
 
char * Multi_pxo_pinfo_fname [GR_NUM_RESOLUTIONS]
 
char * Multi_pxo_pinfo_mask_fname [GR_NUM_RESOLUTIONS]
 
ui_button_info Multi_pxo_pinfo_buttons [GR_NUM_RESOLUTIONS][MULTI_PXO_PINFO_NUM_BUTTONS]
 
UI_XSTR Multi_pxo_pinfo_text [GR_NUM_RESOLUTIONS][MULTI_PXO_PINFO_NUM_TEXT]
 
int Multi_pxo_pinfo_bitmap = -1
 
UI_WINDOW Multi_pxo_pinfo_window
 
player Multi_pxo_pinfo_player
 
int Multi_pxo_retrieve_mode = -1
 
char Multi_pxo_retrieve_name [MAX_PLAYER_NAME_LEN+1]
 
char Multi_pxo_retrieve_id [128]
 
int Multi_pxo_pinfo_coords [GR_NUM_RESOLUTIONS][4]
 
int Multi_pxo_pinfo_val_x [GR_NUM_RESOLUTIONS]
 
char * Multi_pxo_pinfo_stats_labels [MULTI_PXO_PINFO_NUM_LABELS]
 
char Multi_pxo_pinfo_vals [MULTI_PXO_PINFO_NUM_LABELS][50]
 
int Multi_pxo_pinfo_stats_spacing [MULTI_PXO_PINFO_NUM_LABELS]
 
char Multi_pxo_notify_text [MAX_PXO_TEXT_LEN]
 
int Multi_pxo_notify_stamp = -1
 
char * Multi_pxo_help_fname [GR_NUM_RESOLUTIONS]
 
char * Multi_pxo_help_mask_fname [GR_NUM_RESOLUTIONS]
 
ui_button_info Multi_pxo_help_buttons [GR_NUM_RESOLUTIONS][MULTI_PXO_HELP_NUM_BUTTONS]
 
UI_XSTR Multi_pxo_help_text [GR_NUM_RESOLUTIONS][MULTI_PXO_HELP_NUM_TEXT]
 
int Multi_pxo_help_coords [GR_NUM_RESOLUTIONS][2]
 
int Multi_pxo_chars_per_line [GR_NUM_RESOLUTIONS]
 
int Multi_pxo_lines_pp [GR_NUM_RESOLUTIONS]
 
help_page Multi_pxo_help_pages [MULTI_PXO_MAX_PAGES]
 
int Multi_pxo_help_num_pages = 0
 
int Multi_pxo_help_bitmap = -1
 
UI_WINDOW Multi_pxo_help_window
 
int Multi_pxo_help_cur = 0
 
InetGetFileMulti_pxo_ban_get = NULL
 
int Pxo_ban_coords [GR_NUM_RESOLUTIONS][4]
 
UI_BUTTON Multi_pxo_ban_button
 
pxo_banner Multi_pxo_banner
 
int Multi_pxo_ban_mode = PXO_BAN_MODE_LIST_STARTUP
 
int mpxo_failed = 0
 
int Multi_pxo_searching = 0
 
char name_lookup [MAX_PXO_TEXT_LEN]
 

Macro Definition Documentation

#define CHAN_GAMES_COLUMN   1

Definition at line 307 of file multi_pxo.cpp.

#define CHAN_PLAYERS_COLUMN   0

Definition at line 306 of file multi_pxo.cpp.

#define CHANNEL_REFRESH_TIME   (75.0f)

Definition at line 313 of file multi_pxo.cpp.

#define CHANNEL_SERVER_REFRESH_TIME   (35.0f)

Definition at line 316 of file multi_pxo.cpp.

#define CHAT_MODE_CARRY   2

Definition at line 519 of file multi_pxo.cpp.

#define CHAT_MODE_CHANNEL_SWITCH   4

Definition at line 521 of file multi_pxo.cpp.

#define CHAT_MODE_MOTD   5

Definition at line 522 of file multi_pxo.cpp.

#define CHAT_MODE_NORMAL   0

Definition at line 517 of file multi_pxo.cpp.

#define CHAT_MODE_PRIVATE   3

Definition at line 520 of file multi_pxo.cpp.

#define CHAT_MODE_SERVER   1

Definition at line 518 of file multi_pxo.cpp.

#define MAX_CHANNEL_DESCRIPT_LEN   120

Definition at line 272 of file multi_pxo.cpp.

#define MAX_CHANNEL_NAME_LEN   32

Definition at line 271 of file multi_pxo.cpp.

#define MAX_CHAT_LINE_LEN   256

Definition at line 480 of file multi_pxo.cpp.

#define MAX_CHAT_LINES   60

Definition at line 479 of file multi_pxo.cpp.

#define MAX_PLAYER_NAME_LEN   32

Definition at line 390 of file multi_pxo.cpp.

#define MAX_PXO_MOTD_LEN   1024

Definition at line 622 of file multi_pxo.cpp.

#define MAX_PXO_TEXT_LEN   255

Definition at line 53 of file multi_pxo.cpp.

#define MULTI_PXO_ANIM_FNAME   "pxologo"

Definition at line 166 of file multi_pxo.cpp.

#define MULTI_PXO_ANIM_X   0

Definition at line 167 of file multi_pxo.cpp.

#define MULTI_PXO_ANIM_Y   4

Definition at line 168 of file multi_pxo.cpp.

#define MULTI_PXO_AUTOJOIN_CHANNEL   "#autoselect"

Definition at line 294 of file multi_pxo.cpp.

#define MULTI_PXO_AUTOJOIN_PREFIX   "#lobby"

Definition at line 291 of file multi_pxo.cpp.

#define MULTI_PXO_CHAN_DOWN   9

Definition at line 66 of file multi_pxo.cpp.

#define MULTI_PXO_CHAN_UP   8

Definition at line 65 of file multi_pxo.cpp.

#define MULTI_PXO_COM_CANCEL   0

Definition at line 678 of file multi_pxo.cpp.

#define MULTI_PXO_COM_NUM_BUTTONS   2

Definition at line 677 of file multi_pxo.cpp.

#define MULTI_PXO_COM_NUM_TEXT   2

Definition at line 692 of file multi_pxo.cpp.

#define MULTI_PXO_COM_OK   1

Definition at line 679 of file multi_pxo.cpp.

#define MULTI_PXO_EXIT   12

Definition at line 69 of file multi_pxo.cpp.

#define MULTI_PXO_FIND   4

Definition at line 61 of file multi_pxo.cpp.

#define MULTI_PXO_GAMES   14

Definition at line 71 of file multi_pxo.cpp.

#define MULTI_PXO_HAS_LEFT   "has left"

Definition at line 514 of file multi_pxo.cpp.

#define MULTI_PXO_HELP   13

Definition at line 70 of file multi_pxo.cpp.

#define MULTI_PXO_HELP_CONTINUE   2

Definition at line 939 of file multi_pxo.cpp.

#define MULTI_PXO_HELP_FILE   "pxohelp.txt"

Definition at line 965 of file multi_pxo.cpp.

#define MULTI_PXO_HELP_NEXT   1

Definition at line 938 of file multi_pxo.cpp.

#define MULTI_PXO_HELP_NUM_BUTTONS   3

Definition at line 936 of file multi_pxo.cpp.

#define MULTI_PXO_HELP_NUM_TEXT   1

Definition at line 954 of file multi_pxo.cpp.

#define MULTI_PXO_HELP_PREV   0

Definition at line 937 of file multi_pxo.cpp.

#define MULTI_PXO_JOIN   6

Definition at line 63 of file multi_pxo.cpp.

#define MULTI_PXO_JOIN_PRIV   7

Definition at line 64 of file multi_pxo.cpp.

#define MULTI_PXO_MAX_LINES_PP   57

Definition at line 966 of file multi_pxo.cpp.

#define MULTI_PXO_MAX_PAGES   5

Definition at line 967 of file multi_pxo.cpp.

#define MULTI_PXO_MODE_FIND   2

Definition at line 184 of file multi_pxo.cpp.

#define MULTI_PXO_MODE_NORMAL   0

Definition at line 182 of file multi_pxo.cpp.

#define MULTI_PXO_MODE_PRIVATE   1

Definition at line 183 of file multi_pxo.cpp.

#define MULTI_PXO_MOTD   5

Definition at line 62 of file multi_pxo.cpp.

#define MULTI_PXO_NOTIFY_TIME   4000

Definition at line 912 of file multi_pxo.cpp.

#define MULTI_PXO_NOTIFY_Y   435

Definition at line 913 of file multi_pxo.cpp.

#define MULTI_PXO_NUM_BUTTONS   15

Definition at line 56 of file multi_pxo.cpp.

#define MULTI_PXO_NUM_TEXT   16

Definition at line 111 of file multi_pxo.cpp.

#define MULTI_PXO_PINFO   3

Definition at line 60 of file multi_pxo.cpp.

#define MULTI_PXO_PINFO_MEDALS   0

Definition at line 822 of file multi_pxo.cpp.

#define MULTI_PXO_PINFO_NUM_BUTTONS   2

Definition at line 821 of file multi_pxo.cpp.

#define MULTI_PXO_PINFO_NUM_LABELS   18

Definition at line 861 of file multi_pxo.cpp.

#define MULTI_PXO_PINFO_NUM_TEXT   2

Definition at line 837 of file multi_pxo.cpp.

#define MULTI_PXO_PINFO_OK   1

Definition at line 823 of file multi_pxo.cpp.

#define MULTI_PXO_PLIST_DOWN   1

Definition at line 58 of file multi_pxo.cpp.

#define MULTI_PXO_PLIST_UP   0

Definition at line 57 of file multi_pxo.cpp.

#define MULTI_PXO_PRIV_MAX_TEXT_LEN   30

Definition at line 754 of file multi_pxo.cpp.

#define MULTI_PXO_RANK_TIME   (5.0f)

Definition at line 172 of file multi_pxo.cpp.

#define MULTI_PXO_RANKINGS   2

Definition at line 59 of file multi_pxo.cpp.

#define MULTI_PXO_SERVER_PREFIX   "*** "

Definition at line 511 of file multi_pxo.cpp.

#define MULTI_PXO_SWITCH_DELAY_TIME   2000

Definition at line 564 of file multi_pxo.cpp.

#define MULTI_PXO_TEXT_DOWN   11

Definition at line 68 of file multi_pxo.cpp.

#define MULTI_PXO_TEXT_UP   10

Definition at line 67 of file multi_pxo.cpp.

#define ON_CHANNEL ( )    (Multi_pxo_channel_current.num_users != -1)

Definition at line 276 of file multi_pxo.cpp.

#define PMSG_FROM   "private message from "

Definition at line 3513 of file multi_pxo.cpp.

#define PMSG_TO   "private message to "

Definition at line 3514 of file multi_pxo.cpp.

#define PXO_BAN_MODE_CHOOSE_RANDOM   6

Definition at line 1040 of file multi_pxo.cpp.

#define PXO_BAN_MODE_IDLE   5

Definition at line 1039 of file multi_pxo.cpp.

#define PXO_BAN_MODE_IMAGES   3

Definition at line 1037 of file multi_pxo.cpp.

#define PXO_BAN_MODE_IMAGES_DONE   4

Definition at line 1038 of file multi_pxo.cpp.

#define PXO_BAN_MODE_IMAGES_STARTUP   2

Definition at line 1036 of file multi_pxo.cpp.

#define PXO_BAN_MODE_LIST   1

Definition at line 1035 of file multi_pxo.cpp.

#define PXO_BAN_MODE_LIST_STARTUP   0

Definition at line 1034 of file multi_pxo.cpp.

#define PXO_BANNERS_CONFIG_FILE   "pxobanners.cfg"

Definition at line 1021 of file multi_pxo.cpp.

#define PXO_MOTD_BLINK_TIME   500

Definition at line 623 of file multi_pxo.cpp.

#define SWITCHING_CHANNELS ( )    (Multi_pxo_channel_switch.num_users != -1)

Definition at line 275 of file multi_pxo.cpp.

Typedef Documentation

typedef struct chat_line chat_line
typedef struct help_page help_page
typedef struct player_list player_list
typedef struct pxo_banner pxo_banner
typedef struct pxo_channel pxo_channel

Function Documentation

for ( )

Definition at line 472 of file multi_pxo.cpp.

pxo_channel * multi_pxo_add_channel ( char *  name,
pxo_channel **  list 
)

Create a new channel with the given name and place it on the channel list, return a pointer or NULL on fail

Definition at line 2343 of file multi_pxo.cpp.

player_list * multi_pxo_add_player ( char *  name)

Create a new player with the given name and place it on the player list, return a pointer or NULL on fail

Definition at line 2764 of file multi_pxo.cpp.

void multi_pxo_api_process ( )

Run the networking functions for the PXO API

Definition at line 1993 of file multi_pxo.cpp.

void multi_pxo_autojoin ( )

Autojoin an appropriate channel

Definition at line 2142 of file multi_pxo.cpp.

int multi_pxo_autojoin_do ( )

Popup loop which does an autojoin of a public channel.

Returns when the autojoin process is complete

Definition at line 1882 of file multi_pxo.cpp.

void multi_pxo_ban_clicked ( )

Called when the URL button is clicked

Definition at line 5395 of file multi_pxo.cpp.

void multi_pxo_ban_close ( )

Close

Definition at line 5215 of file multi_pxo.cpp.

void multi_pxo_ban_draw ( )

Any bitmap or info or whatever

Definition at line 5376 of file multi_pxo.cpp.

void multi_pxo_ban_init ( )

Initialisation

Definition at line 5049 of file multi_pxo.cpp.

void multi_pxo_ban_parse_banner_file ( int  choose_existing)

Parse the banners file and maybe fill in Multi_pxo_dl_file

Definition at line 5234 of file multi_pxo.cpp.

void multi_pxo_ban_process ( )

Process http download details

Definition at line 5081 of file multi_pxo.cpp.

void multi_pxo_blit_all ( )

Definition at line 1441 of file multi_pxo.cpp.

void multi_pxo_blit_channels ( )

Display the channel list

Definition at line 2507 of file multi_pxo.cpp.

void multi_pxo_blit_players ( )

Display the player list

Definition at line 2939 of file multi_pxo.cpp.

void multi_pxo_blit_status_text ( )

Blit the status text

Definition at line 2205 of file multi_pxo.cpp.

void multi_pxo_button_pressed ( int  n)

Handle a button press

Definition at line 1700 of file multi_pxo.cpp.

int multi_pxo_can_scroll_down ( )

Returns 1 if we can scroll down, 0 otherwise

Definition at line 3400 of file multi_pxo.cpp.

void multi_pxo_channel_count_update ( char *  name,
int  count 
)

Called from the game tracker API - server count update for a channel

Definition at line 2170 of file multi_pxo.cpp.

void multi_pxo_channel_refresh_current ( )

Refresh current channel server count

Definition at line 2495 of file multi_pxo.cpp.

void multi_pxo_channel_refresh_servers ( )

Send a request to refresh our channel server counts

Definition at line 2467 of file multi_pxo.cpp.

void multi_pxo_chat_add_line ( const char *  txt,
int  mode 
)

Add a line of text

Definition at line 3120 of file multi_pxo.cpp.

void multi_pxo_chat_adjust_start ( )

Recalculate the chat start index, and adjust the slider properly

Definition at line 3606 of file multi_pxo.cpp.

void multi_pxo_chat_blit ( )

Blit the chat text

Definition at line 3249 of file multi_pxo.cpp.

void multi_pxo_chat_clear ( )

Clear all lines of chat text in the chat area

Definition at line 3099 of file multi_pxo.cpp.

void multi_pxo_chat_free ( )

Free up all chat list stuff

Definition at line 3074 of file multi_pxo.cpp.

void multi_pxo_chat_init ( )

Initialize and create the chat text linked list

Definition at line 3031 of file multi_pxo.cpp.

int multi_pxo_chat_is_left_message ( const char *  txt)

If the text is a "has left message" from the server

Definition at line 3587 of file multi_pxo.cpp.

const char * multi_pxo_chat_is_private ( const char *  txt)

Definition at line 3515 of file multi_pxo.cpp.

void multi_pxo_chat_process ( )

Process chat controls

Definition at line 3442 of file multi_pxo.cpp.

void multi_pxo_chat_process_incoming ( const char *  txt,
int  mode 
)

Process an incoming line of text

Definition at line 3168 of file multi_pxo.cpp.

void multi_pxo_check_buttons ( )

Check for button presses

Definition at line 1684 of file multi_pxo.cpp.

void multi_pxo_clear_channels ( )

Clear the old channel list

Definition at line 2231 of file multi_pxo.cpp.

void multi_pxo_clear_players ( )

Clear the old player list

Definition at line 2735 of file multi_pxo.cpp.

void multi_pxo_close ( )

Definition at line 1325 of file multi_pxo.cpp.

void multi_pxo_com_blit_text ( )

Blit all text lines, top, middle, bottoms

Definition at line 3825 of file multi_pxo.cpp.

void multi_pxo_com_close ( )

Close down the common dialog

Definition at line 3816 of file multi_pxo.cpp.

void multi_pxo_com_init ( )
void multi_pxo_com_init ( int  input_len)

Initialize the common dialog with the passed max input length

Definition at line 3775 of file multi_pxo.cpp.

void multi_pxo_com_set_bottom_text ( const char *  txt)

Set the bottom text, shortening as necessary

Definition at line 3867 of file multi_pxo.cpp.

void multi_pxo_com_set_middle_text ( const char *  txt)

Set the middle text, shortening as necessary

Definition at line 3856 of file multi_pxo.cpp.

void multi_pxo_com_set_top_text ( const char *  txt)

Set the top text, shortening as necessary

Definition at line 3845 of file multi_pxo.cpp.

int multi_pxo_connect ( )

Attempt to connect to Parallax Online, return success or fail

Definition at line 1929 of file multi_pxo.cpp.

int multi_pxo_connect_do ( )

Definition at line 1829 of file multi_pxo.cpp.

void multi_pxo_del_player ( char *  name)

Remove a player with the given name

Definition at line 2797 of file multi_pxo.cpp.

void multi_pxo_do ( )

Definition at line 1242 of file multi_pxo.cpp.

void multi_pxo_do_normal ( )

Definition at line 1369 of file multi_pxo.cpp.

void multi_pxo_find_button_pressed ( int  n)

Handle a button press

Definition at line 4192 of file multi_pxo.cpp.

pxo_channel * multi_pxo_find_channel ( char *  name,
pxo_channel list 
)

Lookup a channel with the specified name

Definition at line 2375 of file multi_pxo.cpp.

void multi_pxo_find_close ( )

Close down the popup

Definition at line 4082 of file multi_pxo.cpp.

void multi_pxo_find_init ( )

Initialize the popup

Definition at line 4053 of file multi_pxo.cpp.

player_list * multi_pxo_find_player ( char *  name)

Try and find a player with the given name, return a pointer to his entry (or NULL)

Definition at line 2866 of file multi_pxo.cpp.

int multi_pxo_find_popup ( )

Run the popup, 0 if still running, -1 if cancel, 1 if ok

Definition at line 4094 of file multi_pxo.cpp.

void multi_pxo_find_process_buttons ( )

Process button presses

Definition at line 4176 of file multi_pxo.cpp.

void multi_pxo_find_process_input ( )

Process the inputbox

Definition at line 4208 of file multi_pxo.cpp.

void multi_pxo_find_search_process ( )

Process search mode if applicable

Definition at line 4247 of file multi_pxo.cpp.

void multi_pxo_get_channels ( )

Get a list of channels on the server

Definition at line 2223 of file multi_pxo.cpp.

void multi_pxo_get_data ( char *  name)

Definition at line 1510 of file multi_pxo.cpp.

int multi_pxo_get_select_index ( )
void multi_pxo_goto_bottom ( )

Scroll to the very bottom of the chat area

Definition at line 3344 of file multi_pxo.cpp.

void multi_pxo_handle_channel_change ( )

Handle any processing details if we're currently trying to join a channel

Definition at line 2672 of file multi_pxo.cpp.

void multi_pxo_handle_disconnect ( )

Definition at line 1532 of file multi_pxo.cpp.

void multi_pxo_handle_kick ( )

Definition at line 1515 of file multi_pxo.cpp.

void multi_pxo_help_blit_page ( )

Blit the current page

Definition at line 4967 of file multi_pxo.cpp.

void multi_pxo_help_button_pressed ( int  n)

Button pressed

Definition at line 5014 of file multi_pxo.cpp.

void multi_pxo_help_close ( )

Close the pxo screen

Definition at line 4893 of file multi_pxo.cpp.

void multi_pxo_help_do ( )

Do frame for PXO help

Definition at line 4851 of file multi_pxo.cpp.

void multi_pxo_help_init ( )

Initialize the PXO help screen

Definition at line 4807 of file multi_pxo.cpp.

void multi_pxo_help_load ( )

Load the help file up

Definition at line 4918 of file multi_pxo.cpp.

void multi_pxo_help_process_buttons ( )

Process button presses

Definition at line 4998 of file multi_pxo.cpp.

void multi_pxo_init ( int  use_last_channel)

Definition at line 1083 of file multi_pxo.cpp.

int multi_pxo_is_autojoin ( char *  name)

Does the string match the "autojoin" prefix

Definition at line 2157 of file multi_pxo.cpp.

int multi_pxo_is_end_of_motd_text ( const char *  txt)

If the text is the end of motd text

Definition at line 3574 of file multi_pxo.cpp.

int multi_pxo_is_motd_text ( const char *  txt)

If the text is message of the day text

Definition at line 3559 of file multi_pxo.cpp.

int multi_pxo_is_nick_command ( char *  msg)

If the command is a potential "nick" command

Definition at line 1664 of file multi_pxo.cpp.

int multi_pxo_is_server_text ( const char *  txt)

If the text came from the server

Definition at line 3544 of file multi_pxo.cpp.

void multi_pxo_join_channel ( pxo_channel chan)

Attempt to join a channel

Definition at line 2612 of file multi_pxo.cpp.

void multi_pxo_load_palette ( )

Definition at line 1590 of file multi_pxo.cpp.

void multi_pxo_make_channels ( char *  chan_str)

Parse the input string and make a list of new channels

Definition at line 2268 of file multi_pxo.cpp.

void multi_pxo_motd_add_text ( const char *  text)

Set the motd text

Definition at line 3648 of file multi_pxo.cpp.

void multi_pxo_motd_dialog ( )

Display the motd dialog

Definition at line 3738 of file multi_pxo.cpp.

void multi_pxo_motd_init ( )

Initialize motd when going into this screen

Definition at line 3633 of file multi_pxo.cpp.

void multi_pxo_motd_maybe_blit ( )

Call to maybe blink the motd button

Definition at line 3750 of file multi_pxo.cpp.

void multi_pxo_notify_add ( const char *  txt)

Add a notification string

Definition at line 4771 of file multi_pxo.cpp.

void multi_pxo_notify_blit ( )

Blit and process the notification string

Definition at line 4783 of file multi_pxo.cpp.

int multi_pxo_on_private_channel ( )

If we're currently on a private channel

Definition at line 1613 of file multi_pxo.cpp.

void multi_pxo_pinfo_blit ( )

Blit all the stats on this screen

Definition at line 4711 of file multi_pxo.cpp.

void multi_pxo_pinfo_build_vals ( )

Build the stats labels values

Definition at line 4475 of file multi_pxo.cpp.

void multi_pxo_pinfo_close ( )

Close

Definition at line 4690 of file multi_pxo.cpp.

int multi_pxo_pinfo_cond ( )

Popup conditional functions, returns 10 on successful get of stats

Definition at line 4312 of file multi_pxo.cpp.

int multi_pxo_pinfo_do ( )

Do frame

Definition at line 4641 of file multi_pxo.cpp.

int multi_pxo_pinfo_get ( char *  name)

Return 1 if Multi_pxo_pinfo was successfully filled in, 0 otherwise

Definition at line 4430 of file multi_pxo.cpp.

void multi_pxo_pinfo_init ( )

Initialize the popup

Definition at line 4583 of file multi_pxo.cpp.

void multi_pxo_pinfo_show ( )

Fire up the stats view popup

Definition at line 4458 of file multi_pxo.cpp.

void multi_pxo_priv_button_pressed ( int  n)

Handle a button press

Definition at line 3995 of file multi_pxo.cpp.

void multi_pxo_priv_close ( )

Close down the popup

Definition at line 3901 of file multi_pxo.cpp.

void multi_pxo_priv_init ( )

Initialize the popup

Definition at line 3881 of file multi_pxo.cpp.

int multi_pxo_priv_popup ( )

Run the popup, 0 if still running, -1 if cancel, 1 if ok

Definition at line 3913 of file multi_pxo.cpp.

void multi_pxo_priv_process_buttons ( )

Process button presses

Definition at line 3979 of file multi_pxo.cpp.

void multi_pxo_priv_process_input ( )

Process the inputbox

Definition at line 4022 of file multi_pxo.cpp.

void multi_pxo_process_channels ( )

Process the channel list (select, etc)

Definition at line 2398 of file multi_pxo.cpp.

void multi_pxo_process_common ( )

Definition at line 1494 of file multi_pxo.cpp.

void multi_pxo_process_nick_change ( char *  data)

Process a "nick" change event

Definition at line 2118 of file multi_pxo.cpp.

void multi_pxo_process_players ( )

Process the player list (select, etc)

Definition at line 2890 of file multi_pxo.cpp.

void multi_pxo_run_medals ( )

Run the medals screen

Definition at line 4735 of file multi_pxo.cpp.

void multi_pxo_scroll_channels_down ( )

Scroll channel list down

Definition at line 2589 of file multi_pxo.cpp.

void multi_pxo_scroll_channels_up ( )

Scroll channel list up

Definition at line 2572 of file multi_pxo.cpp.

void multi_pxo_scroll_chat_down ( )

Scroll the text down

Definition at line 3427 of file multi_pxo.cpp.

void multi_pxo_scroll_chat_up ( )

Scroll the text up

Definition at line 3381 of file multi_pxo.cpp.

void multi_pxo_scroll_players_down ( )

Scroll player list down

Definition at line 2999 of file multi_pxo.cpp.

void multi_pxo_scroll_players_up ( )

Scroll player list up

Definition at line 2982 of file multi_pxo.cpp.

void multi_pxo_set_end_of_motd ( )

Set end of motd

Definition at line 3681 of file multi_pxo.cpp.

void multi_pxo_set_status_text ( const char *  txt)

Set the status text

Definition at line 2192 of file multi_pxo.cpp.

void multi_pxo_strip_space ( char *  string1,
char *  string2 
)

Definition at line 1546 of file multi_pxo.cpp.

void multi_pxo_underscore_nick ( char *  string1,
char *  string2 
)

Convert string 1 into string 2, substituting underscores for spaces

Definition at line 1627 of file multi_pxo.cpp.

void multi_pxo_unload_palette ( )

Unload the palette

Definition at line 1601 of file multi_pxo.cpp.

void multi_pxo_url ( char *  url)

Definition at line 1562 of file multi_pxo.cpp.

Variable Documentation

int i
Initial value:
{
char name[512] = ""
GLuint const GLchar * name
Definition: Glext.h:5608
Examples:
bm_examples.cpp.

Definition at line 466 of file multi_pxo.cpp.

int mpxo_failed = 0

Condition function for popup_do_with_condition for connected to Parallax Online

Definition at line 1828 of file multi_pxo.cpp.

generic_anim Multi_pxo_anim

Definition at line 169 of file multi_pxo.cpp.

UI_BUTTON Multi_pxo_ban_button

Definition at line 1043 of file multi_pxo.cpp.

InetGetFile* Multi_pxo_ban_get = NULL

Definition at line 1018 of file multi_pxo.cpp.

int Multi_pxo_ban_mode = PXO_BAN_MODE_LIST_STARTUP

Definition at line 1057 of file multi_pxo.cpp.

pxo_banner Multi_pxo_banner

Definition at line 1054 of file multi_pxo.cpp.

int Multi_pxo_bitmap = -1

Definition at line 161 of file multi_pxo.cpp.

char Multi_pxo_bitmap_fname[GR_NUM_RESOLUTIONS][MAX_FILENAME_LEN]
Initial value:
= {
"PXOChat",
"2_PXOChat"
}

Definition at line 151 of file multi_pxo.cpp.

Definition at line 74 of file multi_pxo.cpp.

int Multi_pxo_chan_coords[GR_NUM_RESOLUTIONS][4]
Initial value:
= {
{
369, 101, 241, 60
},
{
593, 124, 386, 100
},
}

Definition at line 296 of file multi_pxo.cpp.

UI_BUTTON Multi_pxo_channel_button

Definition at line 324 of file multi_pxo.cpp.

int Multi_pxo_channel_count = 0

Definition at line 328 of file multi_pxo.cpp.

pxo_channel Multi_pxo_channel_current

Definition at line 338 of file multi_pxo.cpp.

char Multi_pxo_channel_last[MAX_CHANNEL_NAME_LEN+1] = ""

Definition at line 287 of file multi_pxo.cpp.

float Multi_pxo_channel_last_refresh = -1.0f

Definition at line 314 of file multi_pxo.cpp.

pxo_channel* Multi_pxo_channel_select = NULL

Definition at line 335 of file multi_pxo.cpp.

float Multi_pxo_channel_server_refresh = -1.0f

Definition at line 317 of file multi_pxo.cpp.

pxo_channel* Multi_pxo_channel_start = NULL

Definition at line 331 of file multi_pxo.cpp.

int Multi_pxo_channel_start_index = -1

Definition at line 332 of file multi_pxo.cpp.

pxo_channel Multi_pxo_channel_switch

Definition at line 341 of file multi_pxo.cpp.

pxo_channel* Multi_pxo_channels = NULL

Definition at line 327 of file multi_pxo.cpp.

int Multi_pxo_chars_per_line[GR_NUM_RESOLUTIONS]
Initial value:
= {
130,
130
}

Definition at line 978 of file multi_pxo.cpp.

chat_line* Multi_pxo_chat = NULL

Definition at line 531 of file multi_pxo.cpp.

chat_line* Multi_pxo_chat_add = NULL

Definition at line 534 of file multi_pxo.cpp.

int Multi_pxo_chat_coords[GR_NUM_RESOLUTIONS][4]
Initial value:
= {
{
196, 197, 412, 185
},
{
314, 271, 665, 330
}
}

Definition at line 487 of file multi_pxo.cpp.

int Multi_pxo_chat_count = 0

Definition at line 561 of file multi_pxo.cpp.

UI_INPUTBOX Multi_pxo_chat_input

Definition at line 541 of file multi_pxo.cpp.

UI_SLIDER2 Multi_pxo_chat_slider

Definition at line 544 of file multi_pxo.cpp.

int Multi_pxo_chat_slider_coords[GR_NUM_RESOLUTIONS][4]
Initial value:
= {
{
620, 206, 21, 147
},
{
990, 295, 34, 269
}
}

Definition at line 546 of file multi_pxo.cpp.

char* Multi_pxo_chat_slider_name[GR_NUM_RESOLUTIONS]
Initial value:
= {
"slider",
"2_slider"
}

Definition at line 555 of file multi_pxo.cpp.

chat_line* Multi_pxo_chat_start = NULL

Definition at line 537 of file multi_pxo.cpp.

int Multi_pxo_chat_start_index = -1

Definition at line 538 of file multi_pxo.cpp.

int Multi_pxo_chat_title_y[GR_NUM_RESOLUTIONS]
Initial value:
= {
181,
253
}

Definition at line 482 of file multi_pxo.cpp.

int Multi_pxo_com_bitmap = -1

Definition at line 704 of file multi_pxo.cpp.

char Multi_pxo_com_bottom_text[MAX_PXO_TEXT_LEN]

Definition at line 715 of file multi_pxo.cpp.

int Multi_pxo_com_bottom_text_y[GR_NUM_RESOLUTIONS]
Initial value:
= {
192,
326
}

Definition at line 729 of file multi_pxo.cpp.

Initial value:
= {
{
ui_button_info("PXP_00", 573, 192, -1, -1, 0),
ui_button_info("PXP_01", 573, 226, -1, -1, 1)
},
{
ui_button_info("2_PXP_00", 917, 308, -1, -1, 0),
ui_button_info("2_PXP_01", 917, 361, -1, -1, 1)
}
}
struct ui_button_info ui_button_info

Definition at line 681 of file multi_pxo.cpp.

int Multi_pxo_com_coords[GR_NUM_RESOLUTIONS][2]
Initial value:
= {
{
38, 129
},
{
61, 207
}
}

Definition at line 658 of file multi_pxo.cpp.

char* Multi_pxo_com_fname[GR_NUM_RESOLUTIONS]
Initial value:
= {
"PXOPop",
"2_PXOPop"
}

Definition at line 648 of file multi_pxo.cpp.

UI_INPUTBOX Multi_pxo_com_input

Definition at line 706 of file multi_pxo.cpp.

int Multi_pxo_com_input_coords[GR_NUM_RESOLUTIONS][4]
Initial value:
= {
{
53, 233, 448, 25
},
{
85, 372, 716, 40
}
}

Definition at line 668 of file multi_pxo.cpp.

char* Multi_pxo_com_mask_fname[GR_NUM_RESOLUTIONS]
Initial value:
= {
"PXOPop-m",
"2_PXOPop-m"
}

Definition at line 652 of file multi_pxo.cpp.

char Multi_pxo_com_middle_text[MAX_PXO_TEXT_LEN]

Definition at line 712 of file multi_pxo.cpp.

int Multi_pxo_com_middle_text_y[GR_NUM_RESOLUTIONS]
Initial value:
= {
172,
280
}

Definition at line 725 of file multi_pxo.cpp.

Initial value:
= {
{
{ "&Cancel", 645, 510, 204, UI_XSTR_COLOR_PINK, -1, &Multi_pxo_com_buttons[0][MULTI_PXO_COM_CANCEL].button },
},
{
{ "&Cancel", 645, 847, 327, UI_XSTR_COLOR_PINK, -1, &Multi_pxo_com_buttons[1][MULTI_PXO_COM_CANCEL].button },
}
}
UI_BUTTON button
Definition: ui.h:660
#define MULTI_PXO_COM_OK
Definition: multi_pxo.cpp:679
#define MULTI_PXO_COM_CANCEL
Definition: multi_pxo.cpp:678
#define UI_XSTR_COLOR_PINK
Definition: ui.h:161
#define UI_XSTR_COLOR_GREEN
Definition: ui.h:160
ui_button_info Multi_pxo_com_buttons[GR_NUM_RESOLUTIONS][MULTI_PXO_COM_NUM_BUTTONS]
Definition: multi_pxo.cpp:681

Definition at line 693 of file multi_pxo.cpp.

char Multi_pxo_com_top_text[MAX_PXO_TEXT_LEN]

Definition at line 709 of file multi_pxo.cpp.

int Multi_pxo_com_top_text_coords[GR_NUM_RESOLUTIONS][2]
Initial value:
= {
{
58, 152
},
{
91, 227
}
}

Definition at line 717 of file multi_pxo.cpp.

UI_WINDOW Multi_pxo_com_window

Definition at line 705 of file multi_pxo.cpp.

int Multi_pxo_connected = 0

Definition at line 177 of file multi_pxo.cpp.

char Multi_pxo_find_channel[MAX_CHANNEL_NAME_LEN+1]

Definition at line 783 of file multi_pxo.cpp.

int Multi_pxo_find_return_code = -1

Definition at line 786 of file multi_pxo.cpp.

int Multi_pxo_help_bitmap = -1

Definition at line 998 of file multi_pxo.cpp.

Initial value:
= {
{
ui_button_info("PXH_00", 15, 389, -1, -1, 0),
ui_button_info("PXH_01", 60, 389, -1, -1, 1),
ui_button_info("PXH_02", 574, 431, 571, 413, 2),
},
{
ui_button_info("2_PXH_00", 24, 622, -1, -1, 0),
ui_button_info("2_PXH_01", 96, 622, -1, -1, 1),
ui_button_info("2_PXH_02", 919, 689, 928, 663, 2),
}
}
struct ui_button_info ui_button_info

Definition at line 941 of file multi_pxo.cpp.

int Multi_pxo_help_coords[GR_NUM_RESOLUTIONS][2]
Initial value:
= {
{
40, 40
},
{
60, 40
}
}

Definition at line 969 of file multi_pxo.cpp.

int Multi_pxo_help_cur = 0

Definition at line 1002 of file multi_pxo.cpp.

char* Multi_pxo_help_fname[GR_NUM_RESOLUTIONS]
Initial value:
= {
"PXHelp",
"2_PXHelp"
}

Definition at line 927 of file multi_pxo.cpp.

char* Multi_pxo_help_mask_fname[GR_NUM_RESOLUTIONS]
Initial value:
= {
"PXOHelp-M",
"2_PXOHelp-M"
}

Definition at line 931 of file multi_pxo.cpp.

int Multi_pxo_help_num_pages = 0

Definition at line 996 of file multi_pxo.cpp.

help_page Multi_pxo_help_pages[MULTI_PXO_MAX_PAGES]

Definition at line 994 of file multi_pxo.cpp.

Initial value:
= {
{
{"Continue", 1069, 571, 413, UI_XSTR_COLOR_PINK, -1, &Multi_pxo_help_buttons[0][MULTI_PXO_HELP_CONTINUE].button },
},
{
{"Continue", 1069, 928, 663, UI_XSTR_COLOR_PINK, -1, &Multi_pxo_help_buttons[1][MULTI_PXO_HELP_CONTINUE].button },
},
}
ui_button_info Multi_pxo_help_buttons[GR_NUM_RESOLUTIONS][MULTI_PXO_HELP_NUM_BUTTONS]
Definition: multi_pxo.cpp:941
#define MULTI_PXO_HELP_CONTINUE
Definition: multi_pxo.cpp:939
UI_BUTTON button
Definition: ui.h:660
#define UI_XSTR_COLOR_PINK
Definition: ui.h:161

Definition at line 955 of file multi_pxo.cpp.

UI_WINDOW Multi_pxo_help_window

Definition at line 999 of file multi_pxo.cpp.

int Multi_pxo_input_coords[GR_NUM_RESOLUTIONS][4]
Initial value:
= {
{
196, 386, 407, 24
},
{
314, 617, 660, 38
}
}

Definition at line 496 of file multi_pxo.cpp.

int Multi_pxo_lines_pp[GR_NUM_RESOLUTIONS]
Initial value:
= {
32,
57
}

Definition at line 983 of file multi_pxo.cpp.

char Multi_pxo_mask_fname[GR_NUM_RESOLUTIONS][MAX_FILENAME_LEN]
Initial value:
= {
"PXOChat-M",
"2_PXOChat-M"
}

Definition at line 155 of file multi_pxo.cpp.

int Multi_pxo_max_chan_display[GR_NUM_RESOLUTIONS]
Initial value:
= {
6,
10
}

Definition at line 319 of file multi_pxo.cpp.

int Multi_pxo_max_chat_display[GR_NUM_RESOLUTIONS]
Initial value:
= {
17,
32
}

Definition at line 505 of file multi_pxo.cpp.

int Multi_pxo_max_player_display[GR_NUM_RESOLUTIONS]
Initial value:
= {
25,
41
}

Definition at line 407 of file multi_pxo.cpp.

int Multi_pxo_mode = MULTI_PXO_MODE_NORMAL

Definition at line 185 of file multi_pxo.cpp.

int Multi_pxo_must_autojoin = 1

Definition at line 179 of file multi_pxo.cpp.

int Multi_pxo_must_connect = 0

Definition at line 176 of file multi_pxo.cpp.

int Multi_pxo_must_validate = 0

Definition at line 178 of file multi_pxo.cpp.

char Multi_pxo_nick[NAME_LENGTH+1]

Definition at line 188 of file multi_pxo.cpp.

int Multi_pxo_notify_stamp = -1

Definition at line 916 of file multi_pxo.cpp.

char Multi_pxo_notify_text[MAX_PXO_TEXT_LEN]

Definition at line 915 of file multi_pxo.cpp.

int Multi_pxo_palette = -1

Definition at line 162 of file multi_pxo.cpp.

int Multi_pxo_pinfo_bitmap = -1

Definition at line 849 of file multi_pxo.cpp.

Initial value:
= {
{
ui_button_info("PI2_00", 328, 446, 319, 433, 0),
ui_button_info("PI2_01", 376, 446, 382, 433, 1),
},
{
ui_button_info("2_PI2_00", 525, 714, 510, 695, 0),
ui_button_info("2_PI2_01", 601, 714, 611, 695, 1),
}
}
struct ui_button_info ui_button_info

Definition at line 825 of file multi_pxo.cpp.

int Multi_pxo_pinfo_coords[GR_NUM_RESOLUTIONS][4]
Initial value:
= {
{
37, 142, 377, 289
},
{
54, 227, 602, 462
},
}

Definition at line 863 of file multi_pxo.cpp.

char* Multi_pxo_pinfo_fname[GR_NUM_RESOLUTIONS]
Initial value:
= {
"PilotInfo2",
"2_PilotInfo2"
}

Definition at line 811 of file multi_pxo.cpp.

char* Multi_pxo_pinfo_mask_fname[GR_NUM_RESOLUTIONS]
Initial value:
= {
"PilotInfo2-M",
"2_PilotInfo2-M"
}

Definition at line 815 of file multi_pxo.cpp.

player Multi_pxo_pinfo_player

Definition at line 853 of file multi_pxo.cpp.

char* Multi_pxo_pinfo_stats_labels[MULTI_PXO_PINFO_NUM_LABELS]

Definition at line 876 of file multi_pxo.cpp.

int Multi_pxo_pinfo_stats_spacing[MULTI_PXO_PINFO_NUM_LABELS]
Initial value:
= {
10,20,10,10,20,10,10,20,10,10,20,10,10,20,10,20,10,0
}

Definition at line 880 of file multi_pxo.cpp.

Initial value:
= {
{
},
{
}
}
UI_BUTTON button
Definition: ui.h:660
#define UI_XSTR_COLOR_PINK
Definition: ui.h:161
ui_button_info Multi_pxo_pinfo_buttons[GR_NUM_RESOLUTIONS][MULTI_PXO_PINFO_NUM_BUTTONS]
Definition: multi_pxo.cpp:825
#define UI_XSTR_COLOR_GREEN
Definition: ui.h:160
#define MULTI_PXO_PINFO_MEDALS
Definition: multi_pxo.cpp:822
#define MULTI_PXO_PINFO_OK
Definition: multi_pxo.cpp:823

Definition at line 838 of file multi_pxo.cpp.

int Multi_pxo_pinfo_val_x[GR_NUM_RESOLUTIONS]
Initial value:
= {
230,
310
}

Definition at line 871 of file multi_pxo.cpp.

char Multi_pxo_pinfo_vals[MULTI_PXO_PINFO_NUM_LABELS][50]

Definition at line 878 of file multi_pxo.cpp.

UI_WINDOW Multi_pxo_pinfo_window

Definition at line 850 of file multi_pxo.cpp.

UI_BUTTON Multi_pxo_player_button

Definition at line 411 of file multi_pxo.cpp.

int Multi_pxo_player_coords[GR_NUM_RESOLUTIONS][4]
Initial value:
= {
{
27, 121, 141, 261
},
{
43, 194, 154, 417
},
}

Definition at line 398 of file multi_pxo.cpp.

int Multi_pxo_player_count = 0

Definition at line 429 of file multi_pxo.cpp.

player_list* Multi_pxo_player_select = NULL

Definition at line 436 of file multi_pxo.cpp.

int Multi_pxo_player_slider_coords[GR_NUM_RESOLUTIONS][4]
Initial value:
= {
{
1, 139, 21, 192
},
{
2, 219, 33, 314
}
}

Definition at line 414 of file multi_pxo.cpp.

char* Multi_pxo_player_slider_name[GR_NUM_RESOLUTIONS]
Initial value:
= {
"slider",
"2_slider"
}

Definition at line 422 of file multi_pxo.cpp.

player_list* Multi_pxo_player_start = NULL

Definition at line 432 of file multi_pxo.cpp.

player_list* Multi_pxo_players = NULL

Definition at line 428 of file multi_pxo.cpp.

char Multi_pxo_priv_chan[MULTI_PXO_PRIV_MAX_TEXT_LEN+100]

Definition at line 757 of file multi_pxo.cpp.

int Multi_pxo_priv_return_code = -1

Definition at line 760 of file multi_pxo.cpp.

float Multi_pxo_ranking_last = -1.0f

Definition at line 173 of file multi_pxo.cpp.

char Multi_pxo_retrieve_id[128]

Definition at line 858 of file multi_pxo.cpp.

int Multi_pxo_retrieve_mode = -1

Definition at line 855 of file multi_pxo.cpp.

char Multi_pxo_retrieve_name[MAX_PLAYER_NAME_LEN+1]

Definition at line 857 of file multi_pxo.cpp.

int Multi_pxo_searching = 0

Definition at line 3770 of file multi_pxo.cpp.

int Multi_pxo_status_coords[GR_NUM_RESOLUTIONS][4]
Initial value:
= {
{
95, 467, 354, 12
},
{
152, 750, 570, 12
},
}

Definition at line 251 of file multi_pxo.cpp.

char Multi_pxo_status_text[MAX_PXO_TEXT_LEN]

Definition at line 261 of file multi_pxo.cpp.

int Multi_pxo_switch_delay = -1

Definition at line 565 of file multi_pxo.cpp.

Definition at line 112 of file multi_pxo.cpp.

int Multi_pxo_use_last_channel = 0

Definition at line 288 of file multi_pxo.cpp.

UI_WINDOW Multi_pxo_window

Definition at line 160 of file multi_pxo.cpp.

char name_lookup[MAX_PXO_TEXT_LEN]

Definition at line 4048 of file multi_pxo.cpp.

int Pxo_ban_coords[GR_NUM_RESOLUTIONS][4]
Initial value:
= {
{
149, 3, 475, 75
},
{
524, 3, 475, 75
}
}

Definition at line 1024 of file multi_pxo.cpp.

char Pxo_motd[1024] = ""

Definition at line 624 of file multi_pxo.cpp.

int Pxo_motd_blink_on = 0

Definition at line 628 of file multi_pxo.cpp.

int Pxo_motd_blink_stamp = -1

Definition at line 627 of file multi_pxo.cpp.

int Pxo_motd_blinked_already = 0

Definition at line 629 of file multi_pxo.cpp.

int Pxo_motd_end = 0

Definition at line 625 of file multi_pxo.cpp.

int Pxo_motd_read = 0

Definition at line 626 of file multi_pxo.cpp.