Open source remastering of the Freespace 2 engine
hudconfig.h File Reference
#include "hud/hud.h"

Go to the source code of this file.




#define HUD_COLOR_GREEN   0
#define HUD_COLOR_BLUE   1
#define HUD_COLOR_AMBER   2
#define RR_MAX_RANGES   3
#define RR_SHORT   0
#define RR_LONG   1
#define RR_INFINITY   2
#define RP_SHOW_DEBRIS   (1<<0)




const char * Radar_range_text (int range_num)
void hud_config_init ()
void hud_config_do_frame (float frametime)
void hud_config_close ()
void hud_set_default_hud_config (player *p)
void hud_config_set_gauge_flags (int gauge_index, int on_flag, int popup_flag)
void hud_config_restore ()
void hud_config_backup ()
void hud_config_as_observer (ship *shipp, ai_info *aif)
void hud_config_as_observer ()
void hud_config_as_player ()
void hud_config_display_text (char *gauge_text, int x, int y)
void hud_set_display_gauge_cbox ()
void hud_config_cancel ()
void hud_config_commit ()
int hud_config_show_flag_is_set (int i)
void hud_config_show_flag_set (int i)
void hud_config_show_flag_clear (int i)
int hud_config_popup_flag_is_set (int i)
void hud_config_popup_flag_set (int i)
void hud_config_popup_flag_clear (int i)
void hud_config_record_color (int color)
void hud_config_set_color (int color)
void hud_config_color_load (char *name)


float Radar_ranges [RR_MAX_RANGES]
int HUD_observer_default_flags
int HUD_observer_default_flags2
int HUD_default_popup_mask
int HUD_default_popup_mask2
int HUD_config_default_flags
int HUD_config_default_flags2

Macro Definition Documentation

#define HUD_COLOR_AMBER   2

Definition at line 23 of file hudconfig.h.

#define HUD_COLOR_BLUE   1

Definition at line 22 of file hudconfig.h.

#define HUD_COLOR_GREEN   0

Definition at line 21 of file hudconfig.h.

Definition at line 39 of file hudconfig.h.

#define RP_SHOW_DEBRIS   (1<<0)

Definition at line 35 of file hudconfig.h.


Definition at line 36 of file hudconfig.h.


Definition at line 37 of file hudconfig.h.

#define RR_INFINITY   2

Definition at line 31 of file hudconfig.h.

#define RR_LONG   1

Definition at line 30 of file hudconfig.h.

#define RR_MAX_RANGES   3

Definition at line 28 of file hudconfig.h.

#define RR_SHORT   0

Definition at line 29 of file hudconfig.h.

Typedef Documentation

Function Documentation

void hud_config_as_observer ( ship shipp,
ai_info aif 

Definition at line 1595 of file hudconfig.cpp.

void hud_config_as_observer ( )
void hud_config_as_player ( )

Definition at line 1608 of file hudconfig.cpp.

void hud_config_backup ( )

Definition at line 1590 of file hudconfig.cpp.

void hud_config_cancel ( )

Definition at line 1036 of file hudconfig.cpp.

void hud_config_close ( )

Definition at line 1541 of file hudconfig.cpp.

void hud_config_color_load ( char *  name)

Definition at line 1642 of file hudconfig.cpp.

void hud_config_commit ( )

Definition at line 1043 of file hudconfig.cpp.

void hud_config_display_text ( char *  gauge_text,
int  x,
int  y 
void hud_config_do_frame ( float  frametime)

Definition at line 1467 of file hudconfig.cpp.

void hud_config_init ( )

Definition at line 924 of file hudconfig.cpp.

void hud_config_popup_flag_clear ( int  i)

Definition at line 844 of file hudconfig.cpp.

int hud_config_popup_flag_is_set ( int  i)

Definition at line 822 of file hudconfig.cpp.

void hud_config_popup_flag_set ( int  i)

Definition at line 835 of file hudconfig.cpp.

void hud_config_record_color ( int  color)

Definition at line 1002 of file hudconfig.cpp.

void hud_config_restore ( )

Definition at line 1582 of file hudconfig.cpp.

void hud_config_set_color ( int  color)

Definition at line 1011 of file hudconfig.cpp.

void hud_config_set_gauge_flags ( int  gauge_index,
int  on_flag,
int  popup_flag 

Definition at line 987 of file hudconfig.cpp.

void hud_config_show_flag_clear ( int  i)

Definition at line 813 of file hudconfig.cpp.

int hud_config_show_flag_is_set ( int  i)

Definition at line 791 of file hudconfig.cpp.

void hud_config_show_flag_set ( int  i)

Definition at line 804 of file hudconfig.cpp.

void hud_set_default_hud_config ( player p)

Definition at line 1552 of file hudconfig.cpp.

void hud_set_display_gauge_cbox ( )
const char* Radar_range_text ( int  range_num)

Definition at line 102 of file hudconfig.cpp.

Variable Documentation


Definition at line 49 of file hudconfig.cpp.

int HUD_config_default_flags

Definition at line 136 of file hudconfig.cpp.

int HUD_config_default_flags2

Definition at line 172 of file hudconfig.cpp.

int HUD_default_popup_mask

Definition at line 184 of file hudconfig.cpp.

int HUD_default_popup_mask2

Definition at line 219 of file hudconfig.cpp.

int HUD_observer_default_flags

Definition at line 120 of file hudconfig.cpp.

int HUD_observer_default_flags2

Definition at line 131 of file hudconfig.cpp.

float Radar_ranges[RR_MAX_RANGES]

Definition at line 96 of file hudconfig.cpp.