mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-27 06:22:27 +00:00
UI_SSG_CROSSHAIR drawing.
This commit is contained in:
parent
6a947705d4
commit
c288335496
1 changed files with 10 additions and 3 deletions
|
@ -3181,10 +3181,17 @@ static void UI_DrawSSGCrosshair(rectDef_t * rect)
|
|||
color[1] = trap_Cvar_VariableValue("cg_RQ3_ssgColorG");
|
||||
color[2] = trap_Cvar_VariableValue("cg_RQ3_ssgColorB");
|
||||
color[3] = trap_Cvar_VariableValue("cg_RQ3_ssgColorA");
|
||||
trap_R_SetColor(color);
|
||||
|
||||
if (rect->hasVectors)
|
||||
{
|
||||
UI_DrawAngledPic(rect->x, rect->y, rect->w, rect->h, rect->u, rect->v, color, 0.f, 0.f, 1.f, 1.f, uiInfo.uiDC.Assets.SSGcrosshairShader);
|
||||
}
|
||||
else
|
||||
{
|
||||
trap_R_SetColor(color);
|
||||
UI_DrawHandlePic(rect->x, rect->y, rect->w, rect->h, uiInfo.uiDC.Assets.SSGcrosshairShader);
|
||||
trap_R_SetColor(NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue