From d11a5f862b95132ec0b7dcd7e73e75960bcd46ee Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 4 Aug 2019 21:25:56 -0500 Subject: [PATCH] add missing dragunov to the live radar weapons color code process names in chat context --- Plugins/LiveRadar/Views/Radar/Index.cshtml | 1 + Plugins/Web/StatsWeb/Views/Stats/_MessageContext.cshtml | 4 +++- WebfrontCore/wwwroot/js/stats.js | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Plugins/LiveRadar/Views/Radar/Index.cshtml b/Plugins/LiveRadar/Views/Radar/Index.cshtml index b5baa13b9..f8e646295 100644 --- a/Plugins/LiveRadar/Views/Radar/Index.cshtml +++ b/Plugins/LiveRadar/Views/Radar/Index.cshtml @@ -81,6 +81,7 @@ weapons["wa2000"] = "wa2000"; weapons["m21"] = "m14ebr"; weapons["cheytac"] = "cheytac"; + weapons["dragunov"] = "hud_dragunovsvd"; weapons["beretta"] = "m9beretta"; weapons["usp"] = "usp_45"; diff --git a/Plugins/Web/StatsWeb/Views/Stats/_MessageContext.cshtml b/Plugins/Web/StatsWeb/Views/Stats/_MessageContext.cshtml index 476885a55..0d0459a4d 100644 --- a/Plugins/Web/StatsWeb/Views/Stats/_MessageContext.cshtml +++ b/Plugins/Web/StatsWeb/Views/Stats/_MessageContext.cshtml @@ -8,7 +8,9 @@
@foreach (var message in Model) { - @message.Name + + + diff --git a/WebfrontCore/wwwroot/js/stats.js b/WebfrontCore/wwwroot/js/stats.js index 85b6ac653..2c903eb8c 100644 --- a/WebfrontCore/wwwroot/js/stats.js +++ b/WebfrontCore/wwwroot/js/stats.js @@ -20,8 +20,6 @@ if (interval < 1) interval = 1; - //let primaryColor = $('.nav-tabs .nav-link.active').first().css('background-color') - return new CanvasJS.Chart(id, { backgroundColor: 'transparent', height: height,