Skip to content

Commit

Permalink
HUD_FRAGS: style "3" now shows no indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-qw committed Feb 23, 2024
1 parent 16102c1 commit a07c0db
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
16 changes: 12 additions & 4 deletions help_variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -7436,15 +7436,23 @@
"desc": "Toggles alignment of players nick and team name in frags HUD element.",
"group-id": "19",
"remarks": "Use 'frags shownames 1' and/or 'frags showteams 1' to show names and team names of players.",
"type": "boolean",
"type": "integer",
"values": [
{
"description": "Rows aligned to the left side, names and team tags are on the right side of frag counts.",
"name": "false"
"name": "0"
},
{
"description": "Rows aligned to the right side, names and team tags are on the left side of frag counts.",
"name": "true"
"name": "1"
},
{
"description": "Rows aligned toward the inside of each column.",
"name": "2"
},
{
"description": "Rows aligned toward the outside of each column.",
"name": "3"
}
]
},
Expand Down Expand Up @@ -7595,7 +7603,7 @@
"name": "2"
},
{
"description": "Similar to 0.",
"description": "No pointer or indicator.",
"name": "3"
},
{
Expand Down
3 changes: 3 additions & 0 deletions src/hud_frags.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ static void Frags_DrawColors(
Draw_Fill(x + width - 1, y - 1, 1, height + 2, 0x4f);
Draw_Fill(x, y + height, width, 1, 0x4f);
break;
case 3:
// Draw nothing
break;
case 0:
default:
Draw_SCharacterP(x - 2 - 2 * d, brack_posy, 16, scale, proportional); // [
Expand Down

0 comments on commit a07c0db

Please sign in to comment.