Skip to content

Commit

Permalink
Add semi-opaque backdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasksu committed Sep 7, 2021
1 parent 5fffdde commit 7ddb1fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GameMod/MPDeathReview.cs
Expand Up @@ -151,6 +151,9 @@ static void DrawDeathSummary(UIElement uie)
float alpha_mod = 1f;
float w = 120f;

// Add partially opaque background
UIManager.DrawQuadUI(pos - Vector2.down * 135f, 140f, 160f, UIManager.m_col_black, 0.95f, 22);

if (killer)
{
c = NetworkMatch.IsTeamMode(NetworkMatch.GetMode()) ? MPTeams.TeamColor(killer.m_mp_team, 0) : UIManager.m_col_red;
Expand Down Expand Up @@ -187,7 +190,7 @@ static void DrawDeathSummary(UIElement uie)
DrawDamageSummary(uie, ref pos, c, 0.35f, alpha_mod, selfDamages);
pos.x -= 70f;
pos.y += 48f;
}
}
}

static void DrawHeader(UIElement uie, Vector2 pos, string s, float w, Color c, float sc)
Expand Down

0 comments on commit 7ddb1fd

Please sign in to comment.