set team properly/tint scoreboard background for team
This commit is contained in:
parent
557cc1614f
commit
724992ef33
@ -359,7 +359,7 @@ namespace IW4MAdmin.Application.EventParsers
|
||||
State = EFClient.ClientState.Connected,
|
||||
},
|
||||
Extra = team,
|
||||
RequiredEntity = GameEvent.EventRequiredEntity.None,
|
||||
RequiredEntity = GameEvent.EventRequiredEntity.Origin,
|
||||
GameTime = gameTime,
|
||||
Source = GameEvent.EventSource.Log
|
||||
};
|
||||
|
@ -96,6 +96,7 @@ namespace IW4MAdmin
|
||||
client.ClientNumber = clientFromLog.ClientNumber;
|
||||
client.Score = clientFromLog.Score;
|
||||
client.Ping = clientFromLog.Ping;
|
||||
client.Team = clientFromLog.Team;
|
||||
client.CurrentServer = this;
|
||||
client.State = ClientState.Connecting;
|
||||
|
||||
|
@ -101,7 +101,8 @@ namespace WebfrontCore.Controllers
|
||||
Deaths = clientData.stats?.MatchData?.Deaths,
|
||||
ScorePerMinute = clientData.stats?.SessionSPM,
|
||||
Kdr = clientData.stats?.MatchData?.Kdr,
|
||||
ZScore = clientData.stats?.ZScore
|
||||
ZScore = clientData.stats?.ZScore,
|
||||
Team = clientData.client.Team
|
||||
})
|
||||
.ToList()
|
||||
}).ToList();
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using SharedLibraryCore.Database.Models;
|
||||
|
||||
namespace WebfrontCore.ViewModels
|
||||
{
|
||||
@ -24,5 +25,6 @@ namespace WebfrontCore.ViewModels
|
||||
public double? ScorePerMinute { get; set; }
|
||||
public double? Kdr { get; set; }
|
||||
public double? ZScore { get; set; }
|
||||
public EFClient.TeamType Team { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,7 @@
|
||||
</tr>
|
||||
@foreach (var client in Model.ShouldOrderDescending ? Model.ClientInfo.OrderByDescending(OrderByFunc) : Model.ClientInfo.OrderBy(OrderByFunc))
|
||||
{
|
||||
<tr>
|
||||
<tr class="team-@client.Team.ToString().ToLower()-bg">
|
||||
<td>
|
||||
<a asp-controller="Client" asp-action="ProfileAsync" asp-route-id="@client.ClientId">
|
||||
<color-code value="@client.ClientName"></color-code>
|
||||
|
@ -455,3 +455,11 @@ div.card {
|
||||
padding-right: 1rem !important;
|
||||
line-height: 1.45rem !important;
|
||||
}
|
||||
|
||||
.team-allies-bg {
|
||||
background-color: rgba(0, 0, 139, 0.1);
|
||||
}
|
||||
|
||||
.team-axis-bg {
|
||||
background-color: rgba(139, 0, 0, 0.1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user