codemp/ui/ui_force.h

Go to the documentation of this file.
00001 #include "../qcommon/qfiles.h"
00002 
00003 #define NUM_FORCE_STAR_IMAGES  9
00004 #define FORCE_NONJEDI   0
00005 #define FORCE_JEDI              1
00006 
00007 extern int uiForceSide;
00008 extern int uiJediNonJedi;
00009 extern int uiForceRank;
00010 extern int uiMaxRank;
00011 extern int uiForceUsed;
00012 extern int uiForceAvailable;
00013 extern qboolean gTouchedForce;
00014 extern qboolean uiForcePowersDisabled[NUM_FORCE_POWERS];
00015 extern int uiForcePowersRank[NUM_FORCE_POWERS];
00016 extern int uiForcePowerDarkLight[NUM_FORCE_POWERS];
00017 extern int uiSaberColorShaders[NUM_SABER_COLORS];
00018 // Dots above or equal to a given rank carry a certain color.
00019 extern vmCvar_t ui_freeSaber, ui_forcePowerDisable;
00020 
00021 void UI_InitForceShaders(void);
00022 void UI_ReadLegalForce(void);
00023 void UI_DrawTotalForceStars(rectDef_t *rect, float scale, vec4_t color, int textStyle);
00024 void UI_DrawForceStars(rectDef_t *rect, float scale, vec4_t color, int textStyle, int findex, int val, int min, int max) ;
00025 void UI_UpdateClientForcePowers(const char *teamArg);
00026 void UI_SaveForceTemplate();
00027 void UI_UpdateForcePowers();
00028 qboolean UI_SkinColor_HandleKey(int flags, float *special, int key, int num, int min, int max, int type);
00029 qboolean UI_ForceSide_HandleKey(int flags, float *special, int key, int num, int min, int max, int type);
00030 qboolean UI_JediNonJedi_HandleKey(int flags, float *special, int key, int num, int min, int max, int type);
00031 qboolean UI_ForceMaxRank_HandleKey(int flags, float *special, int key, int num, int min, int max, int type);
00032 qboolean UI_ForcePowerRank_HandleKey(int flags, float *special, int key, int num, int min, int max, int type);
00033 extern void UI_ForceConfigHandle( int oldindex, int newindex );