Skip to content

Commit

Permalink
CLIENT: Make controller glyph on useprint smaller; useprint less clau…
Browse files Browse the repository at this point in the history
…strophobic
  • Loading branch information
MotoLegacy committed Nov 26, 2024
1 parent b3c2588 commit 514d98c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/client/hud.qc
Original file line number Diff line number Diff line change
Expand Up @@ -1053,15 +1053,15 @@ void(float width, float height) HUD_Useprint =
if (usecost != "") {
float cost_width = getTextWidth(usecost, 12);
float x3 = (width - cost_width)/2;
Draw_String([x3, g_height/2 + 78, 0], usecost, [12, 12, 0], [1, 1, 1], 1, 0);
Draw_String([x3, g_height/2 + 84, 0], usecost, [12, 12, 0], [1, 1, 1], 1, 0);
}

// Draw highlighted usebutton
if (substring(usestring, 0, 4) == "Hold") {
button_width = x + getTextWidth("Hold ", 12);

if (Key_IsControllerGlyph(usebutton))
Key_DrawControllerGlyph([button_width - 5, g_height/2 + 60], usebutton, [22, 22]);
Key_DrawControllerGlyph([button_width - 5, g_height/2 + 62], usebutton, [18, 18]);
else
Draw_String([button_width, g_height/2 + 65, 0], usebutton, [12, 12, 0], [1, 1, 0], 1, 0);
}
Expand Down

0 comments on commit 514d98c

Please sign in to comment.