Initial commit.
This commit is contained in:
45
codemp/ui/ui_force.h
Normal file
45
codemp/ui/ui_force.h
Normal file
@@ -0,0 +1,45 @@
|
||||
#include "../qcommon/qfiles.h"
|
||||
|
||||
#define NUM_FORCE_STAR_IMAGES 9
|
||||
#define FORCE_NONJEDI 0
|
||||
#define FORCE_JEDI 1
|
||||
|
||||
extern int uiForceSide;
|
||||
extern int uiJediNonJedi;
|
||||
extern int uiForceRank;
|
||||
extern int uiMaxRank;
|
||||
extern int uiForceUsed;
|
||||
extern int uiForceAvailable;
|
||||
#ifdef _XBOX
|
||||
extern qboolean gTouchedForce[2];
|
||||
#else
|
||||
extern qboolean gTouchedForce;
|
||||
#endif
|
||||
extern qboolean uiForcePowersDisabled[NUM_FORCE_POWERS];
|
||||
extern int uiForcePowersRank[NUM_FORCE_POWERS];
|
||||
|
||||
//JLF
|
||||
#ifdef _XBOX
|
||||
extern int gCustRank[2];
|
||||
extern int gCustSide[2];
|
||||
extern int gCustPowersRank[2][NUM_FORCE_POWERS];
|
||||
#endif
|
||||
|
||||
extern int uiForcePowerDarkLight[NUM_FORCE_POWERS];
|
||||
extern int uiSaberColorShaders[NUM_SABER_COLORS];
|
||||
// Dots above or equal to a given rank carry a certain color.
|
||||
extern vmCvar_t ui_freeSaber, ui_forcePowerDisable;
|
||||
|
||||
void UI_InitForceShaders(void);
|
||||
void UI_ReadLegalForce(void);
|
||||
void UI_DrawTotalForceStars(rectDef_t *rect, float scale, vec4_t color, int textStyle);
|
||||
void UI_DrawForceStars(rectDef_t *rect, float scale, vec4_t color, int textStyle, int findex, int val, int min, int max) ;
|
||||
void UI_UpdateClientForcePowers(const char *teamArg);
|
||||
void UI_SaveForceTemplate();
|
||||
void UI_UpdateForcePowers();
|
||||
qboolean UI_SkinColor_HandleKey(int flags, float *special, int key, int num, int min, int max, int type);
|
||||
qboolean UI_ForceSide_HandleKey(int flags, float *special, int key, int num, int min, int max, int type);
|
||||
qboolean UI_JediNonJedi_HandleKey(int flags, float *special, int key, int num, int min, int max, int type);
|
||||
qboolean UI_ForceMaxRank_HandleKey(int flags, float *special, int key, int num, int min, int max, int type);
|
||||
qboolean UI_ForcePowerRank_HandleKey(int flags, float *special, int key, int num, int min, int max, int type);
|
||||
extern void UI_ForceConfigHandle( int oldindex, int newindex );
|
||||
Reference in New Issue
Block a user