Open source remastering of the Freespace 2 engine
HudGaugeWeaponList Class Reference

#include <hudtarget.h>

Inheritance diagram for HudGaugeWeaponList:
HudGauge HudGaugePrimaryWeapons HudGaugeSecondaryWeapons

Public Member Functions

 HudGaugeWeaponList (int gauge_object)
void initBitmaps (char *fname_first, char *fname_entry, char *fname_last)
void initBgFirstOffsetX (int x)
void initBgEntryOffsetX (int x)
void initBgLastOffsetX (int x)
void initBgLastOffsetY (int x)
void initBgFirstHeight (int h)
void initBgEntryHeight (int h)
void initHeaderText (char *text)
void initHeaderOffsets (int x, int y)
void initEntryStartY (int y)
void initEntryHeight (int h)
void initLinkIcon ()
virtual void render (float frametime)
void pageIn ()
void maybeFlashWeapon (int index)
- Public Member Functions inherited from HudGauge
 HudGauge ()
 HudGauge (int _gauge_object, int _gauge_config, bool _slew, bool _message, int _disabled_views, int r, int g, int b)
 HudGauge (int _gauge_config, bool _slew, int r, int g, int b, char *_custom_name, char *_custom_text, char *frame_fname, int txtoffset_x, int txtoffset_y)
virtual ~HudGauge ()
void initPosition (int x, int y)
void initBaseResolution (int w, int h)
void initSlew (bool slew)
void initFont (int input_font_num)
void initCockpitTarget (const char *display_name, int _target_x, int _target_y, int _target_w, int _target_h, int _canvas_w, int _canvas_h)
void initRenderStatus (bool render)
int getConfigType ()
int getObjectType ()
void getPosition (int *x, int *y)
bool isOffbyDefault ()
bool isActive ()
void updateColor (int r, int g, int b, int a=255)
void lockConfigColor (bool lock)
void sexpLockConfigColor (bool lock)
void updateActive (bool show)
void updatePopUp (bool pop_up_flag)
void updateSexpOverride (bool sexp)
void startFlashSexp ()
int maybeFlashSexp ()
bool flashExpiredSexp ()
void resetTimers ()
const char * getCustomGaugeName ()
void updateCustomGaugeCoords (int _x, int _y)
void updateCustomGaugeFrame (int frame_offset)
void updateCustomGaugeText (const char *txt)
void updateCustomGaugeText (const SCP_string &txt)
const char * getCustomGaugeText ()
void startPopUp (int time=4000)
int popUpActive ()
virtual void preprocess ()
virtual bool canRender ()
virtual void initialize ()
virtual void onFrame (float frametime)
bool setupRenderCanvas (int render_target=-1)
void setCockpitTarget (const cockpit_display *display)
void resetCockpitTarget ()
void setFont ()
void setGaugeColor (int bright_index=-4)
void renderBitmap (int x, int y)
void renderBitmap (int frame, int x, int y)
void renderBitmapColor (int frame, int x, int y)
void renderBitmapUv (int frame, int x, int y, int w, int h, float u0, float v0, float u1, float v1)
void renderBitmapEx (int frame, int x, int y, int w, int h, int sx, int sy)
void renderString (int x, int y, const char *str)
void renderString (int x, int y, int gauge_id, const char *str)
void renderStringAlignCenter (int x, int y, int area_width, const char *s)
void renderPrintf (int x, int y, const char *format,...)
void renderPrintf (int x, int y, int gauge_id, const char *format,...)
void renderLine (int x1, int y1, int x2, int y2)
void renderGradientLine (int x1, int y1, int x2, int y2)
void renderRect (int x, int y, int w, int h)
void renderCircle (int x, int y, int diameter)
void unsize (int *x, int *y)
void unsize (float *x, float *y)
void resize (int *x, int *y)
void resize (float *x, float *y)
void setClip (int x, int y, int w, int h)
void resetClip ()

Protected Attributes

hud_frames _background_first
hud_frames _background_entry
hud_frames _background_last
ubyte Weapon_link_icon
int _bg_first_offset_x
int _bg_entry_offset_x
int _bg_last_offset_x
int _bg_last_offset_y
int _background_first_h
int _background_entry_h
int _header_offsets [2]
int _entry_start_y
int _entry_h
char header_text [NAME_LENGTH]
- Protected Attributes inherited from HudGauge
int position [2]
int base_w
int base_h
color gauge_color
int gauge_config
int gauge_object
int font_num
bool lock_color
bool sexp_lock_color
bool reticle_follow
bool active
bool off_by_default
bool sexp_override
bool pop_up
int popup_timer
bool message_gauge
int disabled_views
int flash_duration
int flash_next
bool flash_status
bool custom_gauge
hud_frames custom_frame
int custom_frame_offset
int textoffset_x
int textoffset_y
char custom_name [NAME_LENGTH]
SCP_string custom_text
SCP_string default_text
char texture_target_fname [MAX_FILENAME_LEN]
int texture_target
int canvas_w
int canvas_h
int target_w
int target_h
int target_x
int target_y
int display_offset_x
int display_offset_y

Detailed Description

Definition at line 350 of file hudtarget.h.

Constructor & Destructor Documentation

HudGaugeWeaponList::HudGaugeWeaponList ( int  gauge_object)

Definition at line 6709 of file hudtarget.cpp.

Member Function Documentation

void HudGaugeWeaponList::initBgEntryHeight ( int  h)

Definition at line 6769 of file hudtarget.cpp.

void HudGaugeWeaponList::initBgEntryOffsetX ( int  x)

Definition at line 6749 of file hudtarget.cpp.

void HudGaugeWeaponList::initBgFirstHeight ( int  h)

Definition at line 6764 of file hudtarget.cpp.

void HudGaugeWeaponList::initBgFirstOffsetX ( int  x)

Definition at line 6744 of file hudtarget.cpp.

void HudGaugeWeaponList::initBgLastOffsetX ( int  x)

Definition at line 6754 of file hudtarget.cpp.

void HudGaugeWeaponList::initBgLastOffsetY ( int  x)

Definition at line 6759 of file hudtarget.cpp.

void HudGaugeWeaponList::initBitmaps ( char *  fname_first,
char *  fname_entry,
char *  fname_last 

Definition at line 6726 of file hudtarget.cpp.

void HudGaugeWeaponList::initEntryHeight ( int  h)

Definition at line 6790 of file hudtarget.cpp.

void HudGaugeWeaponList::initEntryStartY ( int  y)

Definition at line 6785 of file hudtarget.cpp.

void HudGaugeWeaponList::initHeaderOffsets ( int  x,
int  y 

Definition at line 6779 of file hudtarget.cpp.

void HudGaugeWeaponList::initHeaderText ( char *  text)

Definition at line 6774 of file hudtarget.cpp.

void HudGaugeWeaponList::initLinkIcon ( )

Definition at line 6715 of file hudtarget.cpp.

void HudGaugeWeaponList::maybeFlashWeapon ( int  index)

Definition at line 6810 of file hudtarget.cpp.

void HudGaugeWeaponList::pageIn ( )

Reimplemented from HudGauge.

Definition at line 6795 of file hudtarget.cpp.

void HudGaugeWeaponList::render ( float  frametime)

Reimplemented from HudGauge.

Reimplemented in HudGaugeSecondaryWeapons, and HudGaugePrimaryWeapons.

Definition at line 6830 of file hudtarget.cpp.

Member Data Documentation

hud_frames HudGaugeWeaponList::_background_entry

Definition at line 354 of file hudtarget.h.

int HudGaugeWeaponList::_background_entry_h

Definition at line 364 of file hudtarget.h.

hud_frames HudGaugeWeaponList::_background_first

Definition at line 353 of file hudtarget.h.

int HudGaugeWeaponList::_background_first_h

Definition at line 363 of file hudtarget.h.

hud_frames HudGaugeWeaponList::_background_last

Definition at line 355 of file hudtarget.h.

int HudGaugeWeaponList::_bg_entry_offset_x

Definition at line 359 of file hudtarget.h.

int HudGaugeWeaponList::_bg_first_offset_x

Definition at line 358 of file hudtarget.h.

int HudGaugeWeaponList::_bg_last_offset_x

Definition at line 360 of file hudtarget.h.

int HudGaugeWeaponList::_bg_last_offset_y

Definition at line 361 of file hudtarget.h.

int HudGaugeWeaponList::_entry_h

Definition at line 368 of file hudtarget.h.

int HudGaugeWeaponList::_entry_start_y

Definition at line 367 of file hudtarget.h.

int HudGaugeWeaponList::_header_offsets[2]

Definition at line 366 of file hudtarget.h.

char HudGaugeWeaponList::header_text[NAME_LENGTH]

Definition at line 370 of file hudtarget.h.

ubyte HudGaugeWeaponList::Weapon_link_icon

Definition at line 356 of file hudtarget.h.

The documentation for this class was generated from the following files: