mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-20 20:20:28 -05:00
modify iw6x parser to default game log vars temporarily, small amount of code cleanup to git rid of warnings
This commit is contained in:
@ -10,6 +10,7 @@ using SharedLibraryCore.Interfaces;
|
||||
using Stats.Dtos;
|
||||
using StatsWeb.Extensions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@ -88,7 +89,7 @@ namespace IW4MAdmin.Plugins.Web.StatsWeb.Controllers
|
||||
SentAfter = whenLower
|
||||
});
|
||||
|
||||
return View("_MessageContext", messages.Results);
|
||||
return View("_MessageContext", messages.Results.ToList());
|
||||
}
|
||||
|
||||
[HttpGet("Message/Find")]
|
||||
@ -187,13 +188,13 @@ namespace IW4MAdmin.Plugins.Web.StatsWeb.Controllers
|
||||
// we want to show anything related to the automated offense
|
||||
else
|
||||
{
|
||||
return View("_MessageContext", new[]
|
||||
return View("_MessageContext", new List<MessageResponse>
|
||||
{
|
||||
new ChatInfo()
|
||||
new MessageResponse()
|
||||
{
|
||||
ClientId = penalty.OffenderId,
|
||||
Message = penalty.AutomatedOffense,
|
||||
Time = penalty.When
|
||||
When = penalty.When
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -6,21 +6,37 @@
|
||||
string rankIcon(double elo)
|
||||
{
|
||||
if (elo >= getDeviation(-0.75) && elo < getDeviation(1.25))
|
||||
{
|
||||
return "0_no-place/menu_div_no_place.png";
|
||||
}
|
||||
if (elo >= getDeviation(0.125) && elo < getDeviation(0.625))
|
||||
{
|
||||
return "1_iron/menu_div_iron_sub03.png";
|
||||
}
|
||||
if (elo >= getDeviation(0.625) && elo < getDeviation(1.0))
|
||||
{
|
||||
return "2_bronze/menu_div_bronze_sub03.png";
|
||||
}
|
||||
if (elo >= getDeviation(1.0) && elo < getDeviation(1.25))
|
||||
{
|
||||
return "3_silver/menu_div_silver_sub03.png";
|
||||
}
|
||||
if (elo >= getDeviation(1.25) && elo < getDeviation(1.5))
|
||||
{
|
||||
return "4_gold/menu_div_gold_sub03.png";
|
||||
}
|
||||
if (elo >= getDeviation(1.5) && elo < getDeviation(1.75))
|
||||
{
|
||||
return "5_platinum/menu_div_platinum_sub03.png";
|
||||
}
|
||||
if (elo >= getDeviation(1.75) && elo < getDeviation(2.0))
|
||||
{
|
||||
return "6_semipro/menu_div_semipro_sub03.png";
|
||||
}
|
||||
if (elo >= getDeviation(2.0))
|
||||
{
|
||||
return "7_pro/menu_div_pro_sub03.png";
|
||||
}
|
||||
|
||||
return "0_no-place/menu_div_no_place.png";
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@model IEnumerable<MessageResponse>
|
||||
@model IList<MessageResponse>
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user