-
Configuration in game View 3 :
-
- Load configuration file
-
Submit
-
-
-
- Generate a configuration file
-
+
+
Configuration runes :
+
diff --git a/OSL-Server/Pages/ConfigPage.razor.cs b/OSL-Server/Pages/ConfigPage.razor.cs
index 3e7fb81..a85e7eb 100644
--- a/OSL-Server/Pages/ConfigPage.razor.cs
+++ b/OSL-Server/Pages/ConfigPage.razor.cs
@@ -2,6 +2,12 @@
using Microsoft.AspNetCore.Components.Forms;
using System.ComponentModel.DataAnnotations;
using OSL_Server.FileManager;
+using OSL_Server.Pages.ChampSelect;
+using OSL_Server.Pages.InGame;
+using OSL_Server.Pages.Runes;
+using OSL_Server.Pages.EndGame;
+using System.Net.Http.Json;
+using OSL_Server.DataLoader.WebApiRiot;
namespace OSL_Server.Pages
{
@@ -18,6 +24,16 @@ public class ConfigOverlayText
[Required]
[Range(0, 65535, ErrorMessage = "Accommodation invalid (1-65535).")]
public int Port { get; set; } = 45678;
+
+ [Required]
+ [StringLength(42, MinimumLength = 42, ErrorMessage = "API key is incorect (42 character).")]
+ public string WebRiotApiKey { get; set; }
+ }
+
+ public static void WebRiotApiKeySubmit()
+ {
+ WebApiRiot.apiKey = OverlayText.WebRiotApiKey;
+ _logger.log(LoggingLevel.INFO, "WebRiotApiKeySubmit()", $"Web riot api key change : {WebApiRiot.apiKey}");
}
private async Task LoadFiles(InputFileChangeEventArgs e)
@@ -371,11 +387,537 @@ private async Task LoadFileInGameView3()
fileSelected = null;
StateHasChanged();
- _logger.log(LoggingLevel.INFO, "LoadFileInGameView3()", "Configuration View3 Loaded");
+ _logger.log(LoggingLevel.INFO, "LoadFileInGameView3()", "Configuration In game View3 Loaded");
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "LoadFileInGameView3()", "Load In game view 3 error : " + e.Message);
+ }
+ }
+ }
+
+ private async Task LoadFileEndGameView1()
+ {
+ if (fileSelected is not null)
+ {
+ try
+ {
+ MemoryStream ms = new MemoryStream();
+ await fileSelected.OpenReadStream().CopyToAsync(ms);
+ string content = System.Text.Encoding.UTF8.GetString(ms.ToArray());
+ dynamic jsonContent = JsonConvert.DeserializeObject(content);
+ //EndGameView1Page.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ //EndGameView1Page.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ EndGameView1Page.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ EndGameView1Page.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ EndGameView1Page.formatingData.BackgroundColor = jsonContent.BackgroundColor;
+ EndGameView1Page.formatingData.BackgroundColorDeg = jsonContent.BackgroundColorDeg;
+ EndGameView1Page.formatingData.BackgroundColorColor1 = jsonContent.BackgroundColorColor1;
+ EndGameView1Page.formatingData.BackgroundColorPercent1 = jsonContent.BackgroundColorPercent1;
+ EndGameView1Page.formatingData.BackgroundColorColor2 = jsonContent.BackgroundColorColor2;
+ EndGameView1Page.formatingData.BackgroundColorPercent2 = jsonContent.BackgroundColorPercent2;
+ EndGameView1Page.formatingData.TopBarBackgroundColor = jsonContent.TopBarBackgroundColor;
+ EndGameView1Page.formatingData.TopBarBackgroundColorDeg = jsonContent.TopBarBackgroundColorDeg;
+ EndGameView1Page.formatingData.TopBarBackgroundColorColor1 = jsonContent.TopBarBackgroundColorColor1;
+ EndGameView1Page.formatingData.TopBarBackgroundColorPercent1 = jsonContent.TopBarBackgroundColorPercent1;
+ EndGameView1Page.formatingData.TopBarBackgroundColorColor2 = jsonContent.TopBarBackgroundColorColor2;
+ EndGameView1Page.formatingData.TopBarBackgroundColorPercent2 = jsonContent.TopBarBackgroundColorPercent2;
+ EndGameView1Page.formatingData.TopBarGradiant = jsonContent.TopBarGradiant;
+ EndGameView1Page.formatingData.TopBarBorderColor = jsonContent.TopBarBorderColor;
+ EndGameView1Page.formatingData.TopBarTimerText = jsonContent.TopBarTimerText;
+ EndGameView1Page.formatingData.TopBarTimerTextColor = jsonContent.TopBarTimerTextColor;
+ EndGameView1Page.formatingData.TopBarTimerColor = jsonContent.TopBarTimerColor;
+ EndGameView1Page.formatingData.TopBarBlueTeamName = jsonContent.TopBarBlueTeamName;
+ EndGameView1Page.formatingData.TopBarBlueTeamNameColor = jsonContent.TopBarBlueTeamNameColor;
+ EndGameView1Page.formatingData.TopBarRedTeamName = jsonContent.TopBarRedTeamName;
+ EndGameView1Page.formatingData.TopBarRedTeamNameColor = jsonContent.TopBarRedTeamNameColor;
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColor = jsonContent.ChampionInfoBackgroundColor;
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColorDeg = jsonContent.ChampionInfoBackgroundColorDeg;
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor1 = jsonContent.ChampionInfoBackgroundColorColor1;
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent1 = jsonContent.ChampionInfoBackgroundColorPercent1;
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor2 = jsonContent.ChampionInfoBackgroundColorColor2;
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent2 = jsonContent.ChampionInfoBackgroundColorPercent2;
+ EndGameView1Page.formatingData.ChampionInfoGradiant = jsonContent.ChampionInfoGradiant;
+ EndGameView1Page.formatingData.ChampionInfoBorderColor = jsonContent.ChampionInfoBorderColor;
+ EndGameView1Page.formatingData.ChampionInfoText = jsonContent.ChampionInfoText;
+ EndGameView1Page.formatingData.ChampionInfoTextColor = jsonContent.ChampionInfoTextColor;
+ EndGameView1Page.formatingData.ChampionInfoBlueBarColor = jsonContent.ChampionInfoBlueBarColor;
+ EndGameView1Page.formatingData.ChampionInfoRedBarColor = jsonContent.ChampionInfoRedBarColor;
+ EndGameView1Page.formatingData.ChampionInfoBlueDegaTextColor = jsonContent.ChampionInfoBlueDegaTextColor;
+ EndGameView1Page.formatingData.ChampionInfoRedDegaTextColor = jsonContent.ChampionInfoRedDegaTextColor;
+ EndGameView1Page.formatingData.BansBackgroundColor = jsonContent.BansBackgroundColor;
+ EndGameView1Page.formatingData.BansBackgroundColorDeg = jsonContent.BansBackgroundColorDeg;
+ EndGameView1Page.formatingData.BansBackgroundColorColor1 = jsonContent.BansBackgroundColorColor1;
+ EndGameView1Page.formatingData.BansBackgroundColorPercent1 = jsonContent.BansBackgroundColorPercent1;
+ EndGameView1Page.formatingData.BansBackgroundColorColor2 = jsonContent.BansBackgroundColorColor2;
+ EndGameView1Page.formatingData.BansBackgroundColorPercent2 = jsonContent.BansBackgroundColorPercent2;
+ EndGameView1Page.formatingData.BansGradiant = jsonContent.BansGradiant;
+ EndGameView1Page.formatingData.BansBorderColor = jsonContent.BansBorderColor;
+ EndGameView1Page.formatingData.BansTextColor = jsonContent.BansTextColor;
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColor = jsonContent.GlobalStatsBackgroundColor;
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColorDeg = jsonContent.GlobalStatsBackgroundColorDeg;
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor1 = jsonContent.GlobalStatsBackgroundColorColor1;
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent1 = jsonContent.GlobalStatsBackgroundColorPercent1;
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor2 = jsonContent.GlobalStatsBackgroundColorColor2;
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent2 = jsonContent.GlobalStatsBackgroundColorPercent2;
+ EndGameView1Page.formatingData.GlobalStatsGradiant = jsonContent.GlobalStatsGradiant;
+ EndGameView1Page.formatingData.GlobalStatsBorderColor = jsonContent.GlobalStatsBorderColor;
+ EndGameView1Page.formatingData.GlobalStatsTextColor = jsonContent.GlobalStatsTextColor;
+ EndGameView1Page.formatingData.GlobalStatsBlueTextColor = jsonContent.GlobalStatsBlueTextColor;
+ EndGameView1Page.formatingData.GlobalStatsRedTextColor = jsonContent.GlobalStatsRedTextColor;
+ EndGameView1Page.formatingData.GoldDiffBackgroundColor = jsonContent.GoldDiffBackgroundColor;
+ EndGameView1Page.formatingData.GoldDiffBackgroundColorDeg = jsonContent.GoldDiffBackgroundColorDeg;
+ EndGameView1Page.formatingData.GoldDiffBackgroundColorColor1 = jsonContent.GoldDiffBackgroundColorColor1;
+ EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent1 = jsonContent.GoldDiffBackgroundColorPercent1;
+ EndGameView1Page.formatingData.GoldDiffBackgroundColorColor2 = jsonContent.GoldDiffBackgroundColorColor2;
+ EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent2 = jsonContent.GoldDiffBackgroundColorPercent2;
+ EndGameView1Page.formatingData.GoldDiffGradiant = jsonContent.GoldDiffGradiant;
+ EndGameView1Page.formatingData.GoldDiffBorderColor = jsonContent.GoldDiffBorderColor;
+ EndGameView1Page.formatingData.GoldDiffText = jsonContent.GoldDiffText;
+ EndGameView1Page.formatingData.GoldDiffTextColor = jsonContent.GoldDiffTextColor;
+ EndGameView1Page.formatingData.GoldDiffBlueTextGoldColor = jsonContent.GoldDiffBlueTextGoldColor;
+ EndGameView1Page.formatingData.GoldDiffRedTextGoldColor = jsonContent.GoldDiffRedTextGoldColor;
+ EndGameView1Page.formatingData.GoldDiffZeroTextGoldColor = jsonContent.GoldDiffZeroTextGoldColor;
+ EndGameView1Page.formatingData.GoldDiffBluePointGoldColor = jsonContent.GoldDiffBluePointGoldColor;
+ EndGameView1Page.formatingData.GoldDiffRedPointGoldColor = jsonContent.GoldDiffRedPointGoldColor;
+ EndGameView1Page.formatingData.GoldDiffZeroPointGoldColor = jsonContent.GoldDiffZeroPointGoldColor;
+ EndGameView1Page.formatingData.GoldDiffStartEndPointGoldColor = jsonContent.GoldDiffStartEndPointGoldColor;
+ EndGameView1Page.formatingData.GoldDiffLinkPointGoldColor = jsonContent.GoldDiffLinkPointGoldColor;
+ EndGameView1Page.formatingData.GoldDiffBarColor = jsonContent.GoldDiffBarColor;
+
+
+ fileSelected = null;
+ StateHasChanged();
+ _logger.log(LoggingLevel.INFO, "LoadFileEndGameView3()", "Configuration End game View1 Loaded");
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "LoadFileEndGameView3()", "Load end game View1 error : " + e.Message);
+ }
+ }
+ }
+
+ private async Task LoadFileEndGameView2()
+ {
+ if (fileSelected is not null)
+ {
+ try
+ {
+ MemoryStream ms = new MemoryStream();
+ await fileSelected.OpenReadStream().CopyToAsync(ms);
+ string content = System.Text.Encoding.UTF8.GetString(ms.ToArray());
+ dynamic jsonContent = JsonConvert.DeserializeObject(content);
+ //EndGameView2Page.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ //EndGameView2Page.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ EndGameView2Page.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ EndGameView2Page.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ EndGameView2Page.formatingData.BackgroundColor = jsonContent.BackgroundColor;
+ EndGameView2Page.formatingData.BackgroundColorDeg = jsonContent.BackgroundColorDeg;
+ EndGameView2Page.formatingData.BackgroundColorColor1 = jsonContent.BackgroundColorColor1;
+ EndGameView2Page.formatingData.BackgroundColorPercent1 = jsonContent.BackgroundColorPercent1;
+ EndGameView2Page.formatingData.BackgroundColorColor2 = jsonContent.BackgroundColorColor2;
+ EndGameView2Page.formatingData.BackgroundColorPercent2 = jsonContent.BackgroundColorPercent2;
+ EndGameView2Page.formatingData.TopBarBackgroundColor = jsonContent.TopBarBackgroundColor;
+ EndGameView2Page.formatingData.TopBarBackgroundColorDeg = jsonContent.TopBarBackgroundColorDeg;
+ EndGameView2Page.formatingData.TopBarBackgroundColorColor1 = jsonContent.TopBarBackgroundColorColor1;
+ EndGameView2Page.formatingData.TopBarBackgroundColorPercent1 = jsonContent.TopBarBackgroundColorPercent1;
+ EndGameView2Page.formatingData.TopBarBackgroundColorColor2 = jsonContent.TopBarBackgroundColorColor2;
+ EndGameView2Page.formatingData.TopBarBackgroundColorPercent2 = jsonContent.TopBarBackgroundColorPercent2;
+ EndGameView2Page.formatingData.TopBarGradiant = jsonContent.TopBarGradiant;
+ EndGameView2Page.formatingData.TopBarBorderColor = jsonContent.TopBarBorderColor;
+ EndGameView2Page.formatingData.TopBarTimerText = jsonContent.TopBarTimerText;
+ EndGameView2Page.formatingData.TopBarTimerTextColor = jsonContent.TopBarTimerTextColor;
+ EndGameView2Page.formatingData.TopBarTimerColor = jsonContent.TopBarTimerColor;
+ EndGameView2Page.formatingData.TopBarBlueTeamName = jsonContent.TopBarBlueTeamName;
+ EndGameView2Page.formatingData.TopBarBlueTeamNameColor = jsonContent.TopBarBlueTeamNameColor;
+ EndGameView2Page.formatingData.TopBarRedTeamName = jsonContent.TopBarRedTeamName;
+ EndGameView2Page.formatingData.TopBarRedTeamNameColor = jsonContent.TopBarRedTeamNameColor;
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColor = jsonContent.ChampionInfoBackgroundColor;
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColorDeg = jsonContent.ChampionInfoBackgroundColorDeg;
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor1 = jsonContent.ChampionInfoBackgroundColorColor1;
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent1 = jsonContent.ChampionInfoBackgroundColorPercent1;
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor2 = jsonContent.ChampionInfoBackgroundColorColor2;
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent2 = jsonContent.ChampionInfoBackgroundColorPercent2;
+ EndGameView2Page.formatingData.ChampionInfoGradiant = jsonContent.ChampionInfoGradiant;
+ EndGameView2Page.formatingData.ChampionInfoBorderColor = jsonContent.ChampionInfoBorderColor;
+ EndGameView2Page.formatingData.ChampionInfoText = jsonContent.ChampionInfoText;
+ EndGameView2Page.formatingData.ChampionInfoTextColor = jsonContent.ChampionInfoTextColor;
+ EndGameView2Page.formatingData.ChampionInfoBlueBarColor = jsonContent.ChampionInfoBlueBarColor;
+ EndGameView2Page.formatingData.ChampionInfoRedBarColor = jsonContent.ChampionInfoRedBarColor;
+ EndGameView2Page.formatingData.ChampionInfoBlueDegaTextColor = jsonContent.ChampionInfoBlueDegaTextColor;
+ EndGameView2Page.formatingData.ChampionInfoRedDegaTextColor = jsonContent.ChampionInfoRedDegaTextColor;
+ EndGameView2Page.formatingData.BansBackgroundColor = jsonContent.BansBackgroundColor;
+ EndGameView2Page.formatingData.BansBackgroundColorDeg = jsonContent.BansBackgroundColorDeg;
+ EndGameView2Page.formatingData.BansBackgroundColorColor1 = jsonContent.BansBackgroundColorColor1;
+ EndGameView2Page.formatingData.BansBackgroundColorPercent1 = jsonContent.BansBackgroundColorPercent1;
+ EndGameView2Page.formatingData.BansBackgroundColorColor2 = jsonContent.BansBackgroundColorColor2;
+ EndGameView2Page.formatingData.BansBackgroundColorPercent2 = jsonContent.BansBackgroundColorPercent2;
+ EndGameView2Page.formatingData.BansGradiant = jsonContent.BansGradiant;
+ EndGameView2Page.formatingData.BansBorderColor = jsonContent.BansBorderColor;
+ EndGameView2Page.formatingData.BansTextColor = jsonContent.BansTextColor;
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColor = jsonContent.GlobalStatsBackgroundColor;
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColorDeg = jsonContent.GlobalStatsBackgroundColorDeg;
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor1 = jsonContent.GlobalStatsBackgroundColorColor1;
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent1 = jsonContent.GlobalStatsBackgroundColorPercent1;
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor2 = jsonContent.GlobalStatsBackgroundColorColor2;
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent2 = jsonContent.GlobalStatsBackgroundColorPercent2;
+ EndGameView2Page.formatingData.GlobalStatsGradiant = jsonContent.GlobalStatsGradiant;
+ EndGameView2Page.formatingData.GlobalStatsBorderColor = jsonContent.GlobalStatsBorderColor;
+ EndGameView2Page.formatingData.GlobalStatsTextColor = jsonContent.GlobalStatsTextColor;
+ EndGameView2Page.formatingData.GlobalStatsBlueTextColor = jsonContent.GlobalStatsBlueTextColor;
+ EndGameView2Page.formatingData.GlobalStatsRedTextColor = jsonContent.GlobalStatsRedTextColor;
+ EndGameView2Page.formatingData.GoldDiffBackgroundColor = jsonContent.GoldDiffBackgroundColor;
+ EndGameView2Page.formatingData.GoldDiffBackgroundColorDeg = jsonContent.GoldDiffBackgroundColorDeg;
+ EndGameView2Page.formatingData.GoldDiffBackgroundColorColor1 = jsonContent.GoldDiffBackgroundColorColor1;
+ EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent1 = jsonContent.GoldDiffBackgroundColorPercent1;
+ EndGameView2Page.formatingData.GoldDiffBackgroundColorColor2 = jsonContent.GoldDiffBackgroundColorColor2;
+ EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent2 = jsonContent.GoldDiffBackgroundColorPercent2;
+ EndGameView2Page.formatingData.GoldDiffGradiant = jsonContent.GoldDiffGradiant;
+ EndGameView2Page.formatingData.GoldDiffBorderColor = jsonContent.GoldDiffBorderColor;
+ EndGameView2Page.formatingData.GoldDiffText = jsonContent.GoldDiffText;
+ EndGameView2Page.formatingData.GoldDiffTextColor = jsonContent.GoldDiffTextColor;
+
+
+ fileSelected = null;
+ StateHasChanged();
+ _logger.log(LoggingLevel.INFO, "LoadFileEndGameView2()", "Configuration End game View2 Loaded");
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "LoadFileEndGameView2()", "Load end game View2 error : " + e.Message);
+ }
+ }
+ }
+
+ private async Task LoadFileEndGameView3()
+ {
+ if (fileSelected is not null)
+ {
+ try
+ {
+ MemoryStream ms = new MemoryStream();
+ await fileSelected.OpenReadStream().CopyToAsync(ms);
+ string content = System.Text.Encoding.UTF8.GetString(ms.ToArray());
+ dynamic jsonContent = JsonConvert.DeserializeObject(content);
+ //EndGameView3Page.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ //EndGameView3Page.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ EndGameView3Page.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ EndGameView3Page.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ EndGameView3Page.formatingData.BackgroundColor = jsonContent.BackgroundColor;
+ EndGameView3Page.formatingData.BackgroundColorDeg = jsonContent.BackgroundColorDeg;
+ EndGameView3Page.formatingData.BackgroundColorColor1 = jsonContent.BackgroundColorColor1;
+ EndGameView3Page.formatingData.BackgroundColorPercent1 = jsonContent.BackgroundColorPercent1;
+ EndGameView3Page.formatingData.BackgroundColorColor2 = jsonContent.BackgroundColorColor2;
+ EndGameView3Page.formatingData.BackgroundColorPercent2 = jsonContent.BackgroundColorPercent2;
+ EndGameView3Page.formatingData.TopBarBackgroundColor = jsonContent.TopBarBackgroundColor;
+ EndGameView3Page.formatingData.TopBarBackgroundColorDeg = jsonContent.TopBarBackgroundColorDeg;
+ EndGameView3Page.formatingData.TopBarBackgroundColorColor1 = jsonContent.TopBarBackgroundColorColor1;
+ EndGameView3Page.formatingData.TopBarBackgroundColorPercent1 = jsonContent.TopBarBackgroundColorPercent1;
+ EndGameView3Page.formatingData.TopBarBackgroundColorColor2 = jsonContent.TopBarBackgroundColorColor2;
+ EndGameView3Page.formatingData.TopBarBackgroundColorPercent2 = jsonContent.TopBarBackgroundColorPercent2;
+ EndGameView3Page.formatingData.TopBarGradiant = jsonContent.TopBarGradiant;
+ EndGameView3Page.formatingData.TopBarBorderColor = jsonContent.TopBarBorderColor;
+ EndGameView3Page.formatingData.TopBarTimerText = jsonContent.TopBarTimerText;
+ EndGameView3Page.formatingData.TopBarTimerTextColor = jsonContent.TopBarTimerTextColor;
+ EndGameView3Page.formatingData.TopBarTimerColor = jsonContent.TopBarTimerColor;
+ EndGameView3Page.formatingData.TopBarBlueTeamName = jsonContent.TopBarBlueTeamName;
+ EndGameView3Page.formatingData.TopBarBlueTeamNameColor = jsonContent.TopBarBlueTeamNameColor;
+ EndGameView3Page.formatingData.TopBarRedTeamName = jsonContent.TopBarRedTeamName;
+ EndGameView3Page.formatingData.TopBarRedTeamNameColor = jsonContent.TopBarRedTeamNameColor;
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColor = jsonContent.ChampionInfoBackgroundColor;
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColorDeg = jsonContent.ChampionInfoBackgroundColorDeg;
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor1 = jsonContent.ChampionInfoBackgroundColorColor1;
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent1 = jsonContent.ChampionInfoBackgroundColorPercent1;
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor2 = jsonContent.ChampionInfoBackgroundColorColor2;
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent2 = jsonContent.ChampionInfoBackgroundColorPercent2;
+ EndGameView3Page.formatingData.ChampionInfoGradiant = jsonContent.ChampionInfoGradiant;
+ EndGameView3Page.formatingData.ChampionInfoBorderColor = jsonContent.ChampionInfoBorderColor;
+ EndGameView3Page.formatingData.ChampionInfoText = jsonContent.ChampionInfoText;
+ EndGameView3Page.formatingData.ChampionInfoTextColor = jsonContent.ChampionInfoTextColor;
+ EndGameView3Page.formatingData.ChampionInfoBlueBarColor = jsonContent.ChampionInfoBlueBarColor;
+ EndGameView3Page.formatingData.ChampionInfoRedBarColor = jsonContent.ChampionInfoRedBarColor;
+ EndGameView3Page.formatingData.ChampionInfoBlueDegaTextColor = jsonContent.ChampionInfoBlueDegaTextColor;
+ EndGameView3Page.formatingData.ChampionInfoRedDegaTextColor = jsonContent.ChampionInfoRedDegaTextColor;
+ EndGameView3Page.formatingData.BansBackgroundColor = jsonContent.BansBackgroundColor;
+ EndGameView3Page.formatingData.BansBackgroundColorDeg = jsonContent.BansBackgroundColorDeg;
+ EndGameView3Page.formatingData.BansBackgroundColorColor1 = jsonContent.BansBackgroundColorColor1;
+ EndGameView3Page.formatingData.BansBackgroundColorPercent1 = jsonContent.BansBackgroundColorPercent1;
+ EndGameView3Page.formatingData.BansBackgroundColorColor2 = jsonContent.BansBackgroundColorColor2;
+ EndGameView3Page.formatingData.BansBackgroundColorPercent2 = jsonContent.BansBackgroundColorPercent2;
+ EndGameView3Page.formatingData.BansGradiant = jsonContent.BansGradiant;
+ EndGameView3Page.formatingData.BansBorderColor = jsonContent.BansBorderColor;
+ EndGameView3Page.formatingData.BansTextColor = jsonContent.BansTextColor;
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColor = jsonContent.GlobalStatsBackgroundColor;
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColorDeg = jsonContent.GlobalStatsBackgroundColorDeg;
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor1 = jsonContent.GlobalStatsBackgroundColorColor1;
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent1 = jsonContent.GlobalStatsBackgroundColorPercent1;
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor2 = jsonContent.GlobalStatsBackgroundColorColor2;
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent2 = jsonContent.GlobalStatsBackgroundColorPercent2;
+ EndGameView3Page.formatingData.GlobalStatsGradiant = jsonContent.GlobalStatsGradiant;
+ EndGameView3Page.formatingData.GlobalStatsBorderColor = jsonContent.GlobalStatsBorderColor;
+ EndGameView3Page.formatingData.GlobalStatsSeparationColor = jsonContent.GlobalStatsSeparationColor;
+ EndGameView3Page.formatingData.GlobalStatsTextColor = jsonContent.GlobalStatsTextColor;
+ EndGameView3Page.formatingData.GlobalStatsBlueTextColor = jsonContent.GlobalStatsBlueTextColor;
+ EndGameView3Page.formatingData.GlobalStatsRedTextColor = jsonContent.GlobalStatsRedTextColor;
+ EndGameView3Page.formatingData.GoldDiffBackgroundColor = jsonContent.GoldDiffBackgroundColor;
+ EndGameView3Page.formatingData.GoldDiffBackgroundColorDeg = jsonContent.GoldDiffBackgroundColorDeg;
+ EndGameView3Page.formatingData.GoldDiffBackgroundColorColor1 = jsonContent.GoldDiffBackgroundColorColor1;
+ EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent1 = jsonContent.GoldDiffBackgroundColorPercent1;
+ EndGameView3Page.formatingData.GoldDiffBackgroundColorColor2 = jsonContent.GoldDiffBackgroundColorColor2;
+ EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent2 = jsonContent.GoldDiffBackgroundColorPercent2;
+ EndGameView3Page.formatingData.GoldDiffGradiant = jsonContent.GoldDiffGradiant;
+ EndGameView3Page.formatingData.GoldDiffBorderColor = jsonContent.GoldDiffBorderColor;
+ EndGameView3Page.formatingData.GoldDiffText = jsonContent.GoldDiffText;
+ EndGameView3Page.formatingData.GoldDiffTextColor = jsonContent.GoldDiffTextColor;
+
+
+ fileSelected = null;
+ StateHasChanged();
+ _logger.log(LoggingLevel.INFO, "LoadFileEndGameView3()", "Configuration End game View3 Loaded");
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "LoadFileEndGameView3()", "Load end game View3 error : " + e.Message);
+ }
+ }
+ }
+
+ private async Task LoadFileRunesAdc()
+ {
+ if (fileSelected is not null)
+ {
+ try
+ {
+ MemoryStream ms = new MemoryStream();
+ await fileSelected.OpenReadStream().CopyToAsync(ms);
+ string content = System.Text.Encoding.UTF8.GetString(ms.ToArray());
+ dynamic jsonContent = JsonConvert.DeserializeObject(content);
+ //RunesAdcPage.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ //RunesAdcPage.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ RunesAdcPage.formatingData.BackgroudGradient = jsonContent.BackgroudGradient;
+ RunesAdcPage.formatingData.BackgroudGradientDeg = jsonContent.BackgroudGradientDeg;
+ RunesAdcPage.formatingData.BackgroudGradientColor1 = jsonContent.BackgroudGradientColor1;
+ RunesAdcPage.formatingData.BackgroudGradientPercent1 = jsonContent.BackgroudGradientPercent1;
+ RunesAdcPage.formatingData.BackgroudGradientColor2 = jsonContent.BackgroudGradientColor2;
+ RunesAdcPage.formatingData.BackgroudGradientPercent2 = jsonContent.BackgroudGradientPercent2;
+ RunesAdcPage.formatingData.OverlayColorBackgroudGradient = jsonContent.OverlayColorBackgroudGradient;
+ RunesAdcPage.formatingData.BlueSideColorTextSummoner = jsonContent.BlueSideColorTextSummoner;
+ RunesAdcPage.formatingData.RedSideColorTextSummoner = jsonContent.RedSideColorTextSummoner;
+ RunesAdcPage.formatingData.BlueSideColorBorderChampion = jsonContent.BlueSideColorBorderChampion;
+ RunesAdcPage.formatingData.RedSideColorBorderChampion = jsonContent.RedSideColorBorderChampion;
+ RunesAdcPage.formatingData.BlueSideColorSeparationBar = jsonContent.BlueSideColorSeparationBar;
+ RunesAdcPage.formatingData.RedSideColorSeparationBar = jsonContent.RedSideColorSeparationBar;
+ RunesAdcPage.formatingData.BakgroundPicture = jsonContent.BakgroundPicture;
+ RunesAdcPage.formatingData.LanePicture = jsonContent.LanePicture;
+
+ fileSelected = null;
+ StateHasChanged();
+ _logger.log(LoggingLevel.INFO, "LoadFileRunesAdc()", "Configuration Runes Adc Loaded");
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "LoadFileRunesAdc()", "Load Runes Adc error : " + e.Message);
+ }
+ }
+ }
+ private async Task LoadFileRunesAdcSupp()
+ {
+ if (fileSelected is not null)
+ {
+ try
+ {
+ MemoryStream ms = new MemoryStream();
+ await fileSelected.OpenReadStream().CopyToAsync(ms);
+ string content = System.Text.Encoding.UTF8.GetString(ms.ToArray());
+ dynamic jsonContent = JsonConvert.DeserializeObject(content);
+ //RunesAdcSuppPage.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ //RunesAdcSuppPage.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ RunesAdcSuppPage.formatingData.BackgroudGradient = jsonContent.BackgroudGradient;
+ RunesAdcSuppPage.formatingData.OverlayColorBackgroudGradient = jsonContent.OverlayColorBackgroudGradient;
+ RunesAdcSuppPage.formatingData.BlueSideColorTextSummoner = jsonContent.BlueSideColorTextSummoner;
+ RunesAdcSuppPage.formatingData.RedSideColorTextSummoner = jsonContent.RedSideColorTextSummoner;
+ RunesAdcSuppPage.formatingData.BlueSideColorBorderChampion = jsonContent.BlueSideColorBorderChampion;
+ RunesAdcSuppPage.formatingData.RedSideColorBorderChampion = jsonContent.RedSideColorBorderChampion;
+ RunesAdcSuppPage.formatingData.BlueSideColorSeparationBar = jsonContent.BlueSideColorSeparationBar;
+ RunesAdcSuppPage.formatingData.RedSideColorSeparationBar = jsonContent.RedSideColorSeparationBar;
+ RunesAdcSuppPage.formatingData.BakgroundPicture = jsonContent.BakgroundPicture;
+ RunesAdcSuppPage.formatingData.LanePictureAdc = jsonContent.LanePictureAdc;
+ RunesAdcSuppPage.formatingData.LanePictureSupp = jsonContent.LanePictureSupp;
+
+ fileSelected = null;
+ StateHasChanged();
+ _logger.log(LoggingLevel.INFO, "LoadFileRunesAdcSupp()", "Configuration Runes AdcSupp Loaded");
}
catch (Exception e)
{
- _logger.log(LoggingLevel.ERROR, "LoadFileInGameView3()", "Load view 1 error : " + e.Message);
+ _logger.log(LoggingLevel.ERROR, "LoadFileRunesAdcSupp()", "Load Runes AdcSupp error : " + e.Message);
+ }
+ }
+ }
+ private async Task LoadFileRunesJungle()
+ {
+ if (fileSelected is not null)
+ {
+ try
+ {
+ MemoryStream ms = new MemoryStream();
+ await fileSelected.OpenReadStream().CopyToAsync(ms);
+ string content = System.Text.Encoding.UTF8.GetString(ms.ToArray());
+ dynamic jsonContent = JsonConvert.DeserializeObject(content);
+ //RunesJunglePage.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ //RunesJunglePage.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ RunesJunglePage.formatingData.BackgroudGradient = jsonContent.BackgroudGradient;
+ RunesJunglePage.formatingData.OverlayColorBackgroudGradient = jsonContent.OverlayColorBackgroudGradient;
+ RunesJunglePage.formatingData.BlueSideColorTextSummoner = jsonContent.BlueSideColorTextSummoner;
+ RunesJunglePage.formatingData.RedSideColorTextSummoner = jsonContent.RedSideColorTextSummoner;
+ RunesJunglePage.formatingData.BlueSideColorBorderChampion = jsonContent.BlueSideColorBorderChampion;
+ RunesJunglePage.formatingData.RedSideColorBorderChampion = jsonContent.RedSideColorBorderChampion;
+ RunesJunglePage.formatingData.BlueSideColorSeparationBar = jsonContent.BlueSideColorSeparationBar;
+ RunesJunglePage.formatingData.RedSideColorSeparationBar = jsonContent.RedSideColorSeparationBar;
+ RunesJunglePage.formatingData.BakgroundPicture = jsonContent.BakgroundPicture;
+ RunesJunglePage.formatingData.LanePicture = jsonContent.LanePicture;
+
+ fileSelected = null;
+ StateHasChanged();
+ _logger.log(LoggingLevel.INFO, "LoadFileRunesJungle()", "Configuration Runes Jungle Loaded");
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "LoadFileRunesJungle()", "Load Runes Jungle error : " + e.Message);
+ }
+ }
+ }
+ private async Task LoadFileRunesMid()
+ {
+ if (fileSelected is not null)
+ {
+ try
+ {
+ MemoryStream ms = new MemoryStream();
+ await fileSelected.OpenReadStream().CopyToAsync(ms);
+ string content = System.Text.Encoding.UTF8.GetString(ms.ToArray());
+ dynamic jsonContent = JsonConvert.DeserializeObject(content);
+ //RunesMidPage.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ //RunesMidPage.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ RunesMidPage.formatingData.BackgroudGradient = jsonContent.BackgroudGradient;
+ RunesMidPage.formatingData.OverlayColorBackgroudGradient = jsonContent.OverlayColorBackgroudGradient;
+ RunesMidPage.formatingData.BlueSideColorTextSummoner = jsonContent.BlueSideColorTextSummoner;
+ RunesMidPage.formatingData.RedSideColorTextSummoner = jsonContent.RedSideColorTextSummoner;
+ RunesMidPage.formatingData.BlueSideColorBorderChampion = jsonContent.BlueSideColorBorderChampion;
+ RunesMidPage.formatingData.RedSideColorBorderChampion = jsonContent.RedSideColorBorderChampion;
+ RunesMidPage.formatingData.BlueSideColorSeparationBar = jsonContent.BlueSideColorSeparationBar;
+ RunesMidPage.formatingData.RedSideColorSeparationBar = jsonContent.RedSideColorSeparationBar;
+ RunesMidPage.formatingData.BakgroundPicture = jsonContent.BakgroundPicture;
+ RunesMidPage.formatingData.LanePicture = jsonContent.LanePicture;
+
+ fileSelected = null;
+ StateHasChanged();
+ _logger.log(LoggingLevel.INFO, "LoadFileRunesMid()", "Configuration Runes Mid Loaded");
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "LoadFileRunesMid()", "Load Runes Mid error : " + e.Message);
+ }
+ }
+ }
+ private async Task LoadFileRunesSupp()
+ {
+ if (fileSelected is not null)
+ {
+ try
+ {
+ MemoryStream ms = new MemoryStream();
+ await fileSelected.OpenReadStream().CopyToAsync(ms);
+ string content = System.Text.Encoding.UTF8.GetString(ms.ToArray());
+ dynamic jsonContent = JsonConvert.DeserializeObject(content);
+ //RunesSuppPage.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ //RunesSuppPage.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ RunesSuppPage.formatingData.BackgroudGradient = jsonContent.BackgroudGradient;
+ RunesSuppPage.formatingData.OverlayColorBackgroudGradient = jsonContent.OverlayColorBackgroudGradient;
+ RunesSuppPage.formatingData.BlueSideColorTextSummoner = jsonContent.BlueSideColorTextSummoner;
+ RunesSuppPage.formatingData.RedSideColorTextSummoner = jsonContent.RedSideColorTextSummoner;
+ RunesSuppPage.formatingData.BlueSideColorBorderChampion = jsonContent.BlueSideColorBorderChampion;
+ RunesSuppPage.formatingData.RedSideColorBorderChampion = jsonContent.RedSideColorBorderChampion;
+ RunesSuppPage.formatingData.BlueSideColorSeparationBar = jsonContent.BlueSideColorSeparationBar;
+ RunesSuppPage.formatingData.RedSideColorSeparationBar = jsonContent.RedSideColorSeparationBar;
+ RunesSuppPage.formatingData.BakgroundPicture = jsonContent.BakgroundPicture;
+ RunesSuppPage.formatingData.LanePicture = jsonContent.LanePicture;
+ fileSelected = null;
+ StateHasChanged();
+ _logger.log(LoggingLevel.INFO, "LoadFileRunesSupp()", "Configuration Runes Supp Loaded");
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "LoadFileRunesSupp()", "Load Runes Supp error : " + e.Message);
+ }
+ }
+ }
+ private async Task LoadFileRunesTop()
+ {
+ if (fileSelected is not null)
+ {
+ try
+ {
+ MemoryStream ms = new MemoryStream();
+ await fileSelected.OpenReadStream().CopyToAsync(ms);
+ string content = System.Text.Encoding.UTF8.GetString(ms.ToArray());
+ dynamic jsonContent = JsonConvert.DeserializeObject(content);
+ //RunesTopPage.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ //RunesTopPage.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ RunesTopPage.formatingData.BackgroudGradient = jsonContent.BackgroudGradient;
+ RunesTopPage.formatingData.OverlayColorBackgroudGradient = jsonContent.OverlayColorBackgroudGradient;
+ RunesTopPage.formatingData.BlueSideColorTextSummoner = jsonContent.BlueSideColorTextSummoner;
+ RunesTopPage.formatingData.RedSideColorTextSummoner = jsonContent.RedSideColorTextSummoner;
+ RunesTopPage.formatingData.BlueSideColorBorderChampion = jsonContent.BlueSideColorBorderChampion;
+ RunesTopPage.formatingData.RedSideColorBorderChampion = jsonContent.RedSideColorBorderChampion;
+ RunesTopPage.formatingData.BlueSideColorSeparationBar = jsonContent.BlueSideColorSeparationBar;
+ RunesTopPage.formatingData.RedSideColorSeparationBar = jsonContent.RedSideColorSeparationBar;
+ RunesTopPage.formatingData.BakgroundPicture = jsonContent.BakgroundPicture;
+ RunesTopPage.formatingData.LanePicture = jsonContent.LanePicture;
+ fileSelected = null;
+ StateHasChanged();
+ _logger.log(LoggingLevel.INFO, "LoadFileRunesTop()", "Configuration Runes Top Loaded");
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "LoadFileRunesTop()", "Load Runes Top error : " + e.Message);
+ }
+ }
+ }
+
+ private async Task LoadFileRunesAll()
+ {
+ if (fileSelected is not null)
+ {
+ try
+ {
+ MemoryStream ms = new MemoryStream();
+ await fileSelected.OpenReadStream().CopyToAsync(ms);
+ string content = System.Text.Encoding.UTF8.GetString(ms.ToArray());
+ dynamic jsonContent = JsonConvert.DeserializeObject(content);
+ //RunesAllPage.formatingData.DefaultPatch = jsonContent.DefaultPatch;
+ //RunesAllPage.formatingData.DefaultRegion = jsonContent.DefaultRegion;
+ RunesAllPage.formatingData.BackgroudGradient = jsonContent.BackgroudGradient;
+ RunesAllPage.formatingData.OverlayColorBackgroudGradient = jsonContent.OverlayColorBackgroudGradient;
+ RunesAllPage.formatingData.BlueSideColorTextSummoner = jsonContent.BlueSideColorTextSummoner;
+ RunesAllPage.formatingData.RedSideColorTextSummoner = jsonContent.RedSideColorTextSummoner;
+ RunesAllPage.formatingData.BlueSideColorBorderChampion = jsonContent.BlueSideColorBorderChampion;
+ RunesAllPage.formatingData.RedSideColorBorderChampion = jsonContent.RedSideColorBorderChampion;
+ RunesAllPage.formatingData.BlueSideColorSeparationBar = jsonContent.BlueSideColorSeparationBar;
+ RunesAllPage.formatingData.RedSideColorSeparationBar = jsonContent.RedSideColorSeparationBar;
+ RunesAllPage.formatingData.BakgroundPicture = jsonContent.BakgroundPicture;
+ RunesAllPage.formatingData.LanePictureAdc = jsonContent.LanePictureAdc;
+ RunesAllPage.formatingData.LanePictureSupp = jsonContent.LanePictureSupp;
+ RunesAllPage.formatingData.LanePictureTop = jsonContent.LanePictureTop;
+ RunesAllPage.formatingData.LanePictureMid = jsonContent.LanePictureMid;
+ RunesAllPage.formatingData.LanePictureJungle = jsonContent.LanePictureJungle;
+ fileSelected = null;
+ StateHasChanged();
+ _logger.log(LoggingLevel.INFO, "LoadFileRunesAll()", "Configuration Runes all Loaded");
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "LoadFileRunesAll()", "Load Runes all error : " + e.Message);
}
}
}
@@ -677,8 +1219,8 @@ private string GenerateConfigFileInGameView3()
{
var data = new InGameView3Page.FormatingData
{
- DefaultPatch = InGameView2Page.formatingData.DefaultPatch,
- DefaultRegion = InGameView2Page.formatingData.DefaultRegion,
+ DefaultPatch = InGameView3Page.formatingData.DefaultPatch,
+ DefaultRegion = InGameView3Page.formatingData.DefaultRegion,
ReplayInfoFrame = InGameView3Page.formatingData.ReplayInfoFrame,
BluePlayerFrame = InGameView3Page.formatingData.BluePlayerFrame,
RedPlayerFrame = InGameView3Page.formatingData.RedPlayerFrame,
@@ -699,5 +1241,543 @@ private string GenerateConfigFileInGameView3()
return "/assets/ingame/configInGameView3.json";
}
}
+
+ private string GenerateConfigFileEndGameView1()
+ {
+ try
+ {
+ var data = new EndGameView1Page.FormatingData
+ {
+ DefaultPatch = EndGameView1Page.formatingData.DefaultPatch,
+ DefaultRegion = EndGameView1Page.formatingData.DefaultRegion,
+ BackgroundColor = EndGameView1Page.formatingData.BackgroundColor,
+ BackgroundColorDeg = EndGameView1Page.formatingData.BackgroundColorDeg,
+ BackgroundColorColor1 = EndGameView1Page.formatingData.BackgroundColorColor1,
+ BackgroundColorPercent1 = EndGameView1Page.formatingData.BackgroundColorPercent1,
+ BackgroundColorColor2 = EndGameView1Page.formatingData.BackgroundColorColor2,
+ BackgroundColorPercent2 = EndGameView1Page.formatingData.BackgroundColorPercent2,
+ TopBarBackgroundColor = EndGameView1Page.formatingData.TopBarBackgroundColor,
+ TopBarBackgroundColorDeg = EndGameView1Page.formatingData.TopBarBackgroundColorDeg,
+ TopBarBackgroundColorColor1 = EndGameView1Page.formatingData.TopBarBackgroundColorColor1,
+ TopBarBackgroundColorPercent1 = EndGameView1Page.formatingData.TopBarBackgroundColorPercent1,
+ TopBarBackgroundColorColor2 = EndGameView1Page.formatingData.TopBarBackgroundColorColor2,
+ TopBarBackgroundColorPercent2 = EndGameView1Page.formatingData.TopBarBackgroundColorPercent2,
+ TopBarGradiant = EndGameView1Page.formatingData.TopBarGradiant,
+ TopBarBorderColor = EndGameView1Page.formatingData.TopBarBorderColor,
+ TopBarTimerText = EndGameView1Page.formatingData.TopBarTimerText,
+ TopBarTimerTextColor = EndGameView1Page.formatingData.TopBarTimerTextColor,
+ TopBarTimerColor = EndGameView1Page.formatingData.TopBarTimerColor,
+ TopBarBlueTeamName = EndGameView1Page.formatingData.TopBarBlueTeamName,
+ TopBarBlueTeamScore = EndGameView1Page.formatingData.TopBarBlueTeamScore,
+ TopBarBlueTeamNameColor = EndGameView1Page.formatingData.TopBarBlueTeamNameColor,
+ TopBarBlueTeamScoreColor = EndGameView1Page.formatingData.TopBarBlueTeamScoreColor,
+ TopBarBlueTeamWinLossColor = EndGameView1Page.formatingData.TopBarBlueTeamWinLossColor,
+ TopBarRedTeamName = EndGameView1Page.formatingData.TopBarRedTeamName,
+ TopBarRedTeamScore = EndGameView1Page.formatingData.TopBarRedTeamScore,
+ TopBarRedTeamNameColor = EndGameView1Page.formatingData.TopBarRedTeamNameColor,
+ TopBarRedTeamScoreColor = EndGameView1Page.formatingData.TopBarRedTeamScoreColor,
+ TopBarRedTeamWinLossColor = EndGameView1Page.formatingData.TopBarRedTeamWinLossColor,
+ ChampionInfoBackgroundColor = EndGameView1Page.formatingData.ChampionInfoBackgroundColor,
+ ChampionInfoBackgroundColorDeg = EndGameView1Page.formatingData.ChampionInfoBackgroundColorDeg,
+ ChampionInfoBackgroundColorColor1 = EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor1,
+ ChampionInfoBackgroundColorPercent1 = EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent1,
+ ChampionInfoBackgroundColorColor2 = EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor2,
+ ChampionInfoBackgroundColorPercent2 = EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent2,
+ ChampionInfoGradiant = EndGameView1Page.formatingData.ChampionInfoGradiant,
+ ChampionInfoBorderColor = EndGameView1Page.formatingData.ChampionInfoBorderColor,
+ ChampionInfoText = EndGameView1Page.formatingData.ChampionInfoText,
+ ChampionInfoTextColor = EndGameView1Page.formatingData.ChampionInfoTextColor,
+ ChampionInfoBlueBarColor = EndGameView1Page.formatingData.ChampionInfoBlueBarColor,
+ ChampionInfoRedBarColor = EndGameView1Page.formatingData.ChampionInfoRedBarColor,
+ ChampionInfoBlueDegaTextColor = EndGameView1Page.formatingData.ChampionInfoBlueDegaTextColor,
+ ChampionInfoRedDegaTextColor = EndGameView1Page.formatingData.ChampionInfoRedDegaTextColor,
+ BansBackgroundColor = EndGameView1Page.formatingData.BansBackgroundColor,
+ BansBackgroundColorDeg = EndGameView1Page.formatingData.BansBackgroundColorDeg,
+ BansBackgroundColorColor1 = EndGameView1Page.formatingData.BansBackgroundColorColor1,
+ BansBackgroundColorPercent1 = EndGameView1Page.formatingData.BansBackgroundColorPercent1,
+ BansBackgroundColorColor2 = EndGameView1Page.formatingData.BansBackgroundColorColor2,
+ BansBackgroundColorPercent2 = EndGameView1Page.formatingData.BansBackgroundColorPercent2,
+ BansGradiant = EndGameView1Page.formatingData.BansGradiant,
+ BansBorderColor = EndGameView1Page.formatingData.BansBorderColor,
+ BansTextColor = EndGameView1Page.formatingData.BansTextColor,
+ GlobalStatsBackgroundColor = EndGameView1Page.formatingData.GlobalStatsBackgroundColor,
+ GlobalStatsBackgroundColorDeg = EndGameView1Page.formatingData.GlobalStatsBackgroundColorDeg,
+ GlobalStatsBackgroundColorColor1 = EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor1,
+ GlobalStatsBackgroundColorPercent1 = EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent1,
+ GlobalStatsBackgroundColorColor2 = EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor2,
+ GlobalStatsBackgroundColorPercent2 = EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent2,
+ GlobalStatsGradiant = EndGameView1Page.formatingData.GlobalStatsGradiant,
+ GlobalStatsBorderColor = EndGameView1Page.formatingData.GlobalStatsBorderColor,
+ GlobalStatsTextColor = EndGameView1Page.formatingData.GlobalStatsTextColor,
+ GlobalStatsBlueTextColor = EndGameView1Page.formatingData.GlobalStatsBlueTextColor,
+ GlobalStatsRedTextColor = EndGameView1Page.formatingData.GlobalStatsRedTextColor,
+ GoldDiffBackgroundColor = EndGameView1Page.formatingData.GoldDiffBackgroundColor,
+ GoldDiffBackgroundColorDeg = EndGameView1Page.formatingData.GoldDiffBackgroundColorDeg,
+ GoldDiffBackgroundColorColor1 = EndGameView1Page.formatingData.GoldDiffBackgroundColorColor1,
+ GoldDiffBackgroundColorPercent1 = EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent1,
+ GoldDiffBackgroundColorColor2 = EndGameView1Page.formatingData.GoldDiffBackgroundColorColor2,
+ GoldDiffBackgroundColorPercent2 = EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent2,
+ GoldDiffGradiant = EndGameView1Page.formatingData.GoldDiffGradiant,
+ GoldDiffBorderColor = EndGameView1Page.formatingData.GoldDiffBorderColor,
+ GoldDiffText = EndGameView1Page.formatingData.GoldDiffText,
+ GoldDiffTextColor = EndGameView1Page.formatingData.GoldDiffTextColor,
+ GoldDiffBlueTextGoldColor = EndGameView1Page.formatingData.GoldDiffBlueTextGoldColor,
+ GoldDiffRedTextGoldColor = EndGameView1Page.formatingData.GoldDiffRedTextGoldColor,
+ GoldDiffZeroTextGoldColor = EndGameView1Page.formatingData.GoldDiffZeroTextGoldColor,
+ GoldDiffBluePointGoldColor = EndGameView1Page.formatingData.GoldDiffBluePointGoldColor,
+ GoldDiffRedPointGoldColor = EndGameView1Page.formatingData.GoldDiffRedPointGoldColor,
+ GoldDiffZeroPointGoldColor = EndGameView1Page.formatingData.GoldDiffZeroPointGoldColor,
+ GoldDiffStartEndPointGoldColor = EndGameView1Page.formatingData.GoldDiffStartEndPointGoldColor,
+ GoldDiffLinkPointGoldColor = EndGameView1Page.formatingData.GoldDiffLinkPointGoldColor,
+ GoldDiffBarColor = EndGameView1Page.formatingData.GoldDiffBarColor
+ };
+ string jsonString = JsonConvert.SerializeObject(data);
+ FileManagerLocal.WriteInFile("./wwwroot/assets/endgame/configEndGameView1.json", jsonString);
+ _logger.log(LoggingLevel.INFO, "GenerateConfigFileEndGameView1()", "Generation ok");
+ return "/assets/endgame/configEndGameView1.json";
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "GenerateConfigFileEndGameView1()", "Error generation old version recive : " + e.Message);
+ return "/assets/endgame/configEndGameView1.json";
+ }
+ }
+
+ private string GenerateConfigFileEndGameView2()
+ {
+ try
+ {
+ var data = new EndGameView2Page.FormatingData
+ {
+ DefaultPatch = EndGameView2Page.formatingData.DefaultPatch,
+ DefaultRegion = EndGameView2Page.formatingData.DefaultRegion,
+ BackgroundColor = EndGameView2Page.formatingData.BackgroundColor,
+ BackgroundColorDeg = EndGameView2Page.formatingData.BackgroundColorDeg,
+ BackgroundColorColor1 = EndGameView2Page.formatingData.BackgroundColorColor1,
+ BackgroundColorPercent1 = EndGameView2Page.formatingData.BackgroundColorPercent1,
+ BackgroundColorColor2 = EndGameView2Page.formatingData.BackgroundColorColor2,
+ BackgroundColorPercent2 = EndGameView2Page.formatingData.BackgroundColorPercent2,
+ TopBarBackgroundColor = EndGameView2Page.formatingData.TopBarBackgroundColor,
+ TopBarBackgroundColorDeg = EndGameView2Page.formatingData.TopBarBackgroundColorDeg,
+ TopBarBackgroundColorColor1 = EndGameView2Page.formatingData.TopBarBackgroundColorColor1,
+ TopBarBackgroundColorPercent1 = EndGameView2Page.formatingData.TopBarBackgroundColorPercent1,
+ TopBarBackgroundColorColor2 = EndGameView2Page.formatingData.TopBarBackgroundColorColor2,
+ TopBarBackgroundColorPercent2 = EndGameView2Page.formatingData.TopBarBackgroundColorPercent2,
+ TopBarGradiant = EndGameView2Page.formatingData.TopBarGradiant,
+ TopBarBorderColor = EndGameView2Page.formatingData.TopBarBorderColor,
+ TopBarTimerText = EndGameView2Page.formatingData.TopBarTimerText,
+ TopBarTimerTextColor = EndGameView2Page.formatingData.TopBarTimerTextColor,
+ TopBarTimerColor = EndGameView2Page.formatingData.TopBarTimerColor,
+ TopBarBlueTeamName = EndGameView2Page.formatingData.TopBarBlueTeamName,
+ TopBarBlueTeamScore = EndGameView2Page.formatingData.TopBarBlueTeamScore,
+ TopBarBlueTeamNameColor = EndGameView2Page.formatingData.TopBarBlueTeamNameColor,
+ TopBarBlueTeamScoreColor = EndGameView2Page.formatingData.TopBarBlueTeamScoreColor,
+ TopBarBlueTeamWinLossColor = EndGameView2Page.formatingData.TopBarBlueTeamWinLossColor,
+ TopBarRedTeamName = EndGameView2Page.formatingData.TopBarRedTeamName,
+ TopBarRedTeamScore = EndGameView2Page.formatingData.TopBarRedTeamScore,
+ TopBarRedTeamNameColor = EndGameView2Page.formatingData.TopBarRedTeamNameColor,
+ TopBarRedTeamScoreColor = EndGameView2Page.formatingData.TopBarRedTeamScoreColor,
+ TopBarRedTeamWinLossColor = EndGameView2Page.formatingData.TopBarRedTeamWinLossColor,
+ ChampionInfoBackgroundColor = EndGameView2Page.formatingData.ChampionInfoBackgroundColor,
+ ChampionInfoBackgroundColorDeg = EndGameView2Page.formatingData.ChampionInfoBackgroundColorDeg,
+ ChampionInfoBackgroundColorColor1 = EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor1,
+ ChampionInfoBackgroundColorPercent1 = EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent1,
+ ChampionInfoBackgroundColorColor2 = EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor2,
+ ChampionInfoBackgroundColorPercent2 = EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent2,
+ ChampionInfoGradiant = EndGameView2Page.formatingData.ChampionInfoGradiant,
+ ChampionInfoBorderColor = EndGameView2Page.formatingData.ChampionInfoBorderColor,
+ ChampionInfoText = EndGameView2Page.formatingData.ChampionInfoText,
+ ChampionInfoTextColor = EndGameView2Page.formatingData.ChampionInfoTextColor,
+ ChampionInfoBlueBarColor = EndGameView2Page.formatingData.ChampionInfoBlueBarColor,
+ ChampionInfoRedBarColor = EndGameView2Page.formatingData.ChampionInfoRedBarColor,
+ ChampionInfoBlueDegaTextColor = EndGameView2Page.formatingData.ChampionInfoBlueDegaTextColor,
+ ChampionInfoRedDegaTextColor = EndGameView2Page.formatingData.ChampionInfoRedDegaTextColor,
+ BansBackgroundColor = EndGameView2Page.formatingData.BansBackgroundColor,
+ BansBackgroundColorDeg = EndGameView2Page.formatingData.BansBackgroundColorDeg,
+ BansBackgroundColorColor1 = EndGameView2Page.formatingData.BansBackgroundColorColor1,
+ BansBackgroundColorPercent1 = EndGameView2Page.formatingData.BansBackgroundColorPercent1,
+ BansBackgroundColorColor2 = EndGameView2Page.formatingData.BansBackgroundColorColor2,
+ BansBackgroundColorPercent2 = EndGameView2Page.formatingData.BansBackgroundColorPercent2,
+ BansGradiant = EndGameView2Page.formatingData.BansGradiant,
+ BansBorderColor = EndGameView2Page.formatingData.BansBorderColor,
+ BansTextColor = EndGameView2Page.formatingData.BansTextColor,
+ GlobalStatsBackgroundColor = EndGameView2Page.formatingData.GlobalStatsBackgroundColor,
+ GlobalStatsBackgroundColorDeg = EndGameView2Page.formatingData.GlobalStatsBackgroundColorDeg,
+ GlobalStatsBackgroundColorColor1 = EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor1,
+ GlobalStatsBackgroundColorPercent1 = EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent1,
+ GlobalStatsBackgroundColorColor2 = EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor2,
+ GlobalStatsBackgroundColorPercent2 = EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent2,
+ GlobalStatsGradiant = EndGameView2Page.formatingData.GlobalStatsGradiant,
+ GlobalStatsBorderColor = EndGameView2Page.formatingData.GlobalStatsBorderColor,
+ GlobalStatsTextColor = EndGameView2Page.formatingData.GlobalStatsTextColor,
+ GlobalStatsBlueTextColor = EndGameView2Page.formatingData.GlobalStatsBlueTextColor,
+ GlobalStatsRedTextColor = EndGameView2Page.formatingData.GlobalStatsRedTextColor,
+ GoldDiffBackgroundColor = EndGameView2Page.formatingData.GoldDiffBackgroundColor,
+ GoldDiffBackgroundColorDeg = EndGameView2Page.formatingData.GoldDiffBackgroundColorDeg,
+ GoldDiffBackgroundColorColor1 = EndGameView2Page.formatingData.GoldDiffBackgroundColorColor1,
+ GoldDiffBackgroundColorPercent1 = EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent1,
+ GoldDiffBackgroundColorColor2 = EndGameView2Page.formatingData.GoldDiffBackgroundColorColor2,
+ GoldDiffBackgroundColorPercent2 = EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent2,
+ GoldDiffGradiant = EndGameView2Page.formatingData.GoldDiffGradiant,
+ GoldDiffBorderColor = EndGameView2Page.formatingData.GoldDiffBorderColor,
+ GoldDiffText = EndGameView2Page.formatingData.GoldDiffText,
+ GoldDiffTextColor = EndGameView2Page.formatingData.GoldDiffTextColor,
+ GoldDiffBlueTextGoldColor = EndGameView2Page.formatingData.GoldDiffBlueTextGoldColor,
+ GoldDiffRedTextGoldColor = EndGameView2Page.formatingData.GoldDiffRedTextGoldColor,
+ GoldDiffZeroTextGoldColor = EndGameView2Page.formatingData.GoldDiffZeroTextGoldColor,
+ GoldDiffBluePointGoldColor = EndGameView2Page.formatingData.GoldDiffBluePointGoldColor,
+ GoldDiffRedPointGoldColor = EndGameView2Page.formatingData.GoldDiffRedPointGoldColor,
+ GoldDiffZeroPointGoldColor = EndGameView2Page.formatingData.GoldDiffZeroPointGoldColor,
+ GoldDiffStartEndPointGoldColor = EndGameView2Page.formatingData.GoldDiffStartEndPointGoldColor,
+ GoldDiffLinkPointGoldColor = EndGameView2Page.formatingData.GoldDiffLinkPointGoldColor,
+ GoldDiffBarColor = EndGameView2Page.formatingData.GoldDiffBarColor,
+ };
+ string jsonString = JsonConvert.SerializeObject(data);
+ FileManagerLocal.WriteInFile("./wwwroot/assets/endgame/configEndGameView2.json", jsonString);
+ _logger.log(LoggingLevel.INFO, "GenerateConfigFileEndGameView2()", "Generation ok");
+ return "/assets/endgame/configEndGameView2.json";
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "GenerateConfigFileEndGameView2()", "Error generation old version recive : " + e.Message);
+ return "/assets/endgame/configEndGameView2.json";
+ }
+ }
+
+ private string GenerateConfigFileEndGameView3()
+ {
+ try
+ {
+ var data = new EndGameView3Page.FormatingData
+ {
+ DefaultPatch = EndGameView3Page.formatingData.DefaultPatch,
+ DefaultRegion = EndGameView3Page.formatingData.DefaultRegion,
+ BackgroundColor = EndGameView3Page.formatingData.BackgroundColor,
+ BackgroundColorDeg = EndGameView3Page.formatingData.BackgroundColorDeg,
+ BackgroundColorColor1 = EndGameView3Page.formatingData.BackgroundColorColor1,
+ BackgroundColorPercent1 = EndGameView3Page.formatingData.BackgroundColorPercent1,
+ BackgroundColorColor2 = EndGameView3Page.formatingData.BackgroundColorColor2,
+ BackgroundColorPercent2 = EndGameView3Page.formatingData.BackgroundColorPercent2,
+ TopBarBackgroundColor = EndGameView3Page.formatingData.TopBarBackgroundColor,
+ TopBarBackgroundColorDeg = EndGameView3Page.formatingData.TopBarBackgroundColorDeg,
+ TopBarBackgroundColorColor1 = EndGameView3Page.formatingData.TopBarBackgroundColorColor1,
+ TopBarBackgroundColorPercent1 = EndGameView3Page.formatingData.TopBarBackgroundColorPercent1,
+ TopBarBackgroundColorColor2 = EndGameView3Page.formatingData.TopBarBackgroundColorColor2,
+ TopBarBackgroundColorPercent2 = EndGameView3Page.formatingData.TopBarBackgroundColorPercent2,
+ TopBarGradiant = EndGameView3Page.formatingData.TopBarGradiant,
+ TopBarBorderColor = EndGameView3Page.formatingData.TopBarBorderColor,
+ TopBarTimerText = EndGameView3Page.formatingData.TopBarTimerText,
+ TopBarTimerTextColor = EndGameView3Page.formatingData.TopBarTimerTextColor,
+ TopBarTimerColor = EndGameView3Page.formatingData.TopBarTimerColor,
+ TopBarBlueTeamName = EndGameView3Page.formatingData.TopBarBlueTeamName,
+ TopBarBlueTeamScore = EndGameView3Page.formatingData.TopBarBlueTeamScore,
+ TopBarBlueTeamNameColor = EndGameView3Page.formatingData.TopBarBlueTeamNameColor,
+ TopBarBlueTeamScoreColor = EndGameView3Page.formatingData.TopBarBlueTeamScoreColor,
+ TopBarBlueTeamWinLossColor = EndGameView3Page.formatingData.TopBarBlueTeamWinLossColor,
+ TopBarRedTeamName = EndGameView3Page.formatingData.TopBarRedTeamName,
+ TopBarRedTeamScore = EndGameView3Page.formatingData.TopBarRedTeamScore,
+ TopBarRedTeamNameColor = EndGameView3Page.formatingData.TopBarRedTeamNameColor,
+ TopBarRedTeamScoreColor = EndGameView3Page.formatingData.TopBarRedTeamScoreColor,
+ TopBarRedTeamWinLossColor = EndGameView3Page.formatingData.TopBarRedTeamWinLossColor,
+ ChampionInfoBackgroundColor = EndGameView3Page.formatingData.ChampionInfoBackgroundColor,
+ ChampionInfoBackgroundColorDeg = EndGameView3Page.formatingData.ChampionInfoBackgroundColorDeg,
+ ChampionInfoBackgroundColorColor1 = EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor1,
+ ChampionInfoBackgroundColorPercent1 = EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent1,
+ ChampionInfoBackgroundColorColor2 = EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor2,
+ ChampionInfoBackgroundColorPercent2 = EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent2,
+ ChampionInfoGradiant = EndGameView3Page.formatingData.ChampionInfoGradiant,
+ ChampionInfoBorderColor = EndGameView3Page.formatingData.ChampionInfoBorderColor,
+ ChampionInfoText = EndGameView3Page.formatingData.ChampionInfoText,
+ ChampionInfoTextColor = EndGameView3Page.formatingData.ChampionInfoTextColor,
+ ChampionInfoBlueBarColor = EndGameView3Page.formatingData.ChampionInfoBlueBarColor,
+ ChampionInfoRedBarColor = EndGameView3Page.formatingData.ChampionInfoRedBarColor,
+ ChampionInfoBlueDegaTextColor = EndGameView3Page.formatingData.ChampionInfoBlueDegaTextColor,
+ ChampionInfoRedDegaTextColor = EndGameView3Page.formatingData.ChampionInfoRedDegaTextColor,
+ BansBackgroundColor = EndGameView3Page.formatingData.BansBackgroundColor,
+ BansBackgroundColorDeg = EndGameView3Page.formatingData.BansBackgroundColorDeg,
+ BansBackgroundColorColor1 = EndGameView3Page.formatingData.BansBackgroundColorColor1,
+ BansBackgroundColorPercent1 = EndGameView3Page.formatingData.BansBackgroundColorPercent1,
+ BansBackgroundColorColor2 = EndGameView3Page.formatingData.BansBackgroundColorColor2,
+ BansBackgroundColorPercent2 = EndGameView3Page.formatingData.BansBackgroundColorPercent2,
+ BansGradiant = EndGameView3Page.formatingData.BansGradiant,
+ BansBorderColor = EndGameView3Page.formatingData.BansBorderColor,
+ BansTextColor = EndGameView3Page.formatingData.BansTextColor,
+ GlobalStatsBackgroundColor = EndGameView3Page.formatingData.GlobalStatsBackgroundColor,
+ GlobalStatsBackgroundColorDeg = EndGameView3Page.formatingData.GlobalStatsBackgroundColorDeg,
+ GlobalStatsBackgroundColorColor1 = EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor1,
+ GlobalStatsBackgroundColorPercent1 = EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent1,
+ GlobalStatsBackgroundColorColor2 = EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor2,
+ GlobalStatsBackgroundColorPercent2 = EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent2,
+ GlobalStatsGradiant = EndGameView3Page.formatingData.GlobalStatsGradiant,
+ GlobalStatsBorderColor = EndGameView3Page.formatingData.GlobalStatsBorderColor,
+ GlobalStatsSeparationColor = EndGameView3Page.formatingData.GlobalStatsSeparationColor,
+ GlobalStatsTextColor = EndGameView3Page.formatingData.GlobalStatsTextColor,
+ GlobalStatsBlueTextColor = EndGameView3Page.formatingData.GlobalStatsBlueTextColor,
+ GlobalStatsRedTextColor = EndGameView3Page.formatingData.GlobalStatsRedTextColor,
+ GoldDiffBackgroundColor = EndGameView3Page.formatingData.GoldDiffBackgroundColor,
+ GoldDiffBackgroundColorDeg = EndGameView3Page.formatingData.GoldDiffBackgroundColorDeg,
+ GoldDiffBackgroundColorColor1 = EndGameView3Page.formatingData.GoldDiffBackgroundColorColor1,
+ GoldDiffBackgroundColorPercent1 = EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent1,
+ GoldDiffBackgroundColorColor2 = EndGameView3Page.formatingData.GoldDiffBackgroundColorColor2,
+ GoldDiffBackgroundColorPercent2 = EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent2,
+ GoldDiffGradiant = EndGameView3Page.formatingData.GoldDiffGradiant,
+ GoldDiffBorderColor = EndGameView3Page.formatingData.GoldDiffBorderColor,
+ GoldDiffText = EndGameView3Page.formatingData.GoldDiffText,
+ GoldDiffTextColor = EndGameView3Page.formatingData.GoldDiffTextColor,
+ GoldDiffBlueTextGoldColor = EndGameView3Page.formatingData.GoldDiffBlueTextGoldColor,
+ GoldDiffRedTextGoldColor = EndGameView3Page.formatingData.GoldDiffRedTextGoldColor,
+ GoldDiffZeroTextGoldColor = EndGameView3Page.formatingData.GoldDiffZeroTextGoldColor,
+ GoldDiffBluePointGoldColor = EndGameView3Page.formatingData.GoldDiffBluePointGoldColor,
+ GoldDiffRedPointGoldColor = EndGameView3Page.formatingData.GoldDiffRedPointGoldColor,
+ GoldDiffZeroPointGoldColor = EndGameView3Page.formatingData.GoldDiffZeroPointGoldColor,
+ GoldDiffStartEndPointGoldColor = EndGameView3Page.formatingData.GoldDiffStartEndPointGoldColor,
+ GoldDiffLinkPointGoldColor = EndGameView3Page.formatingData.GoldDiffLinkPointGoldColor,
+ GoldDiffBarColor = EndGameView3Page.formatingData.GoldDiffBarColor
+ };
+ string jsonString = JsonConvert.SerializeObject(data);
+ FileManagerLocal.WriteInFile("./wwwroot/assets/endgame/configEndGameView3.json", jsonString);
+ _logger.log(LoggingLevel.INFO, "GenerateConfigFileEndGameView3()", "Generation ok");
+ return "/assets/endgame/configEndGameView3.json";
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "GenerateConfigFileEndGameView3()", "Error generation old version recive : " + e.Message);
+ return "/assets/endgame/configEndGameView3.json";
+ }
+ }
+
+ private string GenerateConfigFileRuneAdc()
+ {
+ try
+ {
+ var data = new RunesAdcPage.FormatingData
+ {
+ DefaultPatch = RunesAdcPage.formatingData.DefaultPatch,
+ DefaultRegion = RunesAdcPage.formatingData.DefaultRegion,
+ BackgroudGradient = RunesAdcPage.formatingData.BackgroudGradient,
+ BackgroudGradientDeg = RunesAdcPage.formatingData.BackgroudGradientDeg,
+ BackgroudGradientColor1 = RunesAdcPage.formatingData.BackgroudGradientColor1,
+ BackgroudGradientPercent1 = RunesAdcPage.formatingData.BackgroudGradientPercent1,
+ BackgroudGradientColor2 = RunesAdcPage.formatingData.BackgroudGradientColor2,
+ BackgroudGradientPercent2 = RunesAdcPage.formatingData.BackgroudGradientPercent2,
+ OverlayColorBackgroudGradient = RunesAdcPage.formatingData.OverlayColorBackgroudGradient,
+ BlueSideColorTextSummoner = RunesAdcPage.formatingData.BlueSideColorTextSummoner,
+ RedSideColorTextSummoner = RunesAdcPage.formatingData.RedSideColorTextSummoner,
+ BlueSideColorBorderChampion = RunesAdcPage.formatingData.BlueSideColorBorderChampion,
+ RedSideColorBorderChampion = RunesAdcPage.formatingData.RedSideColorBorderChampion,
+ BlueSideColorSeparationBar = RunesAdcPage.formatingData.BlueSideColorSeparationBar,
+ RedSideColorSeparationBar = RunesAdcPage.formatingData.RedSideColorSeparationBar,
+ BakgroundPicture = RunesAdcPage.formatingData.BakgroundPicture,
+ LanePicture = RunesAdcPage.formatingData.LanePicture,
+
+ };
+ string jsonString = JsonConvert.SerializeObject(data);
+ FileManagerLocal.WriteInFile("./wwwroot/assets/runes/configRunesAdc.json", jsonString);
+ _logger.log(LoggingLevel.INFO, "GenerateConfigFileRuneAdc()", "Generation ok");
+ return "/assets/runes/configRunesAdc.json";
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "GenerateConfigFileRuneAdc()", "Error generation old version recive : " + e.Message);
+ return "/assets/runes/configRunesAdc.json";
+ }
+ }
+
+ private string GenerateConfigFileRuneAdcSupp()
+ {
+ try
+ {
+ var data = new RunesAdcSuppPage.FormatingData
+ {
+ DefaultPatch = RunesAdcSuppPage.formatingData.DefaultPatch,
+ DefaultRegion = RunesAdcSuppPage.formatingData.DefaultRegion,
+ BackgroudGradient = RunesAdcSuppPage.formatingData.BackgroudGradient,
+ OverlayColorBackgroudGradient = RunesAdcSuppPage.formatingData.OverlayColorBackgroudGradient,
+ BlueSideColorTextSummoner = RunesAdcSuppPage.formatingData.BlueSideColorTextSummoner,
+ RedSideColorTextSummoner = RunesAdcSuppPage.formatingData.RedSideColorTextSummoner,
+ BlueSideColorBorderChampion = RunesAdcSuppPage.formatingData.BlueSideColorBorderChampion,
+ RedSideColorBorderChampion = RunesAdcSuppPage.formatingData.RedSideColorBorderChampion,
+ BlueSideColorSeparationBar = RunesAdcSuppPage.formatingData.BlueSideColorSeparationBar,
+ RedSideColorSeparationBar = RunesAdcSuppPage.formatingData.RedSideColorSeparationBar,
+ BakgroundPicture = RunesAdcSuppPage.formatingData.BakgroundPicture,
+ LanePictureAdc = RunesAdcSuppPage.formatingData.LanePictureAdc,
+ LanePictureSupp = RunesAdcSuppPage.formatingData.LanePictureSupp,
+
+ };
+ string jsonString = JsonConvert.SerializeObject(data);
+ FileManagerLocal.WriteInFile("./wwwroot/assets/runes/configRunesAdcSupp.json", jsonString);
+ _logger.log(LoggingLevel.INFO, "GenerateConfigFileRuneAdcSupp()", "Generation ok");
+ return "/assets/runes/configRunesAdcSupp.json";
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "GenerateConfigFileRuneAdcSupp()", "Error generation old version recive : " + e.Message);
+ return "/assets/runes/configRunesAdcSupp.json";
+ }
+ }
+
+ private string GenerateConfigFileRuneJungle()
+ {
+ try
+ {
+ var data = new RunesJunglePage.FormatingData
+ {
+ DefaultPatch = RunesJunglePage.formatingData.DefaultPatch,
+ DefaultRegion = RunesJunglePage.formatingData.DefaultRegion,
+ BackgroudGradient = RunesJunglePage.formatingData.BackgroudGradient,
+ OverlayColorBackgroudGradient = RunesJunglePage.formatingData.OverlayColorBackgroudGradient,
+ BlueSideColorTextSummoner = RunesJunglePage.formatingData.BlueSideColorTextSummoner,
+ RedSideColorTextSummoner = RunesJunglePage.formatingData.RedSideColorTextSummoner,
+ BlueSideColorBorderChampion = RunesJunglePage.formatingData.BlueSideColorBorderChampion,
+ RedSideColorBorderChampion = RunesJunglePage.formatingData.RedSideColorBorderChampion,
+ BlueSideColorSeparationBar = RunesJunglePage.formatingData.BlueSideColorSeparationBar,
+ RedSideColorSeparationBar = RunesJunglePage.formatingData.RedSideColorSeparationBar,
+ BakgroundPicture = RunesJunglePage.formatingData.BakgroundPicture,
+ LanePicture = RunesJunglePage.formatingData.LanePicture,
+
+ };
+ string jsonString = JsonConvert.SerializeObject(data);
+ FileManagerLocal.WriteInFile("./wwwroot/assets/runes/configRunesJungle.json", jsonString);
+ _logger.log(LoggingLevel.INFO, "GenerateConfigFileRuneJungle()", "Generation ok");
+ return "/assets/runes/configRunesJungle.json";
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "GenerateConfigFileRuneJungle()", "Error generation old version recive : " + e.Message);
+ return "/assets/runes/configRunesJungle.json";
+ }
+ }
+
+ private string GenerateConfigFileRuneMid()
+ {
+ try
+ {
+ var data = new RunesMidPage.FormatingData
+ {
+ DefaultPatch = RunesMidPage.formatingData.DefaultPatch,
+ DefaultRegion = RunesMidPage.formatingData.DefaultRegion,
+ BackgroudGradient = RunesMidPage.formatingData.BackgroudGradient,
+ OverlayColorBackgroudGradient = RunesMidPage.formatingData.OverlayColorBackgroudGradient,
+ BlueSideColorTextSummoner = RunesMidPage.formatingData.BlueSideColorTextSummoner,
+ RedSideColorTextSummoner = RunesMidPage.formatingData.RedSideColorTextSummoner,
+ BlueSideColorBorderChampion = RunesMidPage.formatingData.BlueSideColorBorderChampion,
+ RedSideColorBorderChampion = RunesMidPage.formatingData.RedSideColorBorderChampion,
+ BlueSideColorSeparationBar = RunesMidPage.formatingData.BlueSideColorSeparationBar,
+ RedSideColorSeparationBar = RunesMidPage.formatingData.RedSideColorSeparationBar,
+ BakgroundPicture = RunesMidPage.formatingData.BakgroundPicture,
+ LanePicture = RunesMidPage.formatingData.LanePicture,
+
+ };
+ string jsonString = JsonConvert.SerializeObject(data);
+ FileManagerLocal.WriteInFile("./wwwroot/assets/runes/configRunesMid.json", jsonString);
+ _logger.log(LoggingLevel.INFO, "GenerateConfigFileRuneMid()", "Generation ok");
+ return "/assets/runes/configRunesMid.json";
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "GenerateConfigFileRuneMid()", "Error generation old version recive : " + e.Message);
+ return "/assets/runes/configRunesMid.json";
+ }
+ }
+
+ private string GenerateConfigFileRuneSupp()
+ {
+ try
+ {
+ var data = new RunesSuppPage.FormatingData
+ {
+ DefaultPatch = RunesSuppPage.formatingData.DefaultPatch,
+ DefaultRegion = RunesSuppPage.formatingData.DefaultRegion,
+ BackgroudGradient = RunesSuppPage.formatingData.BackgroudGradient,
+ OverlayColorBackgroudGradient = RunesSuppPage.formatingData.OverlayColorBackgroudGradient,
+ BlueSideColorTextSummoner = RunesSuppPage.formatingData.BlueSideColorTextSummoner,
+ RedSideColorTextSummoner = RunesSuppPage.formatingData.RedSideColorTextSummoner,
+ BlueSideColorBorderChampion = RunesSuppPage.formatingData.BlueSideColorBorderChampion,
+ RedSideColorBorderChampion = RunesSuppPage.formatingData.RedSideColorBorderChampion,
+ BlueSideColorSeparationBar = RunesSuppPage.formatingData.BlueSideColorSeparationBar,
+ RedSideColorSeparationBar = RunesSuppPage.formatingData.RedSideColorSeparationBar,
+ BakgroundPicture = RunesSuppPage.formatingData.BakgroundPicture,
+ LanePicture = RunesSuppPage.formatingData.LanePicture,
+
+ };
+ string jsonString = JsonConvert.SerializeObject(data);
+ FileManagerLocal.WriteInFile("./wwwroot/assets/runes/configRunesSupp.json", jsonString);
+ _logger.log(LoggingLevel.INFO, "GenerateConfigFileRuneSupp()", "Generation ok");
+ return "/assets/runes/configRunesSupp.json";
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "GenerateConfigFileRuneSupp()", "Error generation old version recive : " + e.Message);
+ return "/assets/runes/configRunesSupp.json";
+ }
+ }
+
+ private string GenerateConfigFileRuneTop()
+ {
+ try
+ {
+ var data = new RunesTopPage.FormatingData
+ {
+ DefaultPatch = RunesTopPage.formatingData.DefaultPatch,
+ DefaultRegion = RunesTopPage.formatingData.DefaultRegion,
+ BackgroudGradient = RunesTopPage.formatingData.BackgroudGradient,
+ OverlayColorBackgroudGradient = RunesTopPage.formatingData.OverlayColorBackgroudGradient,
+ BlueSideColorTextSummoner = RunesTopPage.formatingData.BlueSideColorTextSummoner,
+ RedSideColorTextSummoner = RunesTopPage.formatingData.RedSideColorTextSummoner,
+ BlueSideColorBorderChampion = RunesTopPage.formatingData.BlueSideColorBorderChampion,
+ RedSideColorBorderChampion = RunesTopPage.formatingData.RedSideColorBorderChampion,
+ BlueSideColorSeparationBar = RunesTopPage.formatingData.BlueSideColorSeparationBar,
+ RedSideColorSeparationBar = RunesTopPage.formatingData.RedSideColorSeparationBar,
+ BakgroundPicture = RunesTopPage.formatingData.BakgroundPicture,
+ LanePicture = RunesTopPage.formatingData.LanePicture,
+
+ };
+ string jsonString = JsonConvert.SerializeObject(data);
+ FileManagerLocal.WriteInFile("./wwwroot/assets/runes/configRunesTop.json", jsonString);
+ _logger.log(LoggingLevel.INFO, "GenerateConfigFileRuneTop()", "Generation ok");
+ return "/assets/runes/configRunesTop.json";
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "GenerateConfigFileRuneTop()", "Error generation old version recive : " + e.Message);
+ return "/assets/runes/configRunesTop.json";
+ }
+ }
+
+ private string GenerateConfigFileRuneAll()
+ {
+ try
+ {
+ var data = new RunesAllPage.FormatingData
+ {
+ DefaultPatch = RunesAllPage.formatingData.DefaultPatch,
+ DefaultRegion = RunesAllPage.formatingData.DefaultRegion,
+ BackgroudGradient = RunesAllPage.formatingData.BackgroudGradient,
+ OverlayColorBackgroudGradient = RunesAllPage.formatingData.OverlayColorBackgroudGradient,
+ BlueSideColorTextSummoner = RunesAllPage.formatingData.BlueSideColorTextSummoner,
+ RedSideColorTextSummoner = RunesAllPage.formatingData.RedSideColorTextSummoner,
+ BlueSideColorBorderChampion = RunesAllPage.formatingData.BlueSideColorBorderChampion,
+ RedSideColorBorderChampion = RunesAllPage.formatingData.RedSideColorBorderChampion,
+ BlueSideColorSeparationBar = RunesAllPage.formatingData.BlueSideColorSeparationBar,
+ RedSideColorSeparationBar = RunesAllPage.formatingData.RedSideColorSeparationBar,
+ BakgroundPicture = RunesAllPage.formatingData.BakgroundPicture,
+ LanePictureAdc = RunesAllPage.formatingData.LanePictureAdc,
+ LanePictureSupp = RunesAllPage.formatingData.LanePictureSupp,
+ LanePictureJungle = RunesAllPage.formatingData.LanePictureJungle,
+ LanePictureMid = RunesAllPage.formatingData.LanePictureMid,
+ LanePictureTop = RunesAllPage.formatingData.LanePictureTop,
+
+ };
+ string jsonString = JsonConvert.SerializeObject(data);
+ FileManagerLocal.WriteInFile("./wwwroot/assets/runes/configRunesAll.json", jsonString);
+ _logger.log(LoggingLevel.INFO, "GenerateConfigFileRuneAll()", "Generation ok");
+ return "/assets/runes/configRunesAll.json";
+ }
+ catch (Exception e)
+ {
+ _logger.log(LoggingLevel.ERROR, "GenerateConfigFileRuneAll()", "Error generation old version recive : " + e.Message);
+ return "/assets/runes/configRunesAll.json";
+ }
+ }
}
}
diff --git a/OSL-Server/Pages/ConfigPage.razor.css b/OSL-Server/Pages/ConfigPage.razor.css
index c66591d..f45a015 100644
--- a/OSL-Server/Pages/ConfigPage.razor.css
+++ b/OSL-Server/Pages/ConfigPage.razor.css
@@ -16,4 +16,28 @@ html, body {
font-family: MyFont;
font-weight: bold;
text-decoration: underline;
-}
\ No newline at end of file
+}
+
+.configuration-champ-select-content {
+ position: relative;
+ left: 50px;
+ max-width: 770px;
+}
+
+.configuration-in-game-content {
+ position: relative;
+ left: 50px;
+ max-width: 770px;
+}
+
+.configuration-end-game-content {
+ position: relative;
+ left: 50px;
+ max-width: 770px;
+}
+
+.configuration-runes-content {
+ position: relative;
+ left: 50px;
+ max-width: 770px;
+}
diff --git a/OSL-Server/Pages/EndGame/EndGamePage.razor b/OSL-Server/Pages/EndGame/EndGamePage.razor
new file mode 100644
index 0000000..a651e2a
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGamePage.razor
@@ -0,0 +1,1058 @@
+@page "/endgame"
+@using OSL_Server.DataReciveClient.Processing.EndGame;
+@using MudBlazor
+
+
End Game
+
+
+
+
End Game :
+
+ Display end game information :
+ - Time game
+ - Win, loss team
+ - Damages to champions
+ - Damages ... (In progress to add other damages information (tower, magic, physic, ...))
+ - Bans informations
+ - KDA / Total gold / Tower, Dagon, Elder, Herald, Baron kill
+
+
+ @*View1*@
+
+
+
End Game Overlay 1 Reset color and text
+
Link Overlay 1
+
+ Clic to @displayContentView1Button.text customization
+
+
+
+
+
+
+
+ Blue Side Team Name ("@EndGameView1Page.formatingData.TopBarBlueTeamName") :
+
+
+ Submit
+
+
+
+
+ Blue Side Team Name ("@EndGameView1Page.formatingData.TopBarRedTeamName") :
+
+
+ Submit
+
+
+
+
+ Blue Side Team Score ("@EndGameView1Page.formatingData.TopBarBlueTeamScore") :
+
+
+ Submit
+
+
+
+
+ Blue Side Team Score ("@EndGameView1Page.formatingData.TopBarRedTeamScore") :
+
+
+ Submit
+
+
+ Switch side
+
+
+
+ Display Backgroud Color :
+
+
+
+
+
+ Backgroud Color ("@EndGameView1Page.formatingData.BackgroundColor") :
+
+ deg
+ @EndGameView1Page.formatingData.BackgroundColorColor1
+
+ %
+ @EndGameView1Page.formatingData.BackgroundColorColor2
+
+ %
+ Submit
+
+
+
+ Enable all
+ gradiant
+
+
+ Disable all
+ gradiant
+
+
+
+
+
+
Timer Bar
+
+
+
+
+
+ Backgroud Color ("@EndGameView1Page.formatingData.TopBarBackgroundColor") :
+
+ deg
+ @EndGameView1Page.formatingData.TopBarBackgroundColorColor1
+
+ %
+ @EndGameView1Page.formatingData.TopBarBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView1Page.formatingData.TopBarBorderColor") :
+
+
+ Submit
+
+ Blue Team Name Color @EndGameView1Page.formatingData.TopBarBlueTeamNameColor
+ Blue Team WinLoss Color @EndGameView1Page.formatingData.TopBarBlueTeamWinLossColor
+ Blue Team Score Color @EndGameView1Page.formatingData.TopBarBlueTeamScoreColor
+ Red Team Name Color @EndGameView1Page.formatingData.TopBarRedTeamNameColor
+ Red Team WinLoss Color @EndGameView1Page.formatingData.TopBarRedTeamWinLossColor
+ Red Team Score Color @EndGameView1Page.formatingData.TopBarRedTeamScoreColor
+ Timer Text Color @EndGameView1Page.formatingData.TopBarTimerTextColor
+ Timer Color @EndGameView1Page.formatingData.TopBarTimerColor
+
+
+
+
+
+
Champion Info
+
+
+
+
+
+ Backgroud Color ("@EndGameView1Page.formatingData.ChampionInfoBackgroundColor") :
+
+ deg
+ @EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor1
+
+ %
+ @EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView1Page.formatingData.ChampionInfoBorderColor") :
+
+
+ Submit
+
+ Text Color @EndGameView1Page.formatingData.ChampionInfoTextColor
+ Blue Bar Color @EndGameView1Page.formatingData.ChampionInfoBlueBarColor
+ Blue Dega text Color @EndGameView1Page.formatingData.ChampionInfoBlueDegaTextColor
+ Red Bar Color @EndGameView1Page.formatingData.ChampionInfoRedBarColor
+ Red Dega text Color @EndGameView1Page.formatingData.ChampionInfoRedDegaTextColor
+
+
+
+
+
+
Bans
+
+
+
+
+
+ Backgroud Color ("@EndGameView1Page.formatingData.BansBackgroundColor") :
+
+ deg
+ @EndGameView1Page.formatingData.BansBackgroundColorColor1
+
+ %
+ @EndGameView1Page.formatingData.BansBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView1Page.formatingData.BansBorderColor") :
+
+
+ Submit
+
+ Text Color @EndGameView1Page.formatingData.BansTextColor
+
+
+
+
+
+
+
Global Stats
+
+
+
+
+
+ Backgroud Color ("@EndGameView1Page.formatingData.GlobalStatsBackgroundColor") :
+
+ deg
+ @EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor1
+
+ %
+ @EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView1Page.formatingData.GlobalStatsBorderColor") :
+
+
+ Submit
+
+ Text Color @EndGameView1Page.formatingData.GlobalStatsTextColor
+ Blue Text Color @EndGameView1Page.formatingData.GlobalStatsBlueTextColor
+ Red Text Color @EndGameView1Page.formatingData.GlobalStatsRedTextColor
+
+
+
+
+
+
+
Gold diff
+
+
+
+
+
+ Backgroud Color ("@EndGameView1Page.formatingData.GoldDiffBackgroundColor") :
+
+ deg
+ @EndGameView1Page.formatingData.GoldDiffBackgroundColorColor1
+
+ %
+ @EndGameView1Page.formatingData.GoldDiffBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView1Page.formatingData.GoldDiffBorderColor") :
+
+
+ Submit
+
+ Text Color @EndGameView1Page.formatingData.GoldDiffTextColor
+ Blue Text Color @EndGameView1Page.formatingData.GoldDiffBlueTextGoldColor
+ Red Text Color @EndGameView1Page.formatingData.GoldDiffRedTextGoldColor
+ Zero Text Color @EndGameView1Page.formatingData.GoldDiffZeroTextGoldColor
+ Blue Point Color @EndGameView1Page.formatingData.GoldDiffBluePointGoldColor
+ Red Point Color @EndGameView1Page.formatingData.GoldDiffRedPointGoldColor
+ Zero Point Color @EndGameView1Page.formatingData.GoldDiffZeroPointGoldColor
+ Start and End Point Color @EndGameView1Page.formatingData.GoldDiffStartEndPointGoldColor
+ Link Point Color @EndGameView1Page.formatingData.GoldDiffLinkPointGoldColor
+
+
+
+ Bar Color ("@EndGameView1Page.formatingData.GoldDiffBarColor") :
+
+
+ Submit
+
+
+
+
+
+
+ @*
*@
+
+
+
+ @*View2*@
+
+
+
End Game Overlay 2 Reset color and text
+
Link Overlay 2
+
+ Clic to @displayContentView2Button.text customization
+
+
+
+
+
+
+
+ Blue Side Team Name ("@EndGameView2Page.formatingData.TopBarBlueTeamName") :
+
+
+ Submit
+
+
+
+
+ Blue Side Team Name ("@EndGameView2Page.formatingData.TopBarRedTeamName") :
+
+
+ Submit
+
+
+
+
+ Blue Side Team Score ("@EndGameView2Page.formatingData.TopBarBlueTeamScore") :
+
+
+ Submit
+
+
+
+
+ Blue Side Team Score ("@EndGameView2Page.formatingData.TopBarRedTeamScore") :
+
+
+ Submit
+
+
+ Switch side
+
+
+
+ Display Backgroud Color :
+
+
+
+
+
+ Backgroud Color ("@EndGameView2Page.formatingData.BackgroundColor") :
+
+ deg
+ @EndGameView2Page.formatingData.BackgroundColorColor1
+
+ %
+ @EndGameView2Page.formatingData.BackgroundColorColor2
+
+ %
+ Submit
+
+
+
+ Enable all
+ gradiant
+
+
+ Disable all
+ gradiant
+
+
+
+
+
+
Timer Bar
+
+
+
+
+
+ Backgroud Color ("@EndGameView2Page.formatingData.TopBarBackgroundColor") :
+
+ deg
+ @EndGameView2Page.formatingData.TopBarBackgroundColorColor1
+
+ %
+ @EndGameView2Page.formatingData.TopBarBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView2Page.formatingData.TopBarBorderColor") :
+
+
+ Submit
+
+ Blue Team Name Color @EndGameView2Page.formatingData.TopBarBlueTeamNameColor
+ Blue Team WinLoss Color @EndGameView2Page.formatingData.TopBarBlueTeamWinLossColor
+ Blue Team Score Color @EndGameView2Page.formatingData.TopBarBlueTeamScoreColor
+ Red Team Name Color @EndGameView2Page.formatingData.TopBarRedTeamNameColor
+ Red Team WinLoss Color @EndGameView2Page.formatingData.TopBarRedTeamWinLossColor
+ Red Team Score Color @EndGameView2Page.formatingData.TopBarRedTeamScoreColor
+ Timer Text Color @EndGameView2Page.formatingData.TopBarTimerTextColor
+ Timer Color @EndGameView2Page.formatingData.TopBarTimerColor
+
+
+
+
+
+
Champion Info
+
+
+
+
+
+ Backgroud Color ("@EndGameView2Page.formatingData.ChampionInfoBackgroundColor") :
+
+ deg
+ @EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor1
+
+ %
+ @EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView2Page.formatingData.ChampionInfoBorderColor") :
+
+
+ Submit
+
+ Text Color @EndGameView2Page.formatingData.ChampionInfoTextColor
+ Blue Bar Color @EndGameView2Page.formatingData.ChampionInfoBlueBarColor
+ Blue Dega text Color @EndGameView2Page.formatingData.ChampionInfoBlueDegaTextColor
+ Red Bar Color @EndGameView2Page.formatingData.ChampionInfoRedBarColor
+ Red Dega text Color @EndGameView2Page.formatingData.ChampionInfoRedDegaTextColor
+
+
+
+
+
+
Bans
+
+
+
+
+
+ Backgroud Color ("@EndGameView2Page.formatingData.BansBackgroundColor") :
+
+ deg
+ @EndGameView2Page.formatingData.BansBackgroundColorColor1
+
+ %
+ @EndGameView2Page.formatingData.BansBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView2Page.formatingData.BansBorderColor") :
+
+
+ Submit
+
+ Text Color @EndGameView2Page.formatingData.BansTextColor
+
+
+
+
+
+
+
Global Stats
+
+
+
+
+
+ Backgroud Color ("@EndGameView2Page.formatingData.GlobalStatsBackgroundColor") :
+
+ deg
+ @EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor1
+
+ %
+ @EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView2Page.formatingData.GlobalStatsBorderColor") :
+
+
+ Submit
+
+ Text Color @EndGameView2Page.formatingData.GlobalStatsTextColor
+ Blue Text Color @EndGameView2Page.formatingData.GlobalStatsBlueTextColor
+ Red Text Color @EndGameView2Page.formatingData.GlobalStatsRedTextColor
+
+
+
+
+
+
+
Gold diff
+
+
+
+
+
+ Backgroud Color ("@EndGameView2Page.formatingData.GoldDiffBackgroundColor") :
+
+ deg
+ @EndGameView2Page.formatingData.GoldDiffBackgroundColorColor1
+
+ %
+ @EndGameView2Page.formatingData.GoldDiffBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView2Page.formatingData.GoldDiffBorderColor") :
+
+
+ Submit
+
+ Text Color @EndGameView2Page.formatingData.GoldDiffTextColor
+ Blue Text Color @EndGameView2Page.formatingData.GoldDiffBlueTextGoldColor
+ Red Text Color @EndGameView2Page.formatingData.GoldDiffRedTextGoldColor
+ Zero Text Color @EndGameView2Page.formatingData.GoldDiffZeroTextGoldColor
+ Blue Point Color @EndGameView2Page.formatingData.GoldDiffBluePointGoldColor
+ Red Point Color @EndGameView2Page.formatingData.GoldDiffRedPointGoldColor
+ Zero Point Color @EndGameView2Page.formatingData.GoldDiffZeroPointGoldColor
+ Start and End Point Color @EndGameView2Page.formatingData.GoldDiffStartEndPointGoldColor
+ Link Point Color @EndGameView2Page.formatingData.GoldDiffLinkPointGoldColor
+
+
+
+ Bar Color ("@EndGameView2Page.formatingData.GoldDiffBarColor") :
+
+
+ Submit
+
+
+
+
+
+
+ @*
*@
+
+
+ @*View3*@
+
+
+
End Game Overlay 3 Reset color and text
+
Link Overlay 3
+
+ Clic to @displayContentView3Button.text customization
+
+
+
+
+
+
+
+ Blue Side Team Name ("@EndGameView3Page.formatingData.TopBarBlueTeamName") :
+
+
+ Submit
+
+
+
+
+ Blue Side Team Name ("@EndGameView3Page.formatingData.TopBarRedTeamName") :
+
+
+ Submit
+
+
+
+
+ Blue Side Team Score ("@EndGameView3Page.formatingData.TopBarBlueTeamScore") :
+
+
+ Submit
+
+
+
+
+ Blue Side Team Score ("@EndGameView3Page.formatingData.TopBarRedTeamScore") :
+
+
+ Submit
+
+
+ Switch side
+
+
+
+ Display Backgroud Color :
+
+
+
+
+
+ Backgroud Color ("@EndGameView3Page.formatingData.BackgroundColor") :
+
+ deg
+ @EndGameView3Page.formatingData.BackgroundColorColor1
+
+ %
+ @EndGameView3Page.formatingData.BackgroundColorColor2
+
+ %
+ Submit
+
+
+
+ Enable all
+ gradiant
+
+
+ Disable all
+ gradiant
+
+
+
+ Enable all
+ background
+
+
+ Disable all
+ background
+
+
+
+
+
+
Timer Bar
+
+
+
+
+
+ Backgroud Color ("@EndGameView3Page.formatingData.TopBarBackgroundColor") :
+
+ deg
+ @EndGameView3Page.formatingData.TopBarBackgroundColorColor1
+
+ %
+ @EndGameView3Page.formatingData.TopBarBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Background :
+
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView3Page.formatingData.TopBarBorderColor") :
+
+
+ Submit
+
+ Blue Team Name Color @EndGameView3Page.formatingData.TopBarBlueTeamNameColor
+ Blue Team WinLoss Color @EndGameView3Page.formatingData.TopBarBlueTeamWinLossColor
+ Blue Team Score Color @EndGameView3Page.formatingData.TopBarBlueTeamScoreColor
+ Red Team Name Color @EndGameView3Page.formatingData.TopBarRedTeamNameColor
+ Red Team WinLoss Color @EndGameView3Page.formatingData.TopBarRedTeamWinLossColor
+ Red Team Score Color @EndGameView3Page.formatingData.TopBarRedTeamScoreColor
+ Timer Text Color @EndGameView3Page.formatingData.TopBarTimerTextColor
+ Timer Color @EndGameView3Page.formatingData.TopBarTimerColor
+
+
+
+
+
+
Champion Info
+
+
+
+
+
+ Backgroud Color ("@EndGameView3Page.formatingData.ChampionInfoBackgroundColor") :
+
+ deg
+ @EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor1
+
+ %
+ @EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Background :
+
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView3Page.formatingData.ChampionInfoBorderColor") :
+
+
+ Submit
+
+ Text Color @EndGameView3Page.formatingData.ChampionInfoTextColor
+ Blue Bar Color @EndGameView3Page.formatingData.ChampionInfoBlueBarColor
+ Blue Dega text Color @EndGameView3Page.formatingData.ChampionInfoBlueDegaTextColor
+ Red Bar Color @EndGameView3Page.formatingData.ChampionInfoRedBarColor
+ Red Dega text Color @EndGameView3Page.formatingData.ChampionInfoRedDegaTextColor
+
+
+
+
+
+
Bans
+
+
+
+
+
+ Backgroud Color ("@EndGameView3Page.formatingData.BansBackgroundColor") :
+
+ deg
+ @EndGameView3Page.formatingData.BansBackgroundColorColor1
+
+ %
+ @EndGameView3Page.formatingData.BansBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Background :
+
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView3Page.formatingData.BansBorderColor") :
+
+
+ Submit
+
+ Text Color @EndGameView3Page.formatingData.BansTextColor
+
+
+
+
+
+
+
Global Stats
+
+
+
+
+
+ Backgroud Color ("@EndGameView3Page.formatingData.GlobalStatsBackgroundColor") :
+
+ deg
+ @EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor1
+
+ %
+ @EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Background :
+
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView3Page.formatingData.GlobalStatsBorderColor") :
+
+
+ Submit
+
+
+
+
+ Separation Color ("@EndGameView3Page.formatingData.GlobalStatsSeparationColor") :
+
+
+ Submit
+
+ Text Color @EndGameView3Page.formatingData.GlobalStatsTextColor
+ Blue Text Color @EndGameView3Page.formatingData.GlobalStatsBlueTextColor
+ Red Text Color @EndGameView3Page.formatingData.GlobalStatsRedTextColor
+
+
+
+
+
+
+
Gold diff
+
+
+
+
+
+ Backgroud Color ("@EndGameView3Page.formatingData.GoldDiffBackgroundColor") :
+
+ deg
+ @EndGameView3Page.formatingData.GoldDiffBackgroundColorColor1
+
+ %
+ @EndGameView3Page.formatingData.GoldDiffBackgroundColorColor2
+
+ %
+ Submit
+
+
+ Display Background :
+
+
+
+ Display Gradiant :
+
+
+
+
+
+ Border Color ("@EndGameView3Page.formatingData.GoldDiffBorderColor") :
+
+
+ Submit
+
+ Text Color @EndGameView3Page.formatingData.GoldDiffTextColor
+ Blue Text Color @EndGameView3Page.formatingData.GoldDiffBlueTextGoldColor
+ Red Text Color @EndGameView3Page.formatingData.GoldDiffRedTextGoldColor
+ Zero Text Color @EndGameView3Page.formatingData.GoldDiffZeroTextGoldColor
+ Blue Point Color @EndGameView3Page.formatingData.GoldDiffBluePointGoldColor
+ Red Point Color @EndGameView3Page.formatingData.GoldDiffRedPointGoldColor
+ Zero Point Color @EndGameView3Page.formatingData.GoldDiffZeroPointGoldColor
+ Start and End Point Color @EndGameView3Page.formatingData.GoldDiffStartEndPointGoldColor
+ Link Point Color @EndGameView3Page.formatingData.GoldDiffLinkPointGoldColor
+
+
+
+ Bar Color ("@EndGameView3Page.formatingData.GoldDiffBarColor") :
+
+
+ Submit
+
+
+
+
+
+
+ @*
*@
+
+
+
+
+
+
+
+
+
+
+
+@code {
+ public static TextValueOverlayView1 textValueOverlayView1 = new();
+ public static TextValueOverlayView2 textValueOverlayView2 = new();
+ public static TextValueOverlayView3 textValueOverlayView3 = new();
+}
diff --git a/OSL-Server/Pages/EndGame/EndGamePage.razor.cs b/OSL-Server/Pages/EndGame/EndGamePage.razor.cs
new file mode 100644
index 0000000..189ae50
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGamePage.razor.cs
@@ -0,0 +1,3009 @@
+using BlazorColorPicker;
+using OSL_Server.Pages.ChampSelect;
+using OSL_Server.Pages.Runes;
+using System.ComponentModel.DataAnnotations;
+
+namespace OSL_Server.Pages.EndGame
+{
+ public partial class EndGamePage
+ {
+ private static OSLLogger _logger = new OSLLogger("CDragonPage");
+
+ public static string colorPickerOverlay1 = "hidden";
+ public static string colorPickerOverlay1TimerBar = "hidden";
+ public static string colorPickerOverlay1ChampInfo = "hidden";
+ public static string colorPickerOverlay1Bans = "hidden";
+ public static string colorPickerOverlay1GlobalStats = "hidden";
+ public static string colorPickerOverlay1GoldDiff = "hidden";
+ public static string colorValue = "#0000";
+
+ public class TextValueOverlayView1
+ {
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? TopBarBlueTeamName { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? TopBarRedTeamName { get; set; }
+ [StringLength(5, ErrorMessage = "Name is too long (5 character limit).")]
+ public string? TopBarBlueTeamScore { get; set; }
+ [StringLength(5, ErrorMessage = "Name is too long (5 character limit).")]
+ public string? TopBarRedTeamScore { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? TopBarTimerText { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? ChampionInfoText { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? GoldDiffText { get; set; }
+
+ public bool BackgroundColor { get; set; } = true;
+ public bool TopBarGradiant { get; set; } = true;
+ public bool ChampionInfoGradiant { get; set; } = true;
+ public bool BansGradiant { get; set; } = true;
+ public bool GlobalStatsGradiant { get; set; } = true;
+ public bool GoldDiffGradiant { get; set; } = true;
+
+
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int BackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BackgroundColorPercent2 { get; set; } = 100;
+
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int TopBarBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int TopBarBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int TopBarBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int ChampionInfoBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int ChampionInfoBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int ChampionInfoBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int BansBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BansBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BansBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int GlobalStatsBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GlobalStatsBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GlobalStatsBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int GoldDiffBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GoldDiffBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GoldDiffBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int TopBarBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int ChampionInfoBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int BansBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int GlobalStatsBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int GoldDiffBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int GoldDiffBarColor { get; set; } = 1;
+
+ public static void TopBarBlueTeamNameSubmit()
+ {
+ EndGameView1Page.formatingData.TopBarBlueTeamName = textValueOverlayView1.TopBarBlueTeamName;
+ }
+ public static void TopBarRedTeamNameSubmit()
+ {
+ EndGameView1Page.formatingData.TopBarRedTeamName = textValueOverlayView1.TopBarRedTeamName;
+ }
+ public static void TopBarBlueTeamScoreSubmit()
+ {
+ EndGameView1Page.formatingData.TopBarBlueTeamScore = textValueOverlayView1.TopBarBlueTeamScore;
+ }
+ public static void TopBarRedTeamScoreSubmit()
+ {
+ EndGameView1Page.formatingData.TopBarRedTeamScore = textValueOverlayView1.TopBarRedTeamScore;
+ }
+ public static void SwitchSideRedBlue()
+ {
+ string tempsTopBarBlueTeamName = EndGameView1Page.formatingData.TopBarBlueTeamName;
+ string tempsTopBarBlueTeamScore = EndGameView1Page.formatingData.TopBarBlueTeamScore;
+ string tempsTopBarRedTeamName = EndGameView1Page.formatingData.TopBarRedTeamName;
+ string tempsTopBarRedTeamScore = EndGameView1Page.formatingData.TopBarRedTeamScore;
+ string tempsRextValueOverlayView1TopBarBlueTeamName = textValueOverlayView1.TopBarBlueTeamName;
+ string tempsRextValueOverlayView1TopBarBlueTeamScore = textValueOverlayView1.TopBarBlueTeamScore;
+ string tempsRextValueOverlayView1TopBarRedTeamName = textValueOverlayView1.TopBarRedTeamName;
+ string tempsRextValueOverlayView1TopBarRedTeamScore = textValueOverlayView1.TopBarRedTeamScore;
+ EndGameView1Page.formatingData.TopBarBlueTeamName = tempsTopBarRedTeamName;
+ EndGameView1Page.formatingData.TopBarBlueTeamScore = tempsTopBarRedTeamScore;
+ EndGameView1Page.formatingData.TopBarRedTeamName = tempsTopBarBlueTeamName;
+ EndGameView1Page.formatingData.TopBarRedTeamScore = tempsTopBarBlueTeamScore;
+ textValueOverlayView1.TopBarBlueTeamName = tempsRextValueOverlayView1TopBarRedTeamName;
+ textValueOverlayView1.TopBarBlueTeamScore = tempsRextValueOverlayView1TopBarRedTeamScore;
+ textValueOverlayView1.TopBarRedTeamName = tempsRextValueOverlayView1TopBarBlueTeamName;
+ textValueOverlayView1.TopBarRedTeamScore = tempsRextValueOverlayView1TopBarBlueTeamScore;
+ }
+
+ public static void TopBarGradiantSubmit()
+ {
+ }
+ public static void ChampionInfoGradiantSubmit()
+ {
+ }
+ public static void BansGradiantSubmit()
+ {
+ }
+ public static void GlobalStatsGradiantSubmit()
+ {
+ }
+ public static void GoldDiffGradiantSubmit()
+ {
+ }
+
+
+
+ public static void BackgroundColorSubmit()
+ {
+ EndGameView1Page.formatingData.BackgroundColorDeg = textValueOverlayView1.BackgroundColorDeg.ToString();
+ EndGameView1Page.formatingData.BackgroundColorPercent1 = textValueOverlayView1.BackgroundColorPercent1.ToString();
+ EndGameView1Page.formatingData.BackgroundColorPercent2 = textValueOverlayView1.BackgroundColorPercent2.ToString();
+ EndGameView1Page.formatingData.BackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.BackgroundColorDeg}deg, {EndGameView1Page.formatingData.BackgroundColorColor1} {EndGameView1Page.formatingData.BackgroundColorPercent1}%, {EndGameView1Page.formatingData.BackgroundColorColor2} {EndGameView1Page.formatingData.BackgroundColorPercent2}%)";
+ }
+
+ public static void SetBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1.Equals("hidden"))
+ {
+ colorPickerOverlay1 = "visible";
+ colorValue = EndGameView1Page.formatingData.BackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1 = "hidden";
+ EndGameView1Page.formatingData.BackgroundColorColor1 = colorValue;
+ EndGameView1Page.formatingData.BackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.BackgroundColorDeg}deg, {EndGameView1Page.formatingData.BackgroundColorColor1} {EndGameView1Page.formatingData.BackgroundColorPercent1}%, {EndGameView1Page.formatingData.BackgroundColorColor2} {EndGameView1Page.formatingData.BackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1.Equals("hidden"))
+ {
+ colorPickerOverlay1 = "visible";
+ colorValue = EndGameView1Page.formatingData.BackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1 = "hidden";
+ EndGameView1Page.formatingData.BackgroundColorColor2 = colorValue;
+ EndGameView1Page.formatingData.BackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.BackgroundColorDeg}deg, {EndGameView1Page.formatingData.BackgroundColorColor1} {EndGameView1Page.formatingData.BackgroundColorPercent1}%, {EndGameView1Page.formatingData.BackgroundColorColor2} {EndGameView1Page.formatingData.BackgroundColorPercent2}%)";
+ }
+ }
+
+ public static void BackgroundColorEnableDisableSubmit()
+ {
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+ public static void TopBarBackgroundColorSubmit()
+ {
+ EndGameView1Page.formatingData.TopBarBackgroundColorDeg = textValueOverlayView1.TopBarBackgroundColorDeg.ToString();
+ EndGameView1Page.formatingData.TopBarBackgroundColorPercent1 = textValueOverlayView1.TopBarBackgroundColorPercent1.ToString();
+ EndGameView1Page.formatingData.TopBarBackgroundColorPercent2 = textValueOverlayView1.TopBarBackgroundColorPercent2.ToString();
+ EndGameView1Page.formatingData.TopBarBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.TopBarBackgroundColorDeg}deg, {EndGameView1Page.formatingData.TopBarBackgroundColorColor1} {EndGameView1Page.formatingData.TopBarBackgroundColorPercent1}%, {EndGameView1Page.formatingData.TopBarBackgroundColorColor2} {EndGameView1Page.formatingData.TopBarBackgroundColorPercent2}%)";
+ }
+
+ public static void SetTopBarBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView1Page.formatingData.TopBarBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView1Page.formatingData.TopBarBackgroundColorColor1 = colorValue;
+ EndGameView1Page.formatingData.TopBarBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.TopBarBackgroundColorDeg}deg, {EndGameView1Page.formatingData.TopBarBackgroundColorColor1} {EndGameView1Page.formatingData.TopBarBackgroundColorPercent1}%, {EndGameView1Page.formatingData.TopBarBackgroundColorColor2} {EndGameView1Page.formatingData.TopBarBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetTopBarBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView1Page.formatingData.TopBarBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView1Page.formatingData.TopBarBackgroundColorColor2 = colorValue;
+ EndGameView1Page.formatingData.TopBarBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.TopBarBackgroundColorDeg}deg, {EndGameView1Page.formatingData.TopBarBackgroundColorColor1} {EndGameView1Page.formatingData.TopBarBackgroundColorPercent1}%, {EndGameView1Page.formatingData.TopBarBackgroundColorColor2} {EndGameView1Page.formatingData.TopBarBackgroundColorPercent2}%)";
+ }
+ }
+
+ public static void TopBarBorderColorSubmit()
+ {
+ EndGameView1Page.formatingData.TopBarBorderColor = textValueOverlayView1.TopBarBorderColor.ToString() + "px solid " + TopBarBorderColorNotSet;
+ }
+ public static string TempsTopBarBorderColor()
+ {
+ string[] tempsColor = EndGameView1Page.formatingData.TopBarBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string TopBarBorderColorNotSet = EndGameView1Page.formatingData.TopBarBorderColor.Split(" ")[2];
+ public static void SetTopBarBorderColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ string[] tempsBorderColor = EndGameView1Page.formatingData.TopBarBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ TopBarBorderColorNotSet = colorValue;
+ }
+ }
+
+ public static void SetTopBarBlueTeamNameColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView1Page.formatingData.TopBarBlueTeamNameColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView1Page.formatingData.TopBarBlueTeamNameColor = colorValue;
+ }
+ }
+ public static void SetTopBarBlueTeamWinLossColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView1Page.formatingData.TopBarBlueTeamWinLossColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView1Page.formatingData.TopBarBlueTeamWinLossColor = colorValue;
+ }
+ }
+ public static void SetTopBarBlueTeamScoreColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView1Page.formatingData.TopBarBlueTeamScoreColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView1Page.formatingData.TopBarBlueTeamScoreColor = colorValue;
+ }
+ }
+ public static void SetTopBarRedTeamNameColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView1Page.formatingData.TopBarRedTeamNameColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView1Page.formatingData.TopBarRedTeamNameColor = colorValue;
+ }
+ }
+ public static void SetTopBarRedTeamWinLossColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView1Page.formatingData.TopBarRedTeamWinLossColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView1Page.formatingData.TopBarRedTeamWinLossColor = colorValue;
+ }
+ }
+ public static void SetTopBarRedTeamScoreColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView1Page.formatingData.TopBarRedTeamScoreColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView1Page.formatingData.TopBarRedTeamScoreColor = colorValue;
+ }
+ }
+ public static void SetTopBarTimerTextColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView1Page.formatingData.TopBarTimerTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView1Page.formatingData.TopBarTimerTextColor = colorValue;
+ }
+ }
+ public static void SetTopBarTimerColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView1Page.formatingData.TopBarTimerColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView1Page.formatingData.TopBarTimerColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+ public static void ChampionInfoBackgroundColorSubmit()
+ {
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColorDeg = textValueOverlayView1.ChampionInfoBackgroundColorDeg.ToString();
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent1 = textValueOverlayView1.ChampionInfoBackgroundColorPercent1.ToString();
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent2 = textValueOverlayView1.ChampionInfoBackgroundColorPercent2.ToString();
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.ChampionInfoBackgroundColorDeg}deg, {EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor1} {EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent1}%, {EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor2} {EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent2}%)";
+ }
+
+ public static void SetChampionInfoBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor1 = colorValue;
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.ChampionInfoBackgroundColorDeg}deg, {EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor1} {EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent1}%, {EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor2} {EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetChampionInfoBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor2 = colorValue;
+ EndGameView1Page.formatingData.ChampionInfoBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.ChampionInfoBackgroundColorDeg}deg, {EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor1} {EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent1}%, {EndGameView1Page.formatingData.ChampionInfoBackgroundColorColor2} {EndGameView1Page.formatingData.ChampionInfoBackgroundColorPercent2}%)";
+ }
+ }
+ public static void ChampionInfoBorderColorSubmit()
+ {
+ EndGameView1Page.formatingData.ChampionInfoBorderColor = textValueOverlayView1.ChampionInfoBorderColor.ToString() + "px solid " + ChampionInfoBorderColorNotSet;
+ }
+ public static string TempsChampionInfoBorderColor()
+ {
+ string[] tempsColor = EndGameView1Page.formatingData.ChampionInfoBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string ChampionInfoBorderColorNotSet = EndGameView1Page.formatingData.ChampionInfoBorderColor.Split(" ")[2];
+ public static void SetChampionInfoBorderColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ string[] tempsBorderColor = EndGameView1Page.formatingData.ChampionInfoBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ ChampionInfoBorderColorNotSet = colorValue;
+ }
+ }
+ public static void SetChampionInfoTextColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView1Page.formatingData.ChampionInfoTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView1Page.formatingData.ChampionInfoTextColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoBlueBarColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView1Page.formatingData.ChampionInfoBlueBarColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView1Page.formatingData.ChampionInfoBlueBarColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoBlueDegaTextColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView1Page.formatingData.ChampionInfoBlueDegaTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView1Page.formatingData.ChampionInfoBlueDegaTextColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoRedBarColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView1Page.formatingData.ChampionInfoRedBarColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView1Page.formatingData.ChampionInfoRedBarColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoRedDegaTextColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView1Page.formatingData.ChampionInfoRedDegaTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView1Page.formatingData.ChampionInfoRedDegaTextColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+ public static void BansBackgroundColorSubmit()
+ {
+ EndGameView1Page.formatingData.BansBackgroundColorDeg = textValueOverlayView1.BansBackgroundColorDeg.ToString();
+ EndGameView1Page.formatingData.BansBackgroundColorPercent1 = textValueOverlayView1.BansBackgroundColorPercent1.ToString();
+ EndGameView1Page.formatingData.BansBackgroundColorPercent2 = textValueOverlayView1.BansBackgroundColorPercent2.ToString();
+ EndGameView1Page.formatingData.BansBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView1Page.formatingData.BansBackgroundColorColor1} {EndGameView1Page.formatingData.BansBackgroundColorPercent1}%, {EndGameView1Page.formatingData.BansBackgroundColorColor2} {EndGameView1Page.formatingData.BansBackgroundColorPercent2}%)";
+ }
+
+ public static void SetBansBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ colorValue = EndGameView1Page.formatingData.BansBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ EndGameView1Page.formatingData.BansBackgroundColorColor1 = colorValue;
+ EndGameView1Page.formatingData.BansBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView1Page.formatingData.BansBackgroundColorColor1} {EndGameView1Page.formatingData.BansBackgroundColorPercent1}%, {EndGameView1Page.formatingData.BansBackgroundColorColor2} {EndGameView1Page.formatingData.BansBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetBansBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ colorValue = EndGameView1Page.formatingData.BansBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ EndGameView1Page.formatingData.BansBackgroundColorColor2 = colorValue;
+ EndGameView1Page.formatingData.BansBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView1Page.formatingData.BansBackgroundColorColor1} {EndGameView1Page.formatingData.BansBackgroundColorPercent1}%, {EndGameView1Page.formatingData.BansBackgroundColorColor2} {EndGameView1Page.formatingData.BansBackgroundColorPercent2}%)";
+ }
+ }
+ public static void BansBorderColorSubmit()
+ {
+ EndGameView1Page.formatingData.BansBorderColor = textValueOverlayView1.BansBorderColor.ToString() + "px solid " + BansBorderColorNotSet;
+ }
+ public static string TempsBansBorderColor()
+ {
+ string[] tempsColor = EndGameView1Page.formatingData.BansBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string BansBorderColorNotSet = EndGameView1Page.formatingData.BansBorderColor.Split(" ")[2];
+ public static void SetBansBorderColor()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ string[] tempsBorderColor = EndGameView1Page.formatingData.BansBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ BansBorderColorNotSet = colorValue;
+ }
+ }
+
+ public static void SetBansTextColor()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ colorValue = EndGameView1Page.formatingData.BansTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ EndGameView1Page.formatingData.BansTextColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ public static void GlobalStatsBackgroundColorSubmit()
+ {
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColorDeg = textValueOverlayView1.GlobalStatsBackgroundColorDeg.ToString();
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent1 = textValueOverlayView1.GlobalStatsBackgroundColorPercent1.ToString();
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent2 = textValueOverlayView1.GlobalStatsBackgroundColorPercent2.ToString();
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.GlobalStatsBackgroundColorDeg}deg, {EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor1} {EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent1}%, {EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor2} {EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent2}%)";
+ }
+
+ public static void SetGlobalStatsBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor1 = colorValue;
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.GlobalStatsBackgroundColorDeg}deg, {EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor1} {EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent1}%, {EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor2} {EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetGlobalStatsBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor2 = colorValue;
+ EndGameView1Page.formatingData.GlobalStatsBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView1Page.formatingData.BansBackgroundColorColor1} {EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent1}%, {EndGameView1Page.formatingData.GlobalStatsBackgroundColorColor2} {EndGameView1Page.formatingData.GlobalStatsBackgroundColorPercent2}%)";
+ }
+ }
+ public static void GlobalStatsBorderColorSubmit()
+ {
+ EndGameView1Page.formatingData.GlobalStatsBorderColor = textValueOverlayView1.GlobalStatsBorderColor.ToString() + "px solid " + GlobalStatsBorderColorNotSet;
+ }
+ public static string TempsGlobalStatsBorderColor()
+ {
+ string[] tempsColor = EndGameView1Page.formatingData.GlobalStatsBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string GlobalStatsBorderColorNotSet = EndGameView1Page.formatingData.GlobalStatsBorderColor.Split(" ")[2];
+ public static void SetGlobalStatsBorderColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ string[] tempsBorderColor = EndGameView1Page.formatingData.GlobalStatsBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ GlobalStatsBorderColorNotSet = colorValue;
+ }
+ }
+ public static void SetGlobalStatsTextColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView1Page.formatingData.GlobalStatsTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView1Page.formatingData.GlobalStatsTextColor = colorValue;
+ }
+ }
+
+ public static void SetGlobalStatsBlueTextColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView1Page.formatingData.GlobalStatsBlueTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView1Page.formatingData.GlobalStatsBlueTextColor = colorValue;
+ }
+ }
+
+ public static void SetGlobalStatsRedTextColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView1Page.formatingData.GlobalStatsRedTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView1Page.formatingData.GlobalStatsRedTextColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+ public static void GoldDiffBackgroundColorSubmit()
+ {
+ EndGameView1Page.formatingData.GoldDiffBackgroundColorDeg = textValueOverlayView1.GoldDiffBackgroundColorDeg.ToString();
+ EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent1 = textValueOverlayView1.GoldDiffBackgroundColorPercent1.ToString();
+ EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent2 = textValueOverlayView1.GoldDiffBackgroundColorPercent2.ToString();
+ EndGameView1Page.formatingData.GoldDiffBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.GoldDiffBackgroundColorDeg}deg, {EndGameView1Page.formatingData.GoldDiffBackgroundColorColor1} {EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent1}%, {EndGameView1Page.formatingData.GoldDiffBackgroundColorColor2} {EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent2}%)";
+ }
+
+ public static void SetGoldDiffBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView1Page.formatingData.GoldDiffBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView1Page.formatingData.GoldDiffBackgroundColorColor1 = colorValue;
+ EndGameView1Page.formatingData.GoldDiffBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.GoldDiffBackgroundColorDeg}deg, {EndGameView1Page.formatingData.GoldDiffBackgroundColorColor1} {EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent1}%, {EndGameView1Page.formatingData.GoldDiffBackgroundColorColor2} {EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetGoldDiffBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView1Page.formatingData.GoldDiffBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView1Page.formatingData.GoldDiffBackgroundColorColor2 = colorValue;
+ EndGameView1Page.formatingData.GoldDiffBackgroundColor = $"linear-gradient({EndGameView1Page.formatingData.GoldDiffBackgroundColorDeg}deg, {EndGameView1Page.formatingData.GoldDiffBackgroundColorColor1} {EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent1}%, {EndGameView1Page.formatingData.GoldDiffBackgroundColorColor2} {EndGameView1Page.formatingData.GoldDiffBackgroundColorPercent2}%)";
+ }
+ }
+ public static void GoldDiffBorderColorSubmit()
+ {
+ EndGameView1Page.formatingData.GoldDiffBorderColor = textValueOverlayView1.GoldDiffBorderColor.ToString() + "px solid " + GoldDiffBorderColorNotSet;
+ }
+ public static string TempsGoldDiffBorderColor()
+ {
+ string[] tempsColor = EndGameView1Page.formatingData.GoldDiffBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string GoldDiffBorderColorNotSet = EndGameView1Page.formatingData.GoldDiffBorderColor.Split(" ")[2];
+ public static void SetGoldDiffBorderColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ string[] tempsBorderColor = EndGameView1Page.formatingData.GoldDiffBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ GoldDiffBorderColorNotSet = colorValue;
+ }
+ }
+ public static void GoldDiffBarColorSubmit()
+ {
+ EndGameView1Page.formatingData.GoldDiffBarColor = textValueOverlayView1.GoldDiffBarColor.ToString() + "px dashed " + GoldDiffBarColorNotSet;
+ }
+ public static string TempsGoldDiffBarColor()
+ {
+ string[] tempsColor = EndGameView1Page.formatingData.GoldDiffBarColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string GoldDiffBarColorNotSet = EndGameView1Page.formatingData.GoldDiffBarColor.Split(" ")[2];
+ public static void SetGoldDiffBarColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ string[] tempsBorderColor = EndGameView1Page.formatingData.GoldDiffBarColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ GoldDiffBarColorNotSet = colorValue;
+ }
+ }
+ public static void SetGoldDiffTextColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView1Page.formatingData.GoldDiffTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView1Page.formatingData.GoldDiffTextColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffBlueTextGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView1Page.formatingData.GoldDiffBlueTextGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView1Page.formatingData.GoldDiffBlueTextGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffRedTextGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView1Page.formatingData.GoldDiffRedTextGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView1Page.formatingData.GoldDiffRedTextGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffZeroTextGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView1Page.formatingData.GoldDiffZeroTextGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView1Page.formatingData.GoldDiffZeroTextGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffBluePointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView1Page.formatingData.GoldDiffBluePointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView1Page.formatingData.GoldDiffBluePointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffRedPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView1Page.formatingData.GoldDiffRedPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView1Page.formatingData.GoldDiffRedPointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffZeroPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView1Page.formatingData.GoldDiffZeroPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView1Page.formatingData.GoldDiffZeroPointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffStartEndPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView1Page.formatingData.GoldDiffStartEndPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView1Page.formatingData.GoldDiffStartEndPointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffLinkPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView1Page.formatingData.GoldDiffLinkPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView1Page.formatingData.GoldDiffLinkPointGoldColor = colorValue;
+ }
+ }
+ }
+
+ //view 2
+ public class TextValueOverlayView2
+ {
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? TopBarBlueTeamName { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? TopBarRedTeamName { get; set; }
+ [StringLength(5, ErrorMessage = "Name is too long (5 character limit).")]
+ public string? TopBarBlueTeamScore { get; set; }
+ [StringLength(5, ErrorMessage = "Name is too long (5 character limit).")]
+ public string? TopBarRedTeamScore { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? TopBarTimerText { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? ChampionInfoText { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? GoldDiffText { get; set; }
+
+ public bool BackgroundColor { get; set; } = true;
+ public bool TopBarGradiant { get; set; } = true;
+ public bool ChampionInfoGradiant { get; set; } = true;
+ public bool BansGradiant { get; set; } = true;
+ public bool GlobalStatsGradiant { get; set; } = true;
+ public bool GoldDiffGradiant { get; set; } = true;
+
+
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int BackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BackgroundColorPercent2 { get; set; } = 100;
+
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int TopBarBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int TopBarBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int TopBarBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int ChampionInfoBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int ChampionInfoBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int ChampionInfoBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int BansBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BansBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BansBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int GlobalStatsBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GlobalStatsBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GlobalStatsBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int GoldDiffBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GoldDiffBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GoldDiffBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int TopBarBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int ChampionInfoBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int BansBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int GlobalStatsBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int GoldDiffBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int GoldDiffBarColor { get; set; } = 1;
+
+ public static void TopBarBlueTeamNameSubmit()
+ {
+ EndGameView2Page.formatingData.TopBarBlueTeamName = textValueOverlayView2.TopBarBlueTeamName;
+ }
+ public static void TopBarRedTeamNameSubmit()
+ {
+ EndGameView2Page.formatingData.TopBarRedTeamName = textValueOverlayView2.TopBarRedTeamName;
+ }
+ public static void TopBarBlueTeamScoreSubmit()
+ {
+ EndGameView2Page.formatingData.TopBarBlueTeamScore = textValueOverlayView2.TopBarBlueTeamScore;
+ }
+ public static void TopBarRedTeamScoreSubmit()
+ {
+ EndGameView2Page.formatingData.TopBarRedTeamScore = textValueOverlayView2.TopBarRedTeamScore;
+ }
+ public static void SwitchSideRedBlue()
+ {
+ string tempsTopBarBlueTeamName = EndGameView2Page.formatingData.TopBarBlueTeamName;
+ string tempsTopBarBlueTeamScore = EndGameView2Page.formatingData.TopBarBlueTeamScore;
+ string tempsTopBarRedTeamName = EndGameView2Page.formatingData.TopBarRedTeamName;
+ string tempsTopBarRedTeamScore = EndGameView2Page.formatingData.TopBarRedTeamScore;
+ string tempsRextValueOverlayView2TopBarBlueTeamName = textValueOverlayView2.TopBarBlueTeamName;
+ string tempsRextValueOverlayView2TopBarBlueTeamScore = textValueOverlayView2.TopBarBlueTeamScore;
+ string tempsRextValueOverlayView2TopBarRedTeamName = textValueOverlayView2.TopBarRedTeamName;
+ string tempsRextValueOverlayView2TopBarRedTeamScore = textValueOverlayView2.TopBarRedTeamScore;
+ EndGameView2Page.formatingData.TopBarBlueTeamName = tempsTopBarRedTeamName;
+ EndGameView2Page.formatingData.TopBarBlueTeamScore = tempsTopBarRedTeamScore;
+ EndGameView2Page.formatingData.TopBarRedTeamName = tempsTopBarBlueTeamName;
+ EndGameView2Page.formatingData.TopBarRedTeamScore = tempsTopBarBlueTeamScore;
+ textValueOverlayView2.TopBarBlueTeamName = tempsRextValueOverlayView2TopBarRedTeamName;
+ textValueOverlayView2.TopBarBlueTeamScore = tempsRextValueOverlayView2TopBarRedTeamScore;
+ textValueOverlayView2.TopBarRedTeamName = tempsRextValueOverlayView2TopBarBlueTeamName;
+ textValueOverlayView2.TopBarRedTeamScore = tempsRextValueOverlayView2TopBarBlueTeamScore;
+ }
+
+ public static void TopBarGradiantSubmit()
+ {
+ }
+ public static void ChampionInfoGradiantSubmit()
+ {
+ }
+ public static void BansGradiantSubmit()
+ {
+ }
+ public static void GlobalStatsGradiantSubmit()
+ {
+ }
+ public static void GoldDiffGradiantSubmit()
+ {
+ }
+
+
+
+ public static void BackgroundColorSubmit()
+ {
+ EndGameView2Page.formatingData.BackgroundColorDeg = textValueOverlayView2.BackgroundColorDeg.ToString();
+ EndGameView2Page.formatingData.BackgroundColorPercent1 = textValueOverlayView2.BackgroundColorPercent1.ToString();
+ EndGameView2Page.formatingData.BackgroundColorPercent2 = textValueOverlayView2.BackgroundColorPercent2.ToString();
+ EndGameView2Page.formatingData.BackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.BackgroundColorDeg}deg, {EndGameView2Page.formatingData.BackgroundColorColor1} {EndGameView2Page.formatingData.BackgroundColorPercent1}%, {EndGameView2Page.formatingData.BackgroundColorColor2} {EndGameView2Page.formatingData.BackgroundColorPercent2}%)";
+ }
+
+ public static void SetBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1.Equals("hidden"))
+ {
+ colorPickerOverlay1 = "visible";
+ colorValue = EndGameView2Page.formatingData.BackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1 = "hidden";
+ EndGameView2Page.formatingData.BackgroundColorColor1 = colorValue;
+ EndGameView2Page.formatingData.BackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.BackgroundColorDeg}deg, {EndGameView2Page.formatingData.BackgroundColorColor1} {EndGameView2Page.formatingData.BackgroundColorPercent1}%, {EndGameView2Page.formatingData.BackgroundColorColor2} {EndGameView2Page.formatingData.BackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1.Equals("hidden"))
+ {
+ colorPickerOverlay1 = "visible";
+ colorValue = EndGameView2Page.formatingData.BackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1 = "hidden";
+ EndGameView2Page.formatingData.BackgroundColorColor2 = colorValue;
+ EndGameView2Page.formatingData.BackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.BackgroundColorDeg}deg, {EndGameView2Page.formatingData.BackgroundColorColor1} {EndGameView2Page.formatingData.BackgroundColorPercent1}%, {EndGameView2Page.formatingData.BackgroundColorColor2} {EndGameView2Page.formatingData.BackgroundColorPercent2}%)";
+ }
+ }
+
+ public static void BackgroundColorEnableDisableSubmit()
+ {
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+ public static void TopBarBackgroundColorSubmit()
+ {
+ EndGameView2Page.formatingData.TopBarBackgroundColorDeg = textValueOverlayView2.TopBarBackgroundColorDeg.ToString();
+ EndGameView2Page.formatingData.TopBarBackgroundColorPercent1 = textValueOverlayView2.TopBarBackgroundColorPercent1.ToString();
+ EndGameView2Page.formatingData.TopBarBackgroundColorPercent2 = textValueOverlayView2.TopBarBackgroundColorPercent2.ToString();
+ EndGameView2Page.formatingData.TopBarBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.TopBarBackgroundColorDeg}deg, {EndGameView2Page.formatingData.TopBarBackgroundColorColor1} {EndGameView2Page.formatingData.TopBarBackgroundColorPercent1}%, {EndGameView2Page.formatingData.TopBarBackgroundColorColor2} {EndGameView2Page.formatingData.TopBarBackgroundColorPercent2}%)";
+ }
+
+ public static void SetTopBarBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView2Page.formatingData.TopBarBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView2Page.formatingData.TopBarBackgroundColorColor1 = colorValue;
+ EndGameView2Page.formatingData.TopBarBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.TopBarBackgroundColorDeg}deg, {EndGameView2Page.formatingData.TopBarBackgroundColorColor1} {EndGameView2Page.formatingData.TopBarBackgroundColorPercent1}%, {EndGameView2Page.formatingData.TopBarBackgroundColorColor2} {EndGameView2Page.formatingData.TopBarBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetTopBarBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView2Page.formatingData.TopBarBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView2Page.formatingData.TopBarBackgroundColorColor2 = colorValue;
+ EndGameView2Page.formatingData.TopBarBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.TopBarBackgroundColorDeg}deg, {EndGameView2Page.formatingData.TopBarBackgroundColorColor1} {EndGameView2Page.formatingData.TopBarBackgroundColorPercent1}%, {EndGameView2Page.formatingData.TopBarBackgroundColorColor2} {EndGameView2Page.formatingData.TopBarBackgroundColorPercent2}%)";
+ }
+ }
+
+ public static void TopBarBorderColorSubmit()
+ {
+ EndGameView2Page.formatingData.TopBarBorderColor = textValueOverlayView2.TopBarBorderColor.ToString() + "px solid " + TopBarBorderColorNotSet;
+ }
+ public static string TempsTopBarBorderColor()
+ {
+ string[] tempsColor = EndGameView2Page.formatingData.TopBarBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string TopBarBorderColorNotSet = EndGameView2Page.formatingData.TopBarBorderColor.Split(" ")[2];
+ public static void SetTopBarBorderColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ string[] tempsBorderColor = EndGameView2Page.formatingData.TopBarBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ TopBarBorderColorNotSet = colorValue;
+ }
+ }
+
+ public static void SetTopBarBlueTeamNameColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView2Page.formatingData.TopBarBlueTeamNameColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView2Page.formatingData.TopBarBlueTeamNameColor = colorValue;
+ }
+ }
+ public static void SetTopBarBlueTeamWinLossColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView2Page.formatingData.TopBarBlueTeamWinLossColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView2Page.formatingData.TopBarBlueTeamWinLossColor = colorValue;
+ }
+ }
+ public static void SetTopBarBlueTeamScoreColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView2Page.formatingData.TopBarBlueTeamScoreColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView2Page.formatingData.TopBarBlueTeamScoreColor = colorValue;
+ }
+ }
+ public static void SetTopBarRedTeamNameColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView2Page.formatingData.TopBarRedTeamNameColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView2Page.formatingData.TopBarRedTeamNameColor = colorValue;
+ }
+ }
+ public static void SetTopBarRedTeamWinLossColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView2Page.formatingData.TopBarRedTeamWinLossColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView2Page.formatingData.TopBarRedTeamWinLossColor = colorValue;
+ }
+ }
+ public static void SetTopBarRedTeamScoreColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView2Page.formatingData.TopBarRedTeamScoreColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView2Page.formatingData.TopBarRedTeamScoreColor = colorValue;
+ }
+ }
+ public static void SetTopBarTimerTextColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView2Page.formatingData.TopBarTimerTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView2Page.formatingData.TopBarTimerTextColor = colorValue;
+ }
+ }
+ public static void SetTopBarTimerColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView2Page.formatingData.TopBarTimerColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView2Page.formatingData.TopBarTimerColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+ public static void ChampionInfoBackgroundColorSubmit()
+ {
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColorDeg = textValueOverlayView2.ChampionInfoBackgroundColorDeg.ToString();
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent1 = textValueOverlayView2.ChampionInfoBackgroundColorPercent1.ToString();
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent2 = textValueOverlayView2.ChampionInfoBackgroundColorPercent2.ToString();
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.ChampionInfoBackgroundColorDeg}deg, {EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor1} {EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent1}%, {EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor2} {EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent2}%)";
+ }
+
+ public static void SetChampionInfoBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor1 = colorValue;
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.ChampionInfoBackgroundColorDeg}deg, {EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor1} {EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent1}%, {EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor2} {EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetChampionInfoBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor2 = colorValue;
+ EndGameView2Page.formatingData.ChampionInfoBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.ChampionInfoBackgroundColorDeg}deg, {EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor1} {EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent1}%, {EndGameView2Page.formatingData.ChampionInfoBackgroundColorColor2} {EndGameView2Page.formatingData.ChampionInfoBackgroundColorPercent2}%)";
+ }
+ }
+ public static void ChampionInfoBorderColorSubmit()
+ {
+ EndGameView2Page.formatingData.ChampionInfoBorderColor = textValueOverlayView2.ChampionInfoBorderColor.ToString() + "px solid " + ChampionInfoBorderColorNotSet;
+ }
+ public static string TempsChampionInfoBorderColor()
+ {
+ string[] tempsColor = EndGameView2Page.formatingData.ChampionInfoBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string ChampionInfoBorderColorNotSet = EndGameView2Page.formatingData.ChampionInfoBorderColor.Split(" ")[2];
+ public static void SetChampionInfoBorderColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ string[] tempsBorderColor = EndGameView2Page.formatingData.ChampionInfoBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ ChampionInfoBorderColorNotSet = colorValue;
+ }
+ }
+ public static void SetChampionInfoTextColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView2Page.formatingData.ChampionInfoTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView2Page.formatingData.ChampionInfoTextColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoBlueBarColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView2Page.formatingData.ChampionInfoBlueBarColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView2Page.formatingData.ChampionInfoBlueBarColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoBlueDegaTextColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView2Page.formatingData.ChampionInfoBlueDegaTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView2Page.formatingData.ChampionInfoBlueDegaTextColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoRedBarColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView2Page.formatingData.ChampionInfoRedBarColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView2Page.formatingData.ChampionInfoRedBarColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoRedDegaTextColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView2Page.formatingData.ChampionInfoRedDegaTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView2Page.formatingData.ChampionInfoRedDegaTextColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+ public static void BansBackgroundColorSubmit()
+ {
+ EndGameView2Page.formatingData.BansBackgroundColorDeg = textValueOverlayView2.BansBackgroundColorDeg.ToString();
+ EndGameView2Page.formatingData.BansBackgroundColorPercent1 = textValueOverlayView2.BansBackgroundColorPercent1.ToString();
+ EndGameView2Page.formatingData.BansBackgroundColorPercent2 = textValueOverlayView2.BansBackgroundColorPercent2.ToString();
+ EndGameView2Page.formatingData.BansBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView2Page.formatingData.BansBackgroundColorColor1} {EndGameView2Page.formatingData.BansBackgroundColorPercent1}%, {EndGameView2Page.formatingData.BansBackgroundColorColor2} {EndGameView2Page.formatingData.BansBackgroundColorPercent2}%)";
+ }
+
+ public static void SetBansBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ colorValue = EndGameView2Page.formatingData.BansBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ EndGameView2Page.formatingData.BansBackgroundColorColor1 = colorValue;
+ EndGameView2Page.formatingData.BansBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView2Page.formatingData.BansBackgroundColorColor1} {EndGameView2Page.formatingData.BansBackgroundColorPercent1}%, {EndGameView2Page.formatingData.BansBackgroundColorColor2} {EndGameView2Page.formatingData.BansBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetBansBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ colorValue = EndGameView2Page.formatingData.BansBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ EndGameView2Page.formatingData.BansBackgroundColorColor2 = colorValue;
+ EndGameView2Page.formatingData.BansBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView2Page.formatingData.BansBackgroundColorColor1} {EndGameView2Page.formatingData.BansBackgroundColorPercent1}%, {EndGameView2Page.formatingData.BansBackgroundColorColor2} {EndGameView2Page.formatingData.BansBackgroundColorPercent2}%)";
+ }
+ }
+ public static void BansBorderColorSubmit()
+ {
+ EndGameView2Page.formatingData.BansBorderColor = textValueOverlayView2.BansBorderColor.ToString() + "px solid " + BansBorderColorNotSet;
+ }
+ public static string TempsBansBorderColor()
+ {
+ string[] tempsColor = EndGameView2Page.formatingData.BansBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string BansBorderColorNotSet = EndGameView2Page.formatingData.BansBorderColor.Split(" ")[2];
+ public static void SetBansBorderColor()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ string[] tempsBorderColor = EndGameView2Page.formatingData.BansBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ BansBorderColorNotSet = colorValue;
+ }
+ }
+
+ public static void SetBansTextColor()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ colorValue = EndGameView2Page.formatingData.BansTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ EndGameView2Page.formatingData.BansTextColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ public static void GlobalStatsBackgroundColorSubmit()
+ {
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColorDeg = textValueOverlayView2.GlobalStatsBackgroundColorDeg.ToString();
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent1 = textValueOverlayView2.GlobalStatsBackgroundColorPercent1.ToString();
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent2 = textValueOverlayView2.GlobalStatsBackgroundColorPercent2.ToString();
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.GlobalStatsBackgroundColorDeg}deg, {EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor1} {EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent1}%, {EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor2} {EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent2}%)";
+ }
+
+ public static void SetGlobalStatsBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor1 = colorValue;
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.GlobalStatsBackgroundColorDeg}deg, {EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor1} {EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent1}%, {EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor2} {EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetGlobalStatsBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor2 = colorValue;
+ EndGameView2Page.formatingData.GlobalStatsBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView2Page.formatingData.BansBackgroundColorColor1} {EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent1}%, {EndGameView2Page.formatingData.GlobalStatsBackgroundColorColor2} {EndGameView2Page.formatingData.GlobalStatsBackgroundColorPercent2}%)";
+ }
+ }
+ public static void GlobalStatsBorderColorSubmit()
+ {
+ EndGameView2Page.formatingData.GlobalStatsBorderColor = textValueOverlayView2.GlobalStatsBorderColor.ToString() + "px solid " + GlobalStatsBorderColorNotSet;
+ }
+ public static string TempsGlobalStatsBorderColor()
+ {
+ string[] tempsColor = EndGameView2Page.formatingData.GlobalStatsBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string GlobalStatsBorderColorNotSet = EndGameView2Page.formatingData.GlobalStatsBorderColor.Split(" ")[2];
+ public static void SetGlobalStatsBorderColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ string[] tempsBorderColor = EndGameView2Page.formatingData.GlobalStatsBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ GlobalStatsBorderColorNotSet = colorValue;
+ }
+ }
+ public static void SetGlobalStatsTextColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView2Page.formatingData.GlobalStatsTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView2Page.formatingData.GlobalStatsTextColor = colorValue;
+ }
+ }
+
+ public static void SetGlobalStatsBlueTextColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView2Page.formatingData.GlobalStatsBlueTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView2Page.formatingData.GlobalStatsBlueTextColor = colorValue;
+ }
+ }
+
+ public static void SetGlobalStatsRedTextColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView2Page.formatingData.GlobalStatsRedTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView2Page.formatingData.GlobalStatsRedTextColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+ public static void GoldDiffBackgroundColorSubmit()
+ {
+ EndGameView2Page.formatingData.GoldDiffBackgroundColorDeg = textValueOverlayView2.GoldDiffBackgroundColorDeg.ToString();
+ EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent1 = textValueOverlayView2.GoldDiffBackgroundColorPercent1.ToString();
+ EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent2 = textValueOverlayView2.GoldDiffBackgroundColorPercent2.ToString();
+ EndGameView2Page.formatingData.GoldDiffBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.GoldDiffBackgroundColorDeg}deg, {EndGameView2Page.formatingData.GoldDiffBackgroundColorColor1} {EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent1}%, {EndGameView2Page.formatingData.GoldDiffBackgroundColorColor2} {EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent2}%)";
+ }
+
+ public static void SetGoldDiffBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView2Page.formatingData.GoldDiffBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView2Page.formatingData.GoldDiffBackgroundColorColor1 = colorValue;
+ EndGameView2Page.formatingData.GoldDiffBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.GoldDiffBackgroundColorDeg}deg, {EndGameView2Page.formatingData.GoldDiffBackgroundColorColor1} {EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent1}%, {EndGameView2Page.formatingData.GoldDiffBackgroundColorColor2} {EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetGoldDiffBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView2Page.formatingData.GoldDiffBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView2Page.formatingData.GoldDiffBackgroundColorColor2 = colorValue;
+ EndGameView2Page.formatingData.GoldDiffBackgroundColor = $"linear-gradient({EndGameView2Page.formatingData.GoldDiffBackgroundColorDeg}deg, {EndGameView2Page.formatingData.GoldDiffBackgroundColorColor1} {EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent1}%, {EndGameView2Page.formatingData.GoldDiffBackgroundColorColor2} {EndGameView2Page.formatingData.GoldDiffBackgroundColorPercent2}%)";
+ }
+ }
+ public static void GoldDiffBorderColorSubmit()
+ {
+ EndGameView2Page.formatingData.GoldDiffBorderColor = textValueOverlayView2.GoldDiffBorderColor.ToString() + "px solid " + GoldDiffBorderColorNotSet;
+ }
+ public static string TempsGoldDiffBorderColor()
+ {
+ string[] tempsColor = EndGameView2Page.formatingData.GoldDiffBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string GoldDiffBorderColorNotSet = EndGameView2Page.formatingData.GoldDiffBorderColor.Split(" ")[2];
+ public static void SetGoldDiffBorderColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ string[] tempsBorderColor = EndGameView2Page.formatingData.GoldDiffBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ GoldDiffBorderColorNotSet = colorValue;
+ }
+ }
+ public static void GoldDiffBarColorSubmit()
+ {
+ EndGameView2Page.formatingData.GoldDiffBarColor = textValueOverlayView2.GoldDiffBarColor.ToString() + "px dashed " + GoldDiffBarColorNotSet;
+ }
+ public static string TempsGoldDiffBarColor()
+ {
+ string[] tempsColor = EndGameView2Page.formatingData.GoldDiffBarColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string GoldDiffBarColorNotSet = EndGameView2Page.formatingData.GoldDiffBarColor.Split(" ")[2];
+ public static void SetGoldDiffBarColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ string[] tempsBorderColor = EndGameView2Page.formatingData.GoldDiffBarColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ GoldDiffBarColorNotSet = colorValue;
+ }
+ }
+ public static void SetGoldDiffTextColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView2Page.formatingData.GoldDiffTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView2Page.formatingData.GoldDiffTextColor = colorValue;
+ }
+ }
+
+ public static void SetGoldDiffBlueTextGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView2Page.formatingData.GoldDiffBlueTextGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView2Page.formatingData.GoldDiffBlueTextGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffRedTextGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView2Page.formatingData.GoldDiffRedTextGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView2Page.formatingData.GoldDiffRedTextGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffZeroTextGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView2Page.formatingData.GoldDiffZeroTextGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView2Page.formatingData.GoldDiffZeroTextGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffBluePointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView2Page.formatingData.GoldDiffBluePointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView2Page.formatingData.GoldDiffBluePointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffRedPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView2Page.formatingData.GoldDiffRedPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView2Page.formatingData.GoldDiffRedPointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffZeroPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView2Page.formatingData.GoldDiffZeroPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView2Page.formatingData.GoldDiffZeroPointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffStartEndPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView2Page.formatingData.GoldDiffStartEndPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView2Page.formatingData.GoldDiffStartEndPointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffLinkPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView2Page.formatingData.GoldDiffLinkPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView2Page.formatingData.GoldDiffLinkPointGoldColor = colorValue;
+ }
+ }
+ }
+
+ //view 3
+ public class TextValueOverlayView3
+ {
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? TopBarBlueTeamName { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? TopBarRedTeamName { get; set; }
+ [StringLength(5, ErrorMessage = "Name is too long (5 character limit).")]
+ public string? TopBarBlueTeamScore { get; set; }
+ [StringLength(5, ErrorMessage = "Name is too long (5 character limit).")]
+ public string? TopBarRedTeamScore { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? TopBarTimerText { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? ChampionInfoText { get; set; }
+ [StringLength(20, ErrorMessage = "Name is too long (20 character limit).")]
+ public string? GoldDiffText { get; set; }
+
+ public bool BackgroundColor { get; set; } = true;
+ public bool TopBarGradiant { get; set; } = false;
+ public bool ChampionInfoGradiant { get; set; } = false;
+ public bool BansGradiant { get; set; } = false;
+ public bool GlobalStatsGradiant { get; set; } = false;
+ public bool GoldDiffGradiant { get; set; } = false;
+ public bool TopBarBackground { get; set; } = false;
+ public bool ChampionInfoBackground { get; set; } = false;
+ public bool BansBackground { get; set; } = false;
+ public bool GlobalStatsBackground { get; set; } = false;
+ public bool GoldDiffBackground { get; set; } = false;
+
+
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int BackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BackgroundColorPercent2 { get; set; } = 100;
+
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int TopBarBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int TopBarBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int TopBarBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int ChampionInfoBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int ChampionInfoBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int ChampionInfoBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int BansBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BansBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int BansBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int GlobalStatsBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GlobalStatsBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GlobalStatsBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(-360, 360, ErrorMessage = "Accommodation invalid (-360-360).")]
+ public int GoldDiffBackgroundColorDeg { get; set; } = 90;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GoldDiffBackgroundColorPercent1 { get; set; } = 0;
+
+ [Required]
+ [Range(0, 100, ErrorMessage = "Accommodation invalid (0-100).")]
+ public int GoldDiffBackgroundColorPercent2 { get; set; } = 100;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int TopBarBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int ChampionInfoBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int BansBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int GlobalStatsBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int GlobalStatsSeparationColor { get; set; } = 2;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int GoldDiffBorderColor { get; set; } = 5;
+ [Required]
+ [Range(0, 10, ErrorMessage = "Accommodation invalid (1-10).")]
+ public int GoldDiffBarColor { get; set; } = 1;
+
+
+ public static void TopBarBlueTeamNameSubmit()
+ {
+ EndGameView3Page.formatingData.TopBarBlueTeamName = textValueOverlayView3.TopBarBlueTeamName;
+ }
+ public static void TopBarRedTeamNameSubmit()
+ {
+ EndGameView3Page.formatingData.TopBarRedTeamName = textValueOverlayView3.TopBarRedTeamName;
+ }
+ public static void TopBarBlueTeamScoreSubmit()
+ {
+ EndGameView3Page.formatingData.TopBarBlueTeamScore = textValueOverlayView3.TopBarBlueTeamScore;
+ }
+ public static void TopBarRedTeamScoreSubmit()
+ {
+ EndGameView3Page.formatingData.TopBarRedTeamScore = textValueOverlayView3.TopBarRedTeamScore;
+ }
+ public static void SwitchSideRedBlue()
+ {
+ string tempsTopBarBlueTeamName = EndGameView3Page.formatingData.TopBarBlueTeamName;
+ string tempsTopBarBlueTeamScore = EndGameView3Page.formatingData.TopBarBlueTeamScore;
+ string tempsTopBarRedTeamName = EndGameView3Page.formatingData.TopBarRedTeamName;
+ string tempsTopBarRedTeamScore = EndGameView3Page.formatingData.TopBarRedTeamScore;
+ string tempsRextValueOverlayView3TopBarBlueTeamName = textValueOverlayView3.TopBarBlueTeamName;
+ string tempsRextValueOverlayView3TopBarBlueTeamScore = textValueOverlayView3.TopBarBlueTeamScore;
+ string tempsRextValueOverlayView3TopBarRedTeamName = textValueOverlayView3.TopBarRedTeamName;
+ string tempsRextValueOverlayView3TopBarRedTeamScore = textValueOverlayView3.TopBarRedTeamScore;
+ EndGameView3Page.formatingData.TopBarBlueTeamName = tempsTopBarRedTeamName;
+ EndGameView3Page.formatingData.TopBarBlueTeamScore = tempsTopBarRedTeamScore;
+ EndGameView3Page.formatingData.TopBarRedTeamName = tempsTopBarBlueTeamName;
+ EndGameView3Page.formatingData.TopBarRedTeamScore = tempsTopBarBlueTeamScore;
+ textValueOverlayView3.TopBarBlueTeamName = tempsRextValueOverlayView3TopBarRedTeamName;
+ textValueOverlayView3.TopBarBlueTeamScore = tempsRextValueOverlayView3TopBarRedTeamScore;
+ textValueOverlayView3.TopBarRedTeamName = tempsRextValueOverlayView3TopBarBlueTeamName;
+ textValueOverlayView3.TopBarRedTeamScore = tempsRextValueOverlayView3TopBarBlueTeamScore;
+ }
+
+ public static void TopBarBackgroundSubmit()
+ {
+ }
+ public static void ChampionInfoBackgroundSubmit()
+ {
+ }
+ public static void BansBackgroundSubmit()
+ {
+ }
+ public static void GlobalStatsBackgroundSubmit()
+ {
+ }
+ public static void GoldDiffBackgroundSubmit()
+ {
+ }
+ public static void TopBarGradiantSubmit()
+ {
+ }
+ public static void ChampionInfoGradiantSubmit()
+ {
+ }
+ public static void BansGradiantSubmit()
+ {
+ }
+ public static void GlobalStatsGradiantSubmit()
+ {
+ }
+ public static void GoldDiffGradiantSubmit()
+ {
+ }
+
+
+
+ public static void BackgroundColorSubmit()
+ {
+ EndGameView3Page.formatingData.BackgroundColorDeg = textValueOverlayView3.BackgroundColorDeg.ToString();
+ EndGameView3Page.formatingData.BackgroundColorPercent1 = textValueOverlayView3.BackgroundColorPercent1.ToString();
+ EndGameView3Page.formatingData.BackgroundColorPercent2 = textValueOverlayView3.BackgroundColorPercent2.ToString();
+ EndGameView3Page.formatingData.BackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.BackgroundColorDeg}deg, {EndGameView3Page.formatingData.BackgroundColorColor1} {EndGameView3Page.formatingData.BackgroundColorPercent1}%, {EndGameView3Page.formatingData.BackgroundColorColor2} {EndGameView3Page.formatingData.BackgroundColorPercent2}%)";
+ }
+
+ public static void SetBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1.Equals("hidden"))
+ {
+ colorPickerOverlay1 = "visible";
+ colorValue = EndGameView3Page.formatingData.BackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1 = "hidden";
+ EndGameView3Page.formatingData.BackgroundColorColor1 = colorValue;
+ EndGameView3Page.formatingData.BackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.BackgroundColorDeg}deg, {EndGameView3Page.formatingData.BackgroundColorColor1} {EndGameView3Page.formatingData.BackgroundColorPercent1}%, {EndGameView3Page.formatingData.BackgroundColorColor2} {EndGameView3Page.formatingData.BackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1.Equals("hidden"))
+ {
+ colorPickerOverlay1 = "visible";
+ colorValue = EndGameView3Page.formatingData.BackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1 = "hidden";
+ EndGameView3Page.formatingData.BackgroundColorColor2 = colorValue;
+ EndGameView3Page.formatingData.BackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.BackgroundColorDeg}deg, {EndGameView3Page.formatingData.BackgroundColorColor1} {EndGameView3Page.formatingData.BackgroundColorPercent1}%, {EndGameView3Page.formatingData.BackgroundColorColor2} {EndGameView3Page.formatingData.BackgroundColorPercent2}%)";
+ }
+ }
+
+ public static void BackgroundColorEnableDisableSubmit()
+ {
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+ public static void TopBarBackgroundColorSubmit()
+ {
+ EndGameView3Page.formatingData.TopBarBackgroundColorDeg = textValueOverlayView3.TopBarBackgroundColorDeg.ToString();
+ EndGameView3Page.formatingData.TopBarBackgroundColorPercent1 = textValueOverlayView3.TopBarBackgroundColorPercent1.ToString();
+ EndGameView3Page.formatingData.TopBarBackgroundColorPercent2 = textValueOverlayView3.TopBarBackgroundColorPercent2.ToString();
+ EndGameView3Page.formatingData.TopBarBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.TopBarBackgroundColorDeg}deg, {EndGameView3Page.formatingData.TopBarBackgroundColorColor1} {EndGameView3Page.formatingData.TopBarBackgroundColorPercent1}%, {EndGameView3Page.formatingData.TopBarBackgroundColorColor2} {EndGameView3Page.formatingData.TopBarBackgroundColorPercent2}%)";
+ }
+
+ public static void SetTopBarBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView3Page.formatingData.TopBarBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView3Page.formatingData.TopBarBackgroundColorColor1 = colorValue;
+ EndGameView3Page.formatingData.TopBarBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.TopBarBackgroundColorDeg}deg, {EndGameView3Page.formatingData.TopBarBackgroundColorColor1} {EndGameView3Page.formatingData.TopBarBackgroundColorPercent1}%, {EndGameView3Page.formatingData.TopBarBackgroundColorColor2} {EndGameView3Page.formatingData.TopBarBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetTopBarBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView3Page.formatingData.TopBarBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView3Page.formatingData.TopBarBackgroundColorColor2 = colorValue;
+ EndGameView3Page.formatingData.TopBarBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.TopBarBackgroundColorDeg}deg, {EndGameView3Page.formatingData.TopBarBackgroundColorColor1} {EndGameView3Page.formatingData.TopBarBackgroundColorPercent1}%, {EndGameView3Page.formatingData.TopBarBackgroundColorColor2} {EndGameView3Page.formatingData.TopBarBackgroundColorPercent2}%)";
+ }
+ }
+
+ public static void TopBarBorderColorSubmit()
+ {
+ EndGameView3Page.formatingData.TopBarBorderColor = textValueOverlayView3.TopBarBorderColor.ToString() + "px solid " + TopBarBorderColorNotSet;
+ }
+ public static string TempsTopBarBorderColor()
+ {
+ string[] tempsColor = EndGameView3Page.formatingData.TopBarBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string TopBarBorderColorNotSet = EndGameView3Page.formatingData.TopBarBorderColor.Split(" ")[2];
+ public static void SetTopBarBorderColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ string[] tempsBorderColor = EndGameView3Page.formatingData.TopBarBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ TopBarBorderColorNotSet = colorValue;
+ }
+ }
+
+ public static void SetTopBarBlueTeamNameColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView3Page.formatingData.TopBarBlueTeamNameColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView3Page.formatingData.TopBarBlueTeamNameColor = colorValue;
+ }
+ }
+ public static void SetTopBarBlueTeamWinLossColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView3Page.formatingData.TopBarBlueTeamWinLossColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView3Page.formatingData.TopBarBlueTeamWinLossColor = colorValue;
+ }
+ }
+ public static void SetTopBarBlueTeamScoreColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView3Page.formatingData.TopBarBlueTeamScoreColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView3Page.formatingData.TopBarBlueTeamScoreColor = colorValue;
+ }
+ }
+ public static void SetTopBarRedTeamNameColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView3Page.formatingData.TopBarRedTeamNameColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView3Page.formatingData.TopBarRedTeamNameColor = colorValue;
+ }
+ }
+ public static void SetTopBarRedTeamWinLossColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView3Page.formatingData.TopBarRedTeamWinLossColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView3Page.formatingData.TopBarRedTeamWinLossColor = colorValue;
+ }
+ }
+ public static void SetTopBarRedTeamScoreColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView3Page.formatingData.TopBarRedTeamScoreColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView3Page.formatingData.TopBarRedTeamScoreColor = colorValue;
+ }
+ }
+ public static void SetTopBarTimerTextColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView3Page.formatingData.TopBarTimerTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView3Page.formatingData.TopBarTimerTextColor = colorValue;
+ }
+ }
+ public static void SetTopBarTimerColor()
+ {
+ if (colorPickerOverlay1TimerBar.Equals("hidden"))
+ {
+ colorPickerOverlay1TimerBar = "visible";
+ colorValue = EndGameView3Page.formatingData.TopBarTimerColor;
+ }
+ else
+ {
+ colorPickerOverlay1TimerBar = "hidden";
+ EndGameView3Page.formatingData.TopBarTimerColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+ public static void ChampionInfoBackgroundColorSubmit()
+ {
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColorDeg = textValueOverlayView3.ChampionInfoBackgroundColorDeg.ToString();
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent1 = textValueOverlayView3.ChampionInfoBackgroundColorPercent1.ToString();
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent2 = textValueOverlayView3.ChampionInfoBackgroundColorPercent2.ToString();
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.ChampionInfoBackgroundColorDeg}deg, {EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor1} {EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent1}%, {EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor2} {EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent2}%)";
+ }
+
+ public static void SetChampionInfoBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor1 = colorValue;
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.ChampionInfoBackgroundColorDeg}deg, {EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor1} {EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent1}%, {EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor2} {EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetChampionInfoBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor2 = colorValue;
+ EndGameView3Page.formatingData.ChampionInfoBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.ChampionInfoBackgroundColorDeg}deg, {EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor1} {EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent1}%, {EndGameView3Page.formatingData.ChampionInfoBackgroundColorColor2} {EndGameView3Page.formatingData.ChampionInfoBackgroundColorPercent2}%)";
+ }
+ }
+ public static void ChampionInfoBorderColorSubmit()
+ {
+ EndGameView3Page.formatingData.ChampionInfoBorderColor = textValueOverlayView3.ChampionInfoBorderColor.ToString() + "px solid " + ChampionInfoBorderColorNotSet;
+ }
+ public static string TempsChampionInfoBorderColor()
+ {
+ string[] tempsColor = EndGameView3Page.formatingData.ChampionInfoBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string ChampionInfoBorderColorNotSet = EndGameView3Page.formatingData.ChampionInfoBorderColor.Split(" ")[2];
+ public static void SetChampionInfoBorderColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ string[] tempsBorderColor = EndGameView3Page.formatingData.ChampionInfoBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ ChampionInfoBorderColorNotSet = colorValue;
+ }
+ }
+ public static void SetChampionInfoTextColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView3Page.formatingData.ChampionInfoTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView3Page.formatingData.ChampionInfoTextColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoBlueBarColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView3Page.formatingData.ChampionInfoBlueBarColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView3Page.formatingData.ChampionInfoBlueBarColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoBlueDegaTextColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView3Page.formatingData.ChampionInfoBlueDegaTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView3Page.formatingData.ChampionInfoBlueDegaTextColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoRedBarColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView3Page.formatingData.ChampionInfoRedBarColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView3Page.formatingData.ChampionInfoRedBarColor = colorValue;
+ }
+ }
+ public static void SetChampionInfoRedDegaTextColor()
+ {
+ if (colorPickerOverlay1ChampInfo.Equals("hidden"))
+ {
+ colorPickerOverlay1ChampInfo = "visible";
+ colorValue = EndGameView3Page.formatingData.ChampionInfoRedDegaTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1ChampInfo = "hidden";
+ EndGameView3Page.formatingData.ChampionInfoRedDegaTextColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+ public static void BansBackgroundColorSubmit()
+ {
+ EndGameView3Page.formatingData.BansBackgroundColorDeg = textValueOverlayView3.BansBackgroundColorDeg.ToString();
+ EndGameView3Page.formatingData.BansBackgroundColorPercent1 = textValueOverlayView3.BansBackgroundColorPercent1.ToString();
+ EndGameView3Page.formatingData.BansBackgroundColorPercent2 = textValueOverlayView3.BansBackgroundColorPercent2.ToString();
+ EndGameView3Page.formatingData.BansBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView3Page.formatingData.BansBackgroundColorColor1} {EndGameView3Page.formatingData.BansBackgroundColorPercent1}%, {EndGameView3Page.formatingData.BansBackgroundColorColor2} {EndGameView3Page.formatingData.BansBackgroundColorPercent2}%)";
+ }
+
+ public static void SetBansBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ colorValue = EndGameView3Page.formatingData.BansBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ EndGameView3Page.formatingData.BansBackgroundColorColor1 = colorValue;
+ EndGameView3Page.formatingData.BansBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView3Page.formatingData.BansBackgroundColorColor1} {EndGameView3Page.formatingData.BansBackgroundColorPercent1}%, {EndGameView3Page.formatingData.BansBackgroundColorColor2} {EndGameView3Page.formatingData.BansBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetBansBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ colorValue = EndGameView3Page.formatingData.BansBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ EndGameView3Page.formatingData.BansBackgroundColorColor2 = colorValue;
+ EndGameView3Page.formatingData.BansBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView3Page.formatingData.BansBackgroundColorColor1} {EndGameView3Page.formatingData.BansBackgroundColorPercent1}%, {EndGameView3Page.formatingData.BansBackgroundColorColor2} {EndGameView3Page.formatingData.BansBackgroundColorPercent2}%)";
+ }
+ }
+ public static void BansBorderColorSubmit()
+ {
+ EndGameView3Page.formatingData.BansBorderColor = textValueOverlayView3.BansBorderColor.ToString() + "px solid " + BansBorderColorNotSet;
+ }
+ public static string TempsBansBorderColor()
+ {
+ string[] tempsColor = EndGameView3Page.formatingData.BansBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string BansBorderColorNotSet = EndGameView3Page.formatingData.BansBorderColor.Split(" ")[2];
+ public static void SetBansBorderColor()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ string[] tempsBorderColor = EndGameView3Page.formatingData.BansBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ BansBorderColorNotSet = colorValue;
+ }
+ }
+
+ public static void SetBansTextColor()
+ {
+ if (colorPickerOverlay1Bans.Equals("hidden"))
+ {
+ colorPickerOverlay1Bans = "visible";
+ colorValue = EndGameView3Page.formatingData.BansTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1Bans = "hidden";
+ EndGameView3Page.formatingData.BansTextColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ public static void GlobalStatsBackgroundColorSubmit()
+ {
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColorDeg = textValueOverlayView3.GlobalStatsBackgroundColorDeg.ToString();
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent1 = textValueOverlayView3.GlobalStatsBackgroundColorPercent1.ToString();
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent2 = textValueOverlayView3.GlobalStatsBackgroundColorPercent2.ToString();
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.GlobalStatsBackgroundColorDeg}deg, {EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor1} {EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent1}%, {EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor2} {EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent2}%)";
+ }
+
+ public static void SetGlobalStatsBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor1 = colorValue;
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.GlobalStatsBackgroundColorDeg}deg, {EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor1} {EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent1}%, {EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor2} {EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetGlobalStatsBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor2 = colorValue;
+ EndGameView3Page.formatingData.GlobalStatsBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.BansBackgroundColorDeg}deg, {EndGameView3Page.formatingData.BansBackgroundColorColor1} {EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent1}%, {EndGameView3Page.formatingData.GlobalStatsBackgroundColorColor2} {EndGameView3Page.formatingData.GlobalStatsBackgroundColorPercent2}%)";
+ }
+ }
+ public static void GlobalStatsBorderColorSubmit()
+ {
+ EndGameView3Page.formatingData.GlobalStatsBorderColor = textValueOverlayView3.GlobalStatsBorderColor.ToString() + "px solid " + GlobalStatsBorderColorNotSet;
+ }
+ public static string TempsGlobalStatsBorderColor()
+ {
+ string[] tempsColor = EndGameView3Page.formatingData.GlobalStatsBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string GlobalStatsBorderColorNotSet = EndGameView3Page.formatingData.GlobalStatsBorderColor.Split(" ")[2];
+ public static void SetGlobalStatsBorderColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ string[] tempsBorderColor = EndGameView3Page.formatingData.GlobalStatsBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ GlobalStatsBorderColorNotSet = colorValue;
+ }
+ }
+
+ public static void GlobalStatsSeparationColorSubmit()
+ {
+ EndGameView3Page.formatingData.GlobalStatsSeparationColor = textValueOverlayView3.GlobalStatsSeparationColor.ToString() + "px solid " + GlobalStatsSeparationColorNotSet;
+ }
+ public static string TempsGlobalStatsSeparationColor()
+ {
+ string[] tempsColor = EndGameView3Page.formatingData.GlobalStatsSeparationColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string GlobalStatsSeparationColorNotSet = EndGameView3Page.formatingData.GlobalStatsSeparationColor.Split(" ")[2];
+ public static void SetGlobalStatsSeparationColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ string[] tempsSeparationColor = EndGameView3Page.formatingData.GlobalStatsSeparationColor.Split(" ");
+ colorValue = tempsSeparationColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ GlobalStatsSeparationColorNotSet = colorValue;
+ }
+ }
+ public static void SetGlobalStatsTextColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView3Page.formatingData.GlobalStatsTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView3Page.formatingData.GlobalStatsTextColor = colorValue;
+ }
+ }
+
+ public static void SetGlobalStatsBlueTextColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView3Page.formatingData.GlobalStatsBlueTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView3Page.formatingData.GlobalStatsBlueTextColor = colorValue;
+ }
+ }
+
+ public static void SetGlobalStatsRedTextColor()
+ {
+ if (colorPickerOverlay1GlobalStats.Equals("hidden"))
+ {
+ colorPickerOverlay1GlobalStats = "visible";
+ colorValue = EndGameView3Page.formatingData.GlobalStatsRedTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GlobalStats = "hidden";
+ EndGameView3Page.formatingData.GlobalStatsRedTextColor = colorValue;
+ }
+ }
+
+
+
+
+
+
+
+ public static void GoldDiffBackgroundColorSubmit()
+ {
+ EndGameView3Page.formatingData.GoldDiffBackgroundColorDeg = textValueOverlayView3.GoldDiffBackgroundColorDeg.ToString();
+ EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent1 = textValueOverlayView3.GoldDiffBackgroundColorPercent1.ToString();
+ EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent2 = textValueOverlayView3.GoldDiffBackgroundColorPercent2.ToString();
+ EndGameView3Page.formatingData.GoldDiffBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.GoldDiffBackgroundColorDeg}deg, {EndGameView3Page.formatingData.GoldDiffBackgroundColorColor1} {EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent1}%, {EndGameView3Page.formatingData.GoldDiffBackgroundColorColor2} {EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent2}%)";
+ }
+
+ public static void SetGoldDiffBackgroundColorColor1()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView3Page.formatingData.GoldDiffBackgroundColorColor1;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView3Page.formatingData.GoldDiffBackgroundColorColor1 = colorValue;
+ EndGameView3Page.formatingData.GoldDiffBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.GoldDiffBackgroundColorDeg}deg, {EndGameView3Page.formatingData.GoldDiffBackgroundColorColor1} {EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent1}%, {EndGameView3Page.formatingData.GoldDiffBackgroundColorColor2} {EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent2}%)";
+ }
+ }
+ public static void SetGoldDiffBackgroundColorColor2()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView3Page.formatingData.GoldDiffBackgroundColorColor2;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView3Page.formatingData.GoldDiffBackgroundColorColor2 = colorValue;
+ EndGameView3Page.formatingData.GoldDiffBackgroundColor = $"linear-gradient({EndGameView3Page.formatingData.GoldDiffBackgroundColorDeg}deg, {EndGameView3Page.formatingData.GoldDiffBackgroundColorColor1} {EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent1}%, {EndGameView3Page.formatingData.GoldDiffBackgroundColorColor2} {EndGameView3Page.formatingData.GoldDiffBackgroundColorPercent2}%)";
+ }
+ }
+ public static void GoldDiffBorderColorSubmit()
+ {
+ EndGameView3Page.formatingData.GoldDiffBorderColor = textValueOverlayView3.GoldDiffBorderColor.ToString() + "px solid " + GoldDiffBorderColorNotSet;
+ }
+ public static string TempsGoldDiffBorderColor()
+ {
+ string[] tempsColor = EndGameView3Page.formatingData.GoldDiffBorderColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string GoldDiffBorderColorNotSet = EndGameView3Page.formatingData.GoldDiffBorderColor.Split(" ")[2];
+ public static void SetGoldDiffBorderColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ string[] tempsBorderColor = EndGameView3Page.formatingData.GoldDiffBorderColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ GoldDiffBorderColorNotSet = colorValue;
+ }
+ }
+ public static void SetGoldDiffTextColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView3Page.formatingData.GoldDiffTextColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView3Page.formatingData.GoldDiffTextColor = colorValue;
+ }
+ }
+ public static void GoldDiffBarColorSubmit()
+ {
+ EndGameView3Page.formatingData.GoldDiffBarColor = textValueOverlayView3.GoldDiffBarColor.ToString() + "px dashed " + GoldDiffBarColorNotSet;
+ }
+ public static string TempsGoldDiffBarColor()
+ {
+ string[] tempsColor = EndGameView3Page.formatingData.GoldDiffBarColor.Split(" ");
+ return tempsColor[2];
+ }
+ public static string GoldDiffBarColorNotSet = EndGameView3Page.formatingData.GoldDiffBarColor.Split(" ")[2];
+ public static void SetGoldDiffBarColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ string[] tempsBorderColor = EndGameView3Page.formatingData.GoldDiffBarColor.Split(" ");
+ colorValue = tempsBorderColor[2];
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ GoldDiffBarColorNotSet = colorValue;
+ }
+ }
+ public static void SetGoldDiffBlueTextGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView3Page.formatingData.GoldDiffBlueTextGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView3Page.formatingData.GoldDiffBlueTextGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffRedTextGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView3Page.formatingData.GoldDiffRedTextGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView3Page.formatingData.GoldDiffRedTextGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffZeroTextGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView3Page.formatingData.GoldDiffZeroTextGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView3Page.formatingData.GoldDiffZeroTextGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffBluePointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView3Page.formatingData.GoldDiffBluePointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView3Page.formatingData.GoldDiffBluePointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffRedPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView3Page.formatingData.GoldDiffRedPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView3Page.formatingData.GoldDiffRedPointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffZeroPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView3Page.formatingData.GoldDiffZeroPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView3Page.formatingData.GoldDiffZeroPointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffStartEndPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView3Page.formatingData.GoldDiffStartEndPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView3Page.formatingData.GoldDiffStartEndPointGoldColor = colorValue;
+ }
+ }
+ public static void SetGoldDiffLinkPointGoldColor()
+ {
+ if (colorPickerOverlay1GoldDiff.Equals("hidden"))
+ {
+ colorPickerOverlay1GoldDiff = "visible";
+ colorValue = EndGameView3Page.formatingData.GoldDiffLinkPointGoldColor;
+ }
+ else
+ {
+ colorPickerOverlay1GoldDiff = "hidden";
+ EndGameView3Page.formatingData.GoldDiffLinkPointGoldColor = colorValue;
+ }
+ }
+ }
+
+
+
+
+
+ //
+ private struct OverlayViewEnableOrDisable
+ {
+ public string text { get; set; }
+ public string color { get; set; }
+
+ public OverlayViewEnableOrDisable()
+ {
+ text = "";
+ color = "";
+ }
+
+ public OverlayViewEnableOrDisable(string text, string color)
+ {
+ this.text = text;
+ this.color = color;
+ }
+
+ }
+
+ private OverlayViewEnableOrDisable displayContentView1Button = new("display", "#008000");
+ private OverlayViewEnableOrDisable displayContentView2Button = new("display", "#008000");
+ private OverlayViewEnableOrDisable displayContentView3Button = new("display", "#008000");
+
+ private string displayContentView1 = "none";
+ private void HideOrDisplayContentView1()
+ {
+ if (displayContentView1.Equals("none"))
+ {
+ displayContentView1Button.text = "hide";
+ displayContentView1Button.color = "#be1e37";
+ displayContentView1 = "content";
+ }
+ else
+ {
+ displayContentView1Button.text = "display";
+ displayContentView1Button.color = "#008000";
+ displayContentView1 = "none";
+ }
+ }
+
+ private string displayContentView2 = "none";
+ private void HideOrDisplayContentView2()
+ {
+ if (displayContentView2.Equals("none"))
+ {
+ displayContentView2Button.text = "hide";
+ displayContentView2Button.color = "#be1e37";
+ displayContentView2 = "content";
+ }
+ else
+ {
+ displayContentView2Button.text = "display";
+ displayContentView2Button.color = "#008000";
+ displayContentView2 = "none";
+ }
+ }
+ private string displayContentView3 = "none";
+ private void HideOrDisplayContentView3()
+ {
+ if (displayContentView3.Equals("none"))
+ {
+ displayContentView3Button.text = "hide";
+ displayContentView3Button.color = "#be1e37";
+ displayContentView3 = "content";
+ }
+ else
+ {
+ displayContentView3Button.text = "display";
+ displayContentView3Button.color = "#008000";
+ displayContentView3 = "none";
+ }
+ }
+
+ public static void EnableAllGradiantView1()
+ {
+ textValueOverlayView1.TopBarGradiant = true;
+ textValueOverlayView1.ChampionInfoGradiant = true;
+ textValueOverlayView1.BansGradiant = true;
+ textValueOverlayView1.GlobalStatsGradiant = true;
+ textValueOverlayView1.GoldDiffGradiant = true;
+ }
+ public static void DisableAllGradiantView1()
+ {
+ textValueOverlayView1.TopBarGradiant = false;
+ textValueOverlayView1.ChampionInfoGradiant = false;
+ textValueOverlayView1.BansGradiant = false;
+ textValueOverlayView1.GlobalStatsGradiant = false;
+ textValueOverlayView1.GoldDiffGradiant = false;
+ }
+
+ public static void EnableAllGradiantView2()
+ {
+ textValueOverlayView2.TopBarGradiant = true;
+ textValueOverlayView2.ChampionInfoGradiant = true;
+ textValueOverlayView2.BansGradiant = true;
+ textValueOverlayView2.GlobalStatsGradiant = true;
+ textValueOverlayView2.GoldDiffGradiant = true;
+ }
+ public static void DisableAllGradiantView2()
+ {
+ textValueOverlayView2.TopBarGradiant = false;
+ textValueOverlayView2.ChampionInfoGradiant = false;
+ textValueOverlayView2.BansGradiant = false;
+ textValueOverlayView2.GlobalStatsGradiant = false;
+ textValueOverlayView2.GoldDiffGradiant = false;
+ }
+ public static void EnableAllGradiantView3()
+ {
+ textValueOverlayView3.TopBarGradiant = true;
+ textValueOverlayView3.ChampionInfoGradiant = true;
+ textValueOverlayView3.BansGradiant = true;
+ textValueOverlayView3.GlobalStatsGradiant = true;
+ textValueOverlayView3.GoldDiffGradiant = true;
+ }
+ public static void DisableAllGradiantView3()
+ {
+ textValueOverlayView3.TopBarGradiant = false;
+ textValueOverlayView3.ChampionInfoGradiant = false;
+ textValueOverlayView3.BansGradiant = false;
+ textValueOverlayView3.GlobalStatsGradiant = false;
+ textValueOverlayView3.GoldDiffGradiant = false;
+ }
+ public static void EnableAllBackgroundView3()
+ {
+ textValueOverlayView3.TopBarBackground = true;
+ textValueOverlayView3.ChampionInfoBackground = true;
+ textValueOverlayView3.BansBackground = true;
+ textValueOverlayView3.GlobalStatsBackground = true;
+ textValueOverlayView3.GoldDiffBackground = true;
+ }
+ public static void DisableAllBackgroundView3()
+ {
+ textValueOverlayView3.TopBarBackground = false;
+ textValueOverlayView3.ChampionInfoBackground = false;
+ textValueOverlayView3.BansBackground = false;
+ textValueOverlayView3.GlobalStatsBackground = false;
+ textValueOverlayView3.GoldDiffBackground = false;
+ }
+ }
+}
diff --git a/OSL-Server/Pages/EndGame/EndGamePage.razor.css b/OSL-Server/Pages/EndGame/EndGamePage.razor.css
new file mode 100644
index 0000000..4081da5
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGamePage.razor.css
@@ -0,0 +1,84 @@
+/*##########################################################*/
+/*######################## General #########################*/
+/*##########################################################*/
+
+@font-face {
+ font-family: MyFont;
+ src: url(../css/font/fonts/fontLoL.ttf);
+}
+
+html, body {
+ background-color: black;
+ color: white;
+}
+
+.parent {
+ overflow: hidden
+}
+
+.title {
+ font-family: MyFont;
+ font-weight: bold;
+ text-decoration: underline;
+}
+
+.button-color {
+ height: 30px;
+ width: 30px;
+}
+
+.champ-select-overlay-1 {
+ margin: auto;
+ position: relative;
+}
+
+.general {
+ margin: auto;
+ position: relative;
+}
+
+ .general .color-picker {
+ position: absolute;
+ left: 600px;
+ top: 0px;
+ border: 5px solid black;
+ }
+
+.timer-bar {
+ margin: auto;
+ position: relative;
+}
+
+ .timer-bar .color-picker {
+ position: absolute;
+ left: 600px;
+ top: 0px;
+ border: 5px solid black;
+ }
+
+.champion-info {
+ margin: auto;
+ position: relative;
+}
+
+.bans {
+ margin: auto;
+ position: relative;
+}
+
+.global-stats {
+ margin: auto;
+ position: relative;
+}
+
+.gold-diff {
+ margin: auto;
+ position: relative;
+}
+
+.color-picker {
+ position: absolute;
+ left: 600px;
+ top: -100px;
+ border: 5px solid black;
+}
diff --git a/OSL-Server/Pages/EndGame/EndGameView1Page.razor b/OSL-Server/Pages/EndGame/EndGameView1Page.razor
new file mode 100644
index 0000000..34c1134
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGameView1Page.razor
@@ -0,0 +1,433 @@
+@page "/endgame/view1"
+@using OSL_Server.DataReciveClient.Processing.EndGame;
+@layout EmptyLayout
+
+
End Game View 1
+
+@{
+ string tempsBackgroundColor;
+ @if (EndGamePage.textValueOverlayView1.BackgroundColor)
+ {
+ tempsBackgroundColor = formatingData.BackgroundColor;
+ }
+ else
+ {
+ tempsBackgroundColor = "";
+ }
+}
+
+
+
+
+ @if (EndGameInfo.jsonContentEndOfMatch != null && EndGameInfo.jsonContentMatch != null && EndGameInfo.jsonContentTimeline != null)
+ {
+ string tempsTopBarGradiant;
+ string tempsChampionInfoGradiant;
+ string tempsBansGradiant;
+ string tempsGlobalStatsGradiant;
+ string tempsGoldDiffGradiant;
+
+ @if (EndGamePage.textValueOverlayView1.TopBarGradiant)
+ {
+ tempsTopBarGradiant = formatingData.TopBarGradiant;
+ }
+ else
+ {
+ tempsTopBarGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView1.ChampionInfoGradiant)
+ {
+ tempsChampionInfoGradiant = formatingData.ChampionInfoGradiant;
+ }
+ else
+ {
+ tempsChampionInfoGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView1.BansGradiant)
+ {
+ tempsBansGradiant = formatingData.BansGradiant;
+ }
+ else
+ {
+ tempsBansGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView1.GlobalStatsGradiant)
+ {
+ tempsGlobalStatsGradiant = formatingData.GlobalStatsGradiant;
+ }
+ else
+ {
+ tempsGlobalStatsGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView1.GoldDiffGradiant)
+ {
+ tempsGoldDiffGradiant = formatingData.GoldDiffGradiant;
+ }
+ else
+ {
+ tempsGoldDiffGradiant = "";
+ }
+
+
+
+
+
+
+
+ @formatingData.TopBarBlueTeamName
+
+
+ @GetWinLossBlue()
+
+
+ @formatingData.TopBarBlueTeamScore
+
+
+
+
+ @formatingData.TopBarTimerText
+
+
+ @GetTimer()
+
+
+
+
+ @formatingData.TopBarRedTeamName
+
+
+ @GetWinLossRed()
+
+
+ @formatingData.TopBarRedTeamScore
+
+
+
+
+
+
+
+
+ @formatingData.ChampionInfoText
+
+
+
+ @foreach (var players in EndGameInfo.jsonContentEndOfMatch.teams[0].players)
+ {
+
+
+
+
+
+
+ @ConvertToK(Convert.ToDouble(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS))
+
+
+
+
+
+ }
+
+
+
+ @foreach (var players in EndGameInfo.jsonContentEndOfMatch.teams[1].players)
+ {
+
+
+
+
+
+
+ @ConvertToK(Convert.ToDouble(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS))
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+ @foreach (var blueBans in EndGameInfo.jsonContentMatch.info.teams[0].bans)
+ {
+
+
+
+ }
+
+
+ BANS
+
+
+ @foreach (var blueBans in EndGameInfo.jsonContentMatch.info.teams[1].bans)
+ {
+
+
+
+ }
+
+
+
+
+
+
+
+
+ @GetKDABlue()
+
+
+ @GetGoldBlue()
+
+
+ @GetTowerKillBlue()
+
+
+
+ @foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ @foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null && !monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+
+
+
+ }
+ }
+ }
+ }
+
+
+
+ @GetElderKillBlue()
+
+
+ @GetHeraldKillBlue()
+
+
+ @GetBaronKillBlue()
+
+
+
+
+ K/D/A
+
+
+ Gold
+
+
+ Towers
+
+
+ Dragons
+
+
+ Elder dragons
+
+
+ Heralds
+
+
+ Barons
+
+
+
+
+ @GetKDARed()
+
+
+ @GetGoldRed()
+
+
+ @GetTowerKillRed()
+
+
+
+ @foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ @foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null && !monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 200)
+ {
+
+
+
+ }
+ }
+ }
+ }
+
+
+
+ @GetElderKillRed()
+
+
+ @GetHeraldKillRed()
+
+
+ @GetBaronKillRed()
+
+
+
+
+
+
+
+ @formatingData.GoldDiffText
+
+
+
+
+
+ @{
+ CreateTabGold();
+ int x = 0;
+ }
+ @for (int i = 0; i < goldDiff.Count - 1; i++)
+ {
+ int y = (goldDiff[i] * 100) / MaxGold();
+
+ double nexty = (goldDiff[i + 1] * 100) / MaxGold();
+ int nextx = x + 1250 / goldDiff.Count();
+ if (i == 0)
+ {
+
+
+
+
+ }
+ else
+ {
+ if (goldDiff[i] > 0)
+ {
+
+
+
+
+ }
+ else if (goldDiff[i] == 0)
+ {
+
+
+
+
+ }
+ else
+ {
+
+
+
+
+ }
+ }
+ if (i == goldDiff.Count - 2)
+ {
+
+
+
+ }
+ x += 1250 / goldDiff.Count();
+ }
+
+
+
+
+
+
+
+
+
+
+ @{
+ int decalageX = 1192 / (GetTimerInt() / 5);
+ int leftDistance = 47;
+ TimeSpan timerFive = new TimeSpan(0, 0, 0);
+ }
+ @for (int i = 0; i < (GetTimerInt() / 5) - 1; i++)
+ {
+ leftDistance = leftDistance + decalageX;
+ timerFive = timerFive.Add(new TimeSpan(0, 5, 0));
+
+
@timerFive.ToString("mm':'ss")
+ }
+
+ @*
*@
+ @*
*@
+ @*
*@
+
+
+ 0
+
+
+ @GetTimer()
+
+ @*
+ @GetTimerDiv(1.5)
+
+
+ @GetTimerDiv(2)
+
+
+ @GetTimerDiv(4)
+
*@
+
+ 00:00
+
+
+ @ConvertToK(MaxGold())
+
+
+ @ConvertToK(MaxGold()/2)
+
+
+ @ConvertToK(MaxGold()/2)
+
+
+ @ConvertToK(MaxGold())
+
+
+
+ }
+ else
+ {
+
+
Info! Not end game information found
+
+ }
+
+
+
+
+
+@code {
+ private System.Timers.Timer timer = new(5000);
+
+ protected override void OnInitialized()
+ {
+ timer.Elapsed += (sender, eventArgs) => OnTimerCallback();
+ timer.Start();
+ }
+
+ private void OnTimerCallback()
+ {
+ _ = InvokeAsync(() =>
+ {
+ StateHasChanged();
+ });
+ }
+
+ public void Dispose() => timer.Dispose();
+ }
diff --git a/OSL-Server/Pages/EndGame/EndGameView1Page.razor.cs b/OSL-Server/Pages/EndGame/EndGameView1Page.razor.cs
new file mode 100644
index 0000000..8b7a8bf
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGameView1Page.razor.cs
@@ -0,0 +1,588 @@
+using OSL_Server.Configuration;
+using OSL_Server.DataReciveClient.Processing.EndGame;
+using static OSL_Server.DataReciveClient.Processing.EndGame.EndGameInfo;
+
+namespace OSL_Server.Pages.EndGame
+{
+ public partial class EndGameView1Page
+ {
+ private static OSLLogger _logger = new OSLLogger("EndGameView1Page");
+
+ //Data for display color, texte, picture on web page
+ public static FormatingData formatingData = new();
+
+ //Tab of difference of team golds
+ public static List
goldDiff = new();
+
+ public class FormatingData
+ {
+ public string DefaultPatch { get; set; }
+ public string DefaultRegion { get; set; }
+
+ public string BackgroundColor { get; set; }
+ public string BackgroundColorDeg { get; set; }
+ public string BackgroundColorColor1 { get; set; }
+ public string BackgroundColorPercent1 { get; set; }
+ public string BackgroundColorColor2 { get; set; }
+ public string BackgroundColorPercent2 { get; set; }
+
+ public string TopBarBackgroundColor { get; set; }
+ public string TopBarBackgroundColorDeg { get; set; }
+ public string TopBarBackgroundColorColor1 { get; set; }
+ public string TopBarBackgroundColorPercent1 { get; set; }
+ public string TopBarBackgroundColorColor2 { get; set; }
+ public string TopBarBackgroundColorPercent2 { get; set; }
+ public string TopBarGradiant { get; set; }
+ public string TopBarBorderColor { get; set; }
+ public string TopBarTimerText { get; set; }
+ public string TopBarTimerTextColor { get; set; }
+ public string TopBarTimerColor { get; set; }
+ public string TopBarBlueTeamName { get; set; }
+ public string TopBarBlueTeamScore { get; set; }
+ public string TopBarBlueTeamNameColor { get; set; }
+ public string TopBarBlueTeamScoreColor { get; set; }
+ public string TopBarBlueTeamWinLossColor { get; set; }
+ public string TopBarRedTeamName { get; set; }
+ public string TopBarRedTeamScore { get; set; }
+ public string TopBarRedTeamNameColor { get; set; }
+ public string TopBarRedTeamScoreColor { get; set; }
+ public string TopBarRedTeamWinLossColor { get; set; }
+
+ public string ChampionInfoBackgroundColor { get; set; }
+ public string ChampionInfoBackgroundColorDeg { get; set; }
+ public string ChampionInfoBackgroundColorColor1 { get; set; }
+ public string ChampionInfoBackgroundColorPercent1 { get; set; }
+ public string ChampionInfoBackgroundColorColor2 { get; set; }
+ public string ChampionInfoBackgroundColorPercent2 { get; set; }
+ public string ChampionInfoGradiant { get; set; }
+ public string ChampionInfoBorderColor { get; set; }
+ public string ChampionInfoText { get; set; }
+ public string ChampionInfoTextColor { get; set; }
+ public string ChampionInfoBlueBarColor { get; set; }
+ public string ChampionInfoRedBarColor { get; set; }
+ public string ChampionInfoBlueDegaTextColor { get; set; }
+ public string ChampionInfoRedDegaTextColor { get; set; }
+
+ public string BansBackgroundColor { get; set; }
+ public string BansBackgroundColorDeg { get; set; }
+ public string BansBackgroundColorColor1 { get; set; }
+ public string BansBackgroundColorPercent1 { get; set; }
+ public string BansBackgroundColorColor2 { get; set; }
+ public string BansBackgroundColorPercent2 { get; set; }
+ public string BansGradiant { get; set; }
+ public string BansBorderColor { get; set; }
+ public string BansTextColor { get; set; }
+
+ public string GlobalStatsBackgroundColor { get; set; }
+ public string GlobalStatsBackgroundColorDeg { get; set; }
+ public string GlobalStatsBackgroundColorColor1 { get; set; }
+ public string GlobalStatsBackgroundColorPercent1 { get; set; }
+ public string GlobalStatsBackgroundColorColor2 { get; set; }
+ public string GlobalStatsBackgroundColorPercent2 { get; set; }
+ public string GlobalStatsGradiant { get; set; }
+ public string GlobalStatsBorderColor { get; set; }
+ public string GlobalStatsTextColor { get; set; }
+ public string GlobalStatsBlueTextColor { get; set; }
+ public string GlobalStatsRedTextColor { get; set; }
+
+ public string GoldDiffBackgroundColor { get; set; }
+ public string GoldDiffBackgroundColorDeg { get; set; }
+ public string GoldDiffBackgroundColorColor1 { get; set; }
+ public string GoldDiffBackgroundColorPercent1 { get; set; }
+ public string GoldDiffBackgroundColorColor2 { get; set; }
+ public string GoldDiffBackgroundColorPercent2 { get; set; }
+ public string GoldDiffGradiant { get; set; }
+ public string GoldDiffBorderColor { get; set; }
+ public string GoldDiffText { get; set; }
+ public string GoldDiffTextColor { get; set; }
+ public string GoldDiffBlueTextGoldColor { get; set; }
+ public string GoldDiffRedTextGoldColor { get; set; }
+ public string GoldDiffZeroTextGoldColor { get; set; }
+ public string GoldDiffBluePointGoldColor { get; set; }
+ public string GoldDiffRedPointGoldColor { get; set; }
+ public string GoldDiffZeroPointGoldColor { get; set; }
+ public string GoldDiffStartEndPointGoldColor { get; set; }
+ public string GoldDiffLinkPointGoldColor { get; set; }
+ public string GoldDiffBarColor { get; set; }
+
+ }
+
+ public string GetTimer()
+ {
+ try
+ {
+ int gameLength = EndGameInfo.jsonContentMatch.info.gameDuration;
+ TimeSpan time = TimeSpan.FromSeconds(gameLength);
+ return time.ToString("mm':'ss");
+ }
+ catch
+ {
+ return "00:00";
+ }
+ }
+
+ public int GetTimerInt()
+ {
+ try
+ {
+ int gameLength = EndGameInfo.jsonContentMatch.info.gameDuration;
+ TimeSpan time = TimeSpan.FromSeconds(gameLength);
+ int timeLength = int.Parse(time.ToString("mm"));
+ return timeLength;
+ }
+ catch
+ {
+ return 0;
+ }
+ }
+
+ public string GetTimerDiv(double div)
+ {
+ try
+ {
+ double gameLength = EndGameInfo.jsonContentMatch.info.gameDuration;
+ gameLength = gameLength / div;
+ TimeSpan time = TimeSpan.FromSeconds(gameLength);
+ return time.ToString("mm':'ss");
+ }
+ catch
+ {
+ return "00:00";
+ }
+ }
+
+ public string GetChampionPathByPath(string championId)
+ {
+ string[] parsePath = championId.Split("/");
+ string[] parseId = parsePath[parsePath.Length - 1].Split(".");
+ return GetChampionPath(parseId[0]);
+ }
+
+ public string GetChampionPath(string championId)
+ {
+ return $"./assets/{formatingData.DefaultPatch}/{formatingData.DefaultRegion}/Champions/{championId}/default-square.png";
+ }
+
+ public string ConvertToK(double total)
+ {
+ if (total > 1000000)
+ {
+ return $"{Math.Round(total / 1000000, 1)} M";
+ }
+ else if (total > 1000)
+ {
+ return $"{Math.Round(total / 1000, 1)}k";
+ }
+ else
+ {
+ return $"{total}";
+ }
+ }
+
+ public string ConvertToWidth(int total)
+ {
+ int max = 0;
+ foreach (var teams in EndGameInfo.jsonContentEndOfMatch.teams)
+ {
+ foreach (var players in teams.players)
+ {
+ if (Convert.ToInt32(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS) > max)
+ {
+ max = Convert.ToInt32(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS);
+ }
+ }
+ }
+ double calculPourcent2 = (total * 220) / max;
+ return $"{calculPourcent2}px";
+ }
+
+ public string GetKDABlue()
+ {
+ string kill = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.CHAMPIONS_KILLED;
+ string death = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.NUM_DEATHS;
+ string assist = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.ASSISTS;
+ return $"{kill}/{death}/{assist}";
+ }
+ public string GetKDARed()
+ {
+ string kill = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.CHAMPIONS_KILLED;
+ string death = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.NUM_DEATHS;
+ string assist = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.ASSISTS;
+ return $"{kill}/{death}/{assist}";
+ }
+
+ public string GetGoldBlue()
+ {
+ float gold = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.GOLD_EARNED;
+ if (gold > 1000000)
+ {
+ return $"{Math.Round(gold / 1000000, 1)} M";
+ }
+ else if (gold > 1000)
+ {
+ return $"{Math.Round(gold / 1000, 1)} k";
+ }
+ else
+ {
+ return $"{gold}";
+ }
+ }
+ public string GetGoldRed()
+ {
+ float gold = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.GOLD_EARNED;
+ if (gold > 1000000)
+ {
+ return $"{Math.Round(gold / 1000000, 1)} M";
+ }
+ else if (gold > 1000)
+ {
+ return $"{Math.Round(gold / 1000, 1)} k";
+ }
+ else
+ {
+ return $"{gold}";
+ }
+ }
+
+ public string GetTowerKillBlue()
+ {
+ int tower = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.TURRETS_KILLED;
+ return $"{tower}";
+ }
+
+ public string GetTowerKillRed()
+ {
+ int tower = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.TURRETS_KILLED;
+ return $"{tower}";
+ }
+
+ public string GetDragonsKill(string monsterSubType)
+ {
+ if (monsterSubType != null && monsterSubType.Equals("HEXTECH_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/hextech_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("WATER_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/ocean_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("FIRE_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/infernal_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("AIR_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/cloud_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("CHEMTECH_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/chemtech_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("EARTH_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/mountain_dragon_icon.png";
+ }
+ //int tower = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.TURRETS_KILLED;
+ return $"";
+ }
+
+ public string GetElderKillBlue()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetElderKillRed()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 200)
+ {
+ if (monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetHeraldKillBlue()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("RIFTHERALD"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetHeraldKillRed()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("RIFTHERALD"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetBaronKillBlue()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("BARON_NASHOR"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetBaronKillRed()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("BARON_NASHOR"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetWinLossBlue()
+ {
+ foreach (var participants in jsonContentMatch.info.participants)
+ {
+ int teamId = participants.teamId;
+ if (teamId == 100)
+ {
+ bool win = participants.win;
+ if (win)
+ {
+ return $"VICTOIRE";
+ }
+ }
+ }
+ return $"DÉFAITE";
+ }
+
+ public string GetWinLossRed()
+ {
+ foreach (var participants in jsonContentMatch.info.participants)
+ {
+ int teamId = participants.teamId;
+ if (teamId == 200)
+ {
+ bool win = participants.win;
+ if (win)
+ {
+ return $"VICTOIRE";
+ }
+ }
+ }
+ return $"DÉFAITE";
+ }
+
+ public static void ResetColor()
+ {
+ Config.LoadFormatingDataConfigEndGameView1();
+ EndGamePage.textValueOverlayView1.TopBarBlueTeamName = "";
+ EndGamePage.textValueOverlayView1.TopBarRedTeamName = "";
+ EndGamePage.textValueOverlayView1.TopBarBlueTeamScore = "";
+ EndGamePage.textValueOverlayView1.TopBarRedTeamScore = "";
+ EndGamePage.textValueOverlayView1.TopBarTimerText = "";
+ EndGamePage.textValueOverlayView1.ChampionInfoText = "";
+ EndGamePage.textValueOverlayView1.GoldDiffText = "";
+ EndGamePage.textValueOverlayView1.BackgroundColor = true;
+ EndGamePage.textValueOverlayView1.TopBarGradiant = true;
+ EndGamePage.textValueOverlayView1.ChampionInfoGradiant = true;
+ EndGamePage.textValueOverlayView1.BansGradiant = true;
+ EndGamePage.textValueOverlayView1.GlobalStatsGradiant = true;
+ EndGamePage.textValueOverlayView1.GoldDiffGradiant = true;
+ EndGamePage.textValueOverlayView1.BackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView1.BackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView1.BackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView1.TopBarBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView1.TopBarBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView1.TopBarBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView1.ChampionInfoBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView1.ChampionInfoBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView1.ChampionInfoBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView1.BansBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView1.BansBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView1.BansBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView1.GlobalStatsBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView1.GlobalStatsBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView1.GlobalStatsBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView1.GoldDiffBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView1.GoldDiffBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView1.GoldDiffBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView1.TopBarBorderColor = 5;
+ EndGamePage.textValueOverlayView1.ChampionInfoBorderColor = 5;
+ EndGamePage.textValueOverlayView1.BansBorderColor = 5;
+ EndGamePage.textValueOverlayView1.GlobalStatsBorderColor = 5;
+ EndGamePage.textValueOverlayView1.GoldDiffBorderColor = 5;
+
+ }
+
+
+
+ public static void CreateTabGold()
+ {
+ goldDiff = new();
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ int totalGoldBlue = 0;
+ int totalGoldRed = 0;
+ int i = 0;
+ foreach (var participantFrames in frames.participantFrames)
+ {
+ i++;
+ if (i < 6)
+ {
+ foreach (var intVar in participantFrames)
+ {
+ totalGoldBlue += Convert.ToInt32(intVar.totalGold);
+ }
+ }
+ else
+ {
+ foreach (var intVar in participantFrames)
+ {
+ totalGoldRed += Convert.ToInt32(intVar.totalGold);
+ }
+ }
+ }
+ int diffGold = totalGoldBlue - totalGoldRed;
+ goldDiff.Add(diffGold);
+ }
+ }
+ public static int MaxGold()
+ {
+ int max = goldDiff.Max();
+ int min = goldDiff.Min();
+ if (max > Math.Abs(min))
+ {
+ return max;
+ }
+ else
+ {
+ return Math.Abs(min);
+ }
+ }
+
+
+ public static string ConvertToString(int x)
+ {
+ return $"{x}px";
+ }
+
+ public static string ConvertToString(double x)
+ {
+ return $"{x}px";
+ }
+
+ public static string ConvertToHyp(int x, double y, int prex, double prey)
+ {
+ double newY = y - prey;
+ double newX = x - prex;
+ double sqrt = Math.Sqrt(newX * newX + newY * newY);
+ string machin = sqrt.ToString();
+ return machin.Replace(",", ".");
+ }
+
+ public static string ConvertToAngle(int x, double y, int prex, double prey)
+ {
+ double newY = y - prey;
+ double newX = x - prex;
+ double sqrt = Math.Sqrt(newX * newX + newY * newY);
+ double sin = newY / sqrt;
+ double test = Math.Asin(sin) * (180 / Math.PI);
+ string machin = test.ToString();
+ return machin.Replace(",", ".");
+ }
+
+
+ }
+}
diff --git a/OSL-Server/Pages/EndGame/EndGameView1Page.razor.css b/OSL-Server/Pages/EndGame/EndGameView1Page.razor.css
new file mode 100644
index 0000000..a26615d
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGameView1Page.razor.css
@@ -0,0 +1,655 @@
+/*##########################################################*/
+/*######################## General #########################*/
+/*##########################################################*/
+
+@font-face {
+ font-family: MyFont;
+ src: url(../css/font/BeaufortForLoL-OTF/BeaufortforLOL-Bold.otf);
+}
+
+html, body {
+ background-color: black;
+ color: white;
+}
+
+.title {
+ font-family: MyFont;
+ font-weight: bold;
+ text-decoration: underline;
+}
+
+.endGameView1 {
+ width: 1920px;
+ height: 1080px;
+ position: absolute;
+ /*background: url(./assets/endgame/image.png);*/
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+}
+
+.content {
+ position: absolute;
+}
+
+
+/*##########################################################*/
+/*######################## top-bar #########################*/
+/*##########################################################*/
+
+.top-bar {
+ top: 75px;
+ left: 310px;
+ position: absolute;
+ height: 100px;
+ width: 1300px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.top-bar-gradiant {
+ height: 100px;
+ width: 1300px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.top-bar-border {
+ height: 100px;
+ width: 1300px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.top-bar-blue-team {
+ left: 50px;
+ padding: 50px;
+ font-family: MyFont;
+ font-size: 32px;
+ position: absolute;
+ display: flex;
+}
+
+.top-bar-blue-team-name {
+ padding-right: 20px;
+}
+
+.top-bar-blue-team-winloss {
+ padding-right: 40px;
+}
+
+.top-bar-blue-team-score {
+ /*padding-right: 30px;*/
+}
+
+
+
+
+.top-bar-timer {
+ padding: 50px;
+ font-family: MyFont;
+ font-size: 28px;
+ text-align: center;
+ color: #c99d53;
+ position: absolute;
+}
+
+.top-bar-red-team {
+ right: 50px;
+ padding: 50px;
+ font-family: MyFont;
+ font-size: 32px;
+ position: absolute;
+ display: flex;
+ flex-direction: row-reverse;
+}
+
+.top-bar-red-team-name {
+ padding-left: 20px;
+}
+
+.top-bar-red-team-winloss {
+ padding-left: 40px;
+}
+
+.top-bar-red-team-score {
+ /*padding: 10px;*/
+}
+
+
+/*##########################################################*/
+/*##################### champion-info ######################*/
+/*##########################################################*/
+
+.champion-info {
+ top: 200px;
+ left: 310px;
+ position: absolute;
+ height: 390px;
+ width: 600px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.champion-info-gradiant {
+ height: 400px;
+ width: 600px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.champion-info-border {
+ height: 400px;
+ width: 600px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+
+.champion-info-stats {
+ text-align: center;
+ display: flex;
+ justify-content: center;
+}
+
+.champion-info-stats-text {
+ /*left: 0px;*/
+ top: 0px;
+ padding: 20px;
+ font-family: MyFont;
+ font-size: 32px;
+ position: absolute;
+ width: 600px;
+ /*color: #c99d53;*/
+}
+
+.champion-info-stats-blue {
+ top: 90px;
+ left: 5px;
+ position: absolute;
+}
+
+.champion-info-stats-blue-group {
+ display: flex;
+}
+
+.champion-info-stats-blue-group-info {
+ left: 60px;
+ position: absolute;
+}
+
+.champion-info-stats-blue-group-text {
+ font-family: MyFont;
+ font-size: 22px;
+ left: 10px;
+ position: absolute;
+}
+
+.champion-info-stats-blue-group-bar {
+ height: 15px;
+ width: 200px;
+ top: 35px;
+ left: 0.2px;
+ /*background-color: #0b849e;*/
+ position: absolute;
+}
+
+.champion-info-stats-red-group {
+ display: flex;
+}
+
+.champion-info-stats-red-group-info {
+ right: 60px;
+ position: absolute;
+}
+
+.champion-info-stats-red-group-text {
+ font-family: MyFont;
+ font-size: 22px;
+ right: 10px;
+ position: absolute;
+}
+
+.champion-info-stats-red-group-bar {
+ height: 15px;
+ width: 200px;
+ top: 35px;
+ right: 0.2px;
+ /*background-color: #be1e37;*/
+ position: absolute;
+}
+
+.champion-info-stats-red {
+ top: 90px;
+ right: 5px;
+ position: absolute;
+}
+
+.pick-picture {
+ height: 60px;
+}
+
+/*##########################################################*/
+/*########################## Bans ##########################*/
+/*##########################################################*/
+
+.bans {
+ top: 615px;
+ /*top: 645px;*/
+ left: 310px;
+ height: 60px;
+ width: 600px;
+ position: absolute;
+ display: flex;
+ justify-content: center;
+ box-sizing: border-box;
+ align-items: center;
+ margin-left: 0;
+ margin-right: 0;
+ /*color: #c99d53;*/
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+}
+
+.bans-gradiant {
+ height: 60px;
+ width: 600px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.bans-border {
+ height: 60px;
+ width: 600px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.bans-info {
+ position: absolute;
+ display: flex;
+}
+
+.bans-info-blue {
+ display: flex;
+ box-sizing: border-box;
+}
+
+.bans-info-red {
+ display: flex;
+ box-sizing: border-box;
+}
+
+.bans-picture {
+ height: 49.5px;
+}
+
+.bans-info-text {
+ padding-left: 7.4px;
+ padding-right: 7.4px;
+ font-family: MyFont;
+ font-size: 30px;
+}
+
+
+/*##########################################################*/
+/*###################### global-stats ######################*/
+/*##########################################################*/
+
+.global-stats {
+ top: 200px;
+ left: 1010px;
+ position: absolute;
+ height: 475px;
+ width: 600px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.global-stats-gradiant {
+ height: 475px;
+ width: 600px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.global-stats-border {
+ height: 475px;
+ width: 600px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.global-stats-center {
+ position: absolute;
+ text-align: center;
+ height: 475px;
+}
+
+.global-stats-center-info {
+ font-family: MyFont;
+ font-size: 30px;
+ padding: 10px;
+ /*color: #c99d53;*/
+}
+
+.global-stats-blue {
+ font-family: MyFont;
+ font-size: 30px;
+ height: 475px;
+ width: 250px;
+ left: 0px;
+ position: absolute;
+ text-align: center;
+ justify-content: center;
+ align-items: center;
+}
+
+.dragon-wrapper {
+ display: inline;
+ padding: 10px;
+}
+
+.dragon-picture {
+ height: 30px;
+}
+
+.global-stats-blue-info {
+ padding: 10px;
+}
+
+.global-stats-red {
+ font-family: MyFont;
+ font-size: 30px;
+ height: 475px;
+ width: 250px;
+ right: 0px;
+ position: absolute;
+ text-align: center;
+ justify-content: center;
+ align-items: center;
+}
+
+.global-stats-red-info {
+ padding: 10px;
+}
+
+
+/*##########################################################*/
+/*####################### gold-diff ########################*/
+/*##########################################################*/
+
+.gold-diff {
+ top: 705px;
+ left: 310px;
+ position: absolute;
+ height: 300px;
+ width: 1300px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.gold-diff-gradiant {
+ height: 300px;
+ width: 1300px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.gold-diff-border {
+ height: 300px;
+ width: 1300px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.gold-diff-text {
+ /*left: 0px;*/
+ top: 0px;
+ padding: 20px;
+ font-family: MyFont;
+ font-size: 32px;
+ position: absolute;
+ /*width: 1300px;*/
+ color: #c99d53;
+}
+
+.gold-graph {
+ position: absolute;
+ top: 165px;
+ left: 35px;
+}
+
+.gold-graph-content {
+ position: absolute;
+ left: 48px;
+ top: 2px;
+}
+
+.css-chart {
+ /*border-bottom: 1px solid;*/
+ /*border-left: 1px solid;*/
+ /*display: inline-block;*/
+ /*height: var(--widget-size);*/
+ /*margin: 5em 15em 1em 5em;*/
+ /*padding: 0;*/
+ position: absolute;
+ /*left: 20px;*/
+ /*width: var(--widget-size);*/
+}
+
+.line-chart {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ position: absolute;
+}
+
+.data-point {
+ background-color: white;
+ /*border: 2px solid lightblue;*/
+ border-radius: 50%;
+ bottom: calc(var(--y) - 7px);
+ height: 15px;
+ left: calc(var(--x) - 7px);
+ position: absolute;
+ width: 15px;
+ z-index: 1;
+}
+
+.line-segment {
+ /*background-color: #c99d53;*/
+ bottom: var(--y);
+ height: 2px;
+ left: var(--x);
+ position: absolute;
+ transform: rotate(calc(var(--angle) * 1deg));
+ transform-origin: left bottom;
+ width: calc(var(--hypotenuse) * 1px);
+}
+
+.gold-graph-orizon-bar {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: 0px;
+ left: 50px;
+ position: absolute;
+ width: 1185px;
+}
+
+.gold-graph-vertical-bar {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 47px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-timer {
+ position: absolute;
+ top: 105px;
+ font-family: MyFont;
+ font-size: 18px;
+}
+
+.gold-graph-vertical-bar-left {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 47px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-right {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 1239px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-mid {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 645px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-mid-left {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 345px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-mid-right {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 945px;
+ height: 200px;
+}
+
+.gold-graph-orizon-bar-maxmoy {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: -50px;
+ left: 50px;
+ position: absolute;
+ width: 1185px;
+}
+
+.gold-graph-orizon-bar-max {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: -100px;
+ left: 50px;
+ position: absolute;
+ width: 1185px;
+}
+
+.gold-graph-orizon-bar-min {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: 100px;
+ left: 50px;
+ position: absolute;
+ width: 1185px;
+}
+
+.gold-graph-orizon-bar-minmoy {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: 50px;
+ left: 50px;
+ position: absolute;
+ width: 1185px;
+}
+
+.gold-graph-zero {
+ font-family: MyFont;
+ font-size: 22px;
+ position: absolute;
+ left: 15px;
+ top: -15px;
+}
+
+.gold-graph-max {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: -120px;
+}
+
+.gold-graph-maxmoy {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: -60px;
+}
+
+.gold-graph-min {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: 80px;
+}
+
+.gold-graph-minmoy {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: 40px;
+}
+
+.gold-graph-time-1 {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: 25px;
+ top: 105px;
+}
+.gold-graph-time-2 {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: 325px;
+ top: 105px;
+}
+.gold-graph-time-3 {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: 625px;
+ top: 105px;
+}
+.gold-graph-time-4 {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: 925px;
+ top: 105px;
+}
+.gold-graph-time-5 {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: 1215px;
+ top: 105px;
+}
diff --git a/OSL-Server/Pages/EndGame/EndGameView2Page.razor b/OSL-Server/Pages/EndGame/EndGameView2Page.razor
new file mode 100644
index 0000000..eb998db
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGameView2Page.razor
@@ -0,0 +1,420 @@
+@page "/endgame/view2"
+@using OSL_Server.DataReciveClient.Processing.EndGame;
+@layout EmptyLayout
+
+End Game View 2
+
+@{
+ string tempsBackgroundColor;
+ @if (EndGamePage.textValueOverlayView2.BackgroundColor)
+ {
+ tempsBackgroundColor = formatingData.BackgroundColor;
+ //tempsBackgroundColor = "";
+ }
+ else
+ {
+ tempsBackgroundColor = "";
+ }
+}
+
+
+
+
+ @if (EndGameInfo.jsonContentEndOfMatch != null && EndGameInfo.jsonContentMatch != null && EndGameInfo.jsonContentTimeline != null)
+ {
+ string tempsTopBarGradiant;
+ string tempsChampionInfoGradiant;
+ string tempsBansGradiant;
+ string tempsGlobalStatsGradiant;
+ string tempsGoldDiffGradiant;
+
+ @if (EndGamePage.textValueOverlayView2.TopBarGradiant)
+ {
+ tempsTopBarGradiant = formatingData.TopBarGradiant;
+ }
+ else
+ {
+ tempsTopBarGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView2.ChampionInfoGradiant)
+ {
+ tempsChampionInfoGradiant = formatingData.ChampionInfoGradiant;
+ }
+ else
+ {
+ tempsChampionInfoGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView2.BansGradiant)
+ {
+ tempsBansGradiant = formatingData.BansGradiant;
+ }
+ else
+ {
+ tempsBansGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView2.GlobalStatsGradiant)
+ {
+ tempsGlobalStatsGradiant = formatingData.GlobalStatsGradiant;
+ }
+ else
+ {
+ tempsGlobalStatsGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView2.GoldDiffGradiant)
+ {
+ tempsGoldDiffGradiant = formatingData.GoldDiffGradiant;
+ }
+ else
+ {
+ tempsGoldDiffGradiant = "";
+ }
+
+
+
+
+
+
+
+ @formatingData.TopBarBlueTeamName
+
+
+ @GetWinLossBlue()
+
+
+ @formatingData.TopBarBlueTeamScore
+
+
+
+
+ @formatingData.TopBarTimerText
+
+
+ @GetTimer()
+
+
+
+
+ @formatingData.TopBarRedTeamName
+
+
+ @GetWinLossRed()
+
+
+ @formatingData.TopBarRedTeamScore
+
+
+
+
+
+
+
+
+ @formatingData.ChampionInfoText
+
+
+
+ @foreach (var players in EndGameInfo.jsonContentEndOfMatch.teams[0].players)
+ {
+
+
+
+
+
+
+ @ConvertToK(Convert.ToDouble(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS))
+
+
+
+
+
+ }
+
+
+
+ @foreach (var players in EndGameInfo.jsonContentEndOfMatch.teams[1].players)
+ {
+
+
+
+
+
+
+ @ConvertToK(Convert.ToDouble(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS))
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+ @foreach (var blueBans in EndGameInfo.jsonContentMatch.info.teams[0].bans)
+ {
+
+
+
+ }
+
+
+ BANS
+
+
+ @foreach (var blueBans in EndGameInfo.jsonContentMatch.info.teams[1].bans)
+ {
+
+
+
+ }
+
+
+
+
+
+
+
+
+ @GetKDABlue()
+
+
+ @GetGoldBlue()
+
+
+ @GetTowerKillBlue()
+
+
+
+ @foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ @foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null && !monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+
+
+
+ }
+ }
+ }
+ }
+
+
+
+ @GetElderKillBlue()
+
+
+ @GetHeraldKillBlue()
+
+
+ @GetBaronKillBlue()
+
+
+
+
+ K/D/A
+
+
+ Gold
+
+
+ Towers
+
+
+ Dragons
+
+
+ Elder dragons
+
+
+ Heralds
+
+
+ Barons
+
+
+
+
+ @GetKDARed()
+
+
+ @GetGoldRed()
+
+
+ @GetTowerKillRed()
+
+
+
+ @foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ @foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null && !monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 200)
+ {
+
+
+
+ }
+ }
+ }
+ }
+
+
+
+ @GetElderKillRed()
+
+
+ @GetHeraldKillRed()
+
+
+ @GetBaronKillRed()
+
+
+
+
+
+
+
+ @formatingData.GoldDiffText
+
+
+
+
+
+ @{
+ CreateTabGold();
+ int x = 0;
+ }
+ @for (int i = 0; i < goldDiff.Count - 1; i++)
+ {
+ int y = (goldDiff[i] * 100) / MaxGold();
+ double nexty = (goldDiff[i + 1] * 100) / MaxGold();
+ int nextx = x + 1780 / goldDiff.Count();
+ if (i == 0)
+ {
+
+
+
+
+ }
+ else
+ {
+ if (goldDiff[i] > 0)
+ {
+
+
+
+
+ }
+ else if (goldDiff[i] == 0)
+ {
+
+
+
+
+ }
+ else
+ {
+
+
+
+
+ }
+ }
+ if (i == goldDiff.Count - 2)
+ {
+
+
+
+ }
+ x += 1780 / goldDiff.Count();
+ }
+
+
+
+
+
+
+
+
+
+
+ @{
+ int decalageX = 1703 / (GetTimerInt() / 5);
+ int leftDistance = 47;
+ TimeSpan timerFive = new TimeSpan(0, 0, 0);
+ }
+ @for (int i = 0; i < (GetTimerInt() / 5) - 1; i++)
+ {
+ leftDistance = leftDistance + decalageX;
+ timerFive = timerFive.Add(new TimeSpan(0, 5, 0));
+
+
@timerFive.ToString("mm':'ss")
+ }
+
+
+ 0
+
+
+ @GetTimer()
+
+
+ 00:00
+
+
+ @ConvertToK(MaxGold())
+
+
+ @ConvertToK(MaxGold()/2)
+
+
+ @ConvertToK(MaxGold()/2)
+
+
+ @ConvertToK(MaxGold())
+
+
+
+ }
+ else
+ {
+
+
Info! Not end game information found
+
+ }
+
+
+
+
+
+@code {
+ private System.Timers.Timer timer = new(5000);
+
+ protected override void OnInitialized()
+ {
+ timer.Elapsed += (sender, eventArgs) => OnTimerCallback();
+ timer.Start();
+ }
+
+ private void OnTimerCallback()
+ {
+ _ = InvokeAsync(() =>
+ {
+ StateHasChanged();
+ });
+ }
+
+ public void Dispose() => timer.Dispose();
+}
diff --git a/OSL-Server/Pages/EndGame/EndGameView2Page.razor.cs b/OSL-Server/Pages/EndGame/EndGameView2Page.razor.cs
new file mode 100644
index 0000000..1024ccb
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGameView2Page.razor.cs
@@ -0,0 +1,568 @@
+using OSL_Server.Configuration;
+using OSL_Server.DataReciveClient.Processing.EndGame;
+using static OSL_Server.DataReciveClient.Processing.EndGame.EndGameInfo;
+using static OSL_Server.Pages.EndGameTestPage;
+
+namespace OSL_Server.Pages.EndGame
+{
+ public partial class EndGameView2Page
+ {
+ private static OSLLogger _logger = new OSLLogger("EndGameView2Page");
+
+ //Data for display color, texte, picture on web page
+ public static FormatingData formatingData = new();
+
+ public static List goldDiff = new();
+ public class FormatingData
+ {
+ public string DefaultPatch { get; set; }
+ public string DefaultRegion { get; set; }
+
+ public string BackgroundColor { get; set; }
+ public string BackgroundColorDeg { get; set; }
+ public string BackgroundColorColor1 { get; set; }
+ public string BackgroundColorPercent1 { get; set; }
+ public string BackgroundColorColor2 { get; set; }
+ public string BackgroundColorPercent2 { get; set; }
+
+ public string TopBarBackgroundColor { get; set; }
+ public string TopBarBackgroundColorDeg { get; set; }
+ public string TopBarBackgroundColorColor1 { get; set; }
+ public string TopBarBackgroundColorPercent1 { get; set; }
+ public string TopBarBackgroundColorColor2 { get; set; }
+ public string TopBarBackgroundColorPercent2 { get; set; }
+ public string TopBarGradiant { get; set; }
+ public string TopBarBorderColor { get; set; }
+ public string TopBarTimerText { get; set; }
+ public string TopBarTimerTextColor { get; set; }
+ public string TopBarTimerColor { get; set; }
+ public string TopBarBlueTeamName { get; set; }
+ public string TopBarBlueTeamScore { get; set; }
+ public string TopBarBlueTeamNameColor { get; set; }
+ public string TopBarBlueTeamScoreColor { get; set; }
+ public string TopBarBlueTeamWinLossColor { get; set; }
+ public string TopBarRedTeamName { get; set; }
+ public string TopBarRedTeamScore { get; set; }
+ public string TopBarRedTeamNameColor { get; set; }
+ public string TopBarRedTeamScoreColor { get; set; }
+ public string TopBarRedTeamWinLossColor { get; set; }
+
+ public string ChampionInfoBackgroundColor { get; set; }
+ public string ChampionInfoBackgroundColorDeg { get; set; }
+ public string ChampionInfoBackgroundColorColor1 { get; set; }
+ public string ChampionInfoBackgroundColorPercent1 { get; set; }
+ public string ChampionInfoBackgroundColorColor2 { get; set; }
+ public string ChampionInfoBackgroundColorPercent2 { get; set; }
+ public string ChampionInfoGradiant { get; set; }
+ public string ChampionInfoBorderColor { get; set; }
+ public string ChampionInfoText { get; set; }
+ public string ChampionInfoTextColor { get; set; }
+ public string ChampionInfoBlueBarColor { get; set; }
+ public string ChampionInfoRedBarColor { get; set; }
+ public string ChampionInfoBlueDegaTextColor { get; set; }
+ public string ChampionInfoRedDegaTextColor { get; set; }
+
+ public string BansBackgroundColor { get; set; }
+ public string BansBackgroundColorDeg { get; set; }
+ public string BansBackgroundColorColor1 { get; set; }
+ public string BansBackgroundColorPercent1 { get; set; }
+ public string BansBackgroundColorColor2 { get; set; }
+ public string BansBackgroundColorPercent2 { get; set; }
+ public string BansGradiant { get; set; }
+ public string BansBorderColor { get; set; }
+ public string BansTextColor { get; set; }
+
+ public string GlobalStatsBackgroundColor { get; set; }
+ public string GlobalStatsBackgroundColorDeg { get; set; }
+ public string GlobalStatsBackgroundColorColor1 { get; set; }
+ public string GlobalStatsBackgroundColorPercent1 { get; set; }
+ public string GlobalStatsBackgroundColorColor2 { get; set; }
+ public string GlobalStatsBackgroundColorPercent2 { get; set; }
+ public string GlobalStatsGradiant { get; set; }
+ public string GlobalStatsBorderColor { get; set; }
+ public string GlobalStatsTextColor { get; set; }
+ public string GlobalStatsBlueTextColor { get; set; }
+ public string GlobalStatsRedTextColor { get; set; }
+
+ public string GoldDiffBackgroundColor { get; set; }
+ public string GoldDiffBackgroundColorDeg { get; set; }
+ public string GoldDiffBackgroundColorColor1 { get; set; }
+ public string GoldDiffBackgroundColorPercent1 { get; set; }
+ public string GoldDiffBackgroundColorColor2 { get; set; }
+ public string GoldDiffBackgroundColorPercent2 { get; set; }
+ public string GoldDiffGradiant { get; set; }
+ public string GoldDiffBorderColor { get; set; }
+ public string GoldDiffText { get; set; }
+ public string GoldDiffTextColor { get; set; }
+ public string GoldDiffBlueTextGoldColor { get; set; }
+ public string GoldDiffRedTextGoldColor { get; set; }
+ public string GoldDiffZeroTextGoldColor { get; set; }
+ public string GoldDiffBluePointGoldColor { get; set; }
+ public string GoldDiffRedPointGoldColor { get; set; }
+ public string GoldDiffZeroPointGoldColor { get; set; }
+ public string GoldDiffStartEndPointGoldColor { get; set; }
+ public string GoldDiffLinkPointGoldColor { get; set; }
+ public string GoldDiffBarColor { get; set; }
+
+ }
+
+ public string GetTimer()
+ {
+ try
+ {
+ int gameLength = EndGameInfo.jsonContentMatch.info.gameDuration;
+ TimeSpan time = TimeSpan.FromSeconds(gameLength);
+ return time.ToString("mm':'ss");
+ }
+ catch
+ {
+ return "00:00";
+ }
+ }
+
+ public int GetTimerInt()
+ {
+ try
+ {
+ int gameLength = EndGameInfo.jsonContentMatch.info.gameDuration;
+ TimeSpan time = TimeSpan.FromSeconds(gameLength);
+ int timeLength = int.Parse(time.ToString("mm"));
+ return timeLength;
+ }
+ catch
+ {
+ return 0;
+ }
+ }
+
+ public string GetChampionPathByPath(string championId)
+ {
+ string[] parsePath = championId.Split("/");
+ string[] parseId = parsePath[parsePath.Length - 1].Split(".");
+ return GetChampionPath(parseId[0]);
+ }
+
+ public string GetChampionPath(string championId)
+ {
+ return $"./assets/{formatingData.DefaultPatch}/{formatingData.DefaultRegion}/Champions/{championId}/default-square.png";
+ }
+
+ public string ConvertToK(double total)
+ {
+ if (total > 1000000)
+ {
+ return $"{Math.Round(total / 1000000, 1)} M";
+ }
+ else if (total > 1000)
+ {
+ return $"{Math.Round(total / 1000, 1)}k";
+ }
+ else
+ {
+ return $"{total}";
+ }
+ }
+
+ public string ConvertToWidth(int total)
+ {
+ int max = 0;
+ foreach (var teams in EndGameInfo.jsonContentEndOfMatch.teams)
+ {
+ foreach (var players in teams.players)
+ {
+ if (Convert.ToInt32(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS) > max)
+ {
+ max = Convert.ToInt32(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS);
+ }
+ }
+ }
+ double calculPourcent2 = (total * 320) / max;
+ return $"{calculPourcent2}px";
+ }
+
+ public string GetKDABlue()
+ {
+ string kill = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.CHAMPIONS_KILLED;
+ string death = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.NUM_DEATHS;
+ string assist = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.ASSISTS;
+ return $"{kill}/{death}/{assist}";
+ }
+ public string GetKDARed()
+ {
+ string kill = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.CHAMPIONS_KILLED;
+ string death = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.NUM_DEATHS;
+ string assist = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.ASSISTS;
+ return $"{kill}/{death}/{assist}";
+ }
+
+ public string GetGoldBlue()
+ {
+ float gold = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.GOLD_EARNED;
+ if (gold > 1000000)
+ {
+ return $"{Math.Round(gold / 1000000, 1)} M";
+ }
+ else if (gold > 1000)
+ {
+ return $"{Math.Round(gold / 1000, 1)} k";
+ }
+ else
+ {
+ return $"{gold}";
+ }
+ }
+ public string GetGoldRed()
+ {
+ float gold = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.GOLD_EARNED;
+ if (gold > 1000000)
+ {
+ return $"{Math.Round(gold / 1000000, 1)} M";
+ }
+ else if (gold > 1000)
+ {
+ return $"{Math.Round(gold / 1000, 1)} k";
+ }
+ else
+ {
+ return $"{gold}";
+ }
+ }
+
+ public string GetTowerKillBlue()
+ {
+ int tower = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.TURRETS_KILLED;
+ return $"{tower}";
+ }
+
+ public string GetTowerKillRed()
+ {
+ int tower = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.TURRETS_KILLED;
+ return $"{tower}";
+ }
+
+ public string GetDragonsKill(string monsterSubType)
+ {
+ if (monsterSubType != null && monsterSubType.Equals("HEXTECH_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/hextech_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("WATER_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/ocean_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("FIRE_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/infernal_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("AIR_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/cloud_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("CHEMTECH_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/chemtech_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("MONTAIN_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/mountain_dragon_icon.png";
+ }
+ //int tower = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.TURRETS_KILLED;
+ return $"";
+ }
+
+ public string GetElderKillBlue()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetElderKillRed()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 200)
+ {
+ if (monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetHeraldKillBlue()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("RIFTHERALD"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetHeraldKillRed()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("RIFTHERALD"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetBaronKillBlue()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("BARON_NASHOR"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetBaronKillRed()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("BARON_NASHOR"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetWinLossBlue()
+ {
+ foreach (var participants in jsonContentMatch.info.participants)
+ {
+ int teamId = participants.teamId;
+ if (teamId == 100)
+ {
+ bool win = participants.win;
+ if (win)
+ {
+ return $"VICTOIRE";
+ }
+ }
+ }
+ return $"DÉFAITE";
+ }
+
+ public string GetWinLossRed()
+ {
+ foreach (var participants in jsonContentMatch.info.participants)
+ {
+ int teamId = participants.teamId;
+ if (teamId == 200)
+ {
+ bool win = participants.win;
+ if (win)
+ {
+ return $"VICTOIRE";
+ }
+ }
+ }
+ return $"DÉFAITE";
+ }
+
+ public static void ResetColor()
+ {
+ Config.LoadFormatingDataConfigEndGameView2();
+ EndGamePage.textValueOverlayView2.TopBarBlueTeamName = "";
+ EndGamePage.textValueOverlayView2.TopBarRedTeamName = "";
+ EndGamePage.textValueOverlayView2.TopBarBlueTeamScore = "";
+ EndGamePage.textValueOverlayView2.TopBarRedTeamScore = "";
+ EndGamePage.textValueOverlayView2.TopBarTimerText = "";
+ EndGamePage.textValueOverlayView2.ChampionInfoText = "";
+ EndGamePage.textValueOverlayView2.GoldDiffText = "";
+ EndGamePage.textValueOverlayView2.BackgroundColor = true;
+ EndGamePage.textValueOverlayView2.TopBarGradiant = true;
+ EndGamePage.textValueOverlayView2.ChampionInfoGradiant = true;
+ EndGamePage.textValueOverlayView2.BansGradiant = true;
+ EndGamePage.textValueOverlayView2.GlobalStatsGradiant = true;
+ EndGamePage.textValueOverlayView2.GoldDiffGradiant = true;
+ EndGamePage.textValueOverlayView2.BackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView2.BackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView2.BackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView2.TopBarBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView2.TopBarBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView2.TopBarBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView2.ChampionInfoBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView2.ChampionInfoBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView2.ChampionInfoBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView2.BansBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView2.BansBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView2.BansBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView2.GlobalStatsBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView2.GlobalStatsBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView2.GlobalStatsBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView2.GoldDiffBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView2.GoldDiffBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView2.GoldDiffBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView2.TopBarBorderColor = 5;
+ EndGamePage.textValueOverlayView2.ChampionInfoBorderColor = 5;
+ EndGamePage.textValueOverlayView2.BansBorderColor = 5;
+ EndGamePage.textValueOverlayView2.GlobalStatsBorderColor = 5;
+ EndGamePage.textValueOverlayView2.GoldDiffBorderColor = 5;
+
+ }
+
+ public static void CreateTabGold()
+ {
+ goldDiff = new();
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ int totalGoldBlue = 0;
+ int totalGoldRed = 0;
+ int i = 0;
+ foreach (var participantFrames in frames.participantFrames)
+ {
+ i++;
+ if (i < 6)
+ {
+ foreach (var intVar in participantFrames)
+ {
+ totalGoldBlue += Convert.ToInt32(intVar.totalGold);
+ }
+ }
+ else
+ {
+ foreach (var intVar in participantFrames)
+ {
+ totalGoldRed += Convert.ToInt32(intVar.totalGold);
+ }
+ }
+ }
+ int diffGold = totalGoldBlue - totalGoldRed;
+ goldDiff.Add(diffGold);
+ }
+ }
+ public static int MaxGold()
+ {
+ int max = goldDiff.Max();
+ int min = goldDiff.Min();
+ if (max > Math.Abs(min))
+ {
+ return max;
+ }
+ else
+ {
+ return Math.Abs(min);
+ }
+ }
+
+
+ public static string ConvertToString(int x)
+ {
+ return $"{x}px";
+ }
+
+ public static string ConvertToString(double x)
+ {
+ return $"{x}px";
+ }
+
+ public static string ConvertToHyp(int x, double y, int prex, double prey)
+ {
+ double newY = y - prey;
+ double newX = x - prex;
+ double sqrt = Math.Sqrt(newX * newX + newY * newY);
+ string machin = sqrt.ToString();
+ return machin.Replace(",", ".");
+ }
+
+ public static string ConvertToAngle(int x, double y, int prex, double prey)
+ {
+ double newY = y - prey;
+ double newX = x - prex;
+ double sqrt = Math.Sqrt(newX * newX + newY * newY);
+ double sin = newY / sqrt;
+ double test = Math.Asin(sin) * (180 / Math.PI);
+ string machin = test.ToString();
+ return machin.Replace(",", ".");
+ }
+ }
+}
diff --git a/OSL-Server/Pages/EndGame/EndGameView2Page.razor.css b/OSL-Server/Pages/EndGame/EndGameView2Page.razor.css
new file mode 100644
index 0000000..bcd5dde
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGameView2Page.razor.css
@@ -0,0 +1,636 @@
+/*##########################################################*/
+/*######################## General #########################*/
+/*##########################################################*/
+
+@font-face {
+ font-family: MyFont;
+ src: url(../css/font/BeaufortForLoL-OTF/BeaufortforLOL-Bold.otf);
+}
+
+html, body {
+ background-color: black;
+ color: white;
+}
+
+.title {
+ font-family: MyFont;
+ font-weight: bold;
+ text-decoration: underline;
+}
+
+.endGameView2 {
+ width: 1920px;
+ height: 1080px;
+ position: absolute;
+ /*background: url(./assets/endgame/image2.png);*/
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+}
+
+.content {
+ position: absolute;
+}
+
+
+/*##########################################################*/
+/*######################## top-bar #########################*/
+/*##########################################################*/
+
+.top-bar {
+ top: 45px;
+ left: 50px;
+ position: absolute;
+ height: 115px;
+ width: 1820px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.top-bar-gradiant {
+ height: 115px;
+ width: 1820px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.top-bar-border {
+ height: 115px;
+ width: 1820px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.top-bar-blue-team {
+ left: 50px;
+ padding: 50px;
+ font-family: MyFont;
+ font-size: 32px;
+ position: absolute;
+ display: flex;
+}
+
+.top-bar-blue-team-name {
+ padding-right: 20px;
+}
+
+.top-bar-blue-team-winloss {
+ padding-right: 40px;
+}
+
+.top-bar-blue-team-score {
+ /*padding-right: 30px;*/
+}
+
+
+
+
+.top-bar-timer {
+ padding: 50px;
+ font-family: MyFont;
+ font-size: 28px;
+ text-align: center;
+ color: #c99d53;
+ position: absolute;
+}
+
+.top-bar-red-team {
+ right: 50px;
+ padding: 50px;
+ font-family: MyFont;
+ font-size: 32px;
+ position: absolute;
+ display: flex;
+ flex-direction: row-reverse;
+}
+
+.top-bar-red-team-name {
+ padding-left: 20px;
+}
+
+.top-bar-red-team-winloss {
+ padding-left: 40px;
+}
+
+.top-bar-red-team-score {
+ /*padding: 10px;*/
+}
+
+
+/*##########################################################*/
+/*##################### champion-info ######################*/
+/*##########################################################*/
+
+.champion-info {
+ top: 200px;
+ left: 50px;
+ position: absolute;
+ height: 390px;
+ width: 810px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.champion-info-gradiant {
+ height: 400px;
+ width: 810px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.champion-info-border {
+ height: 400px;
+ width: 810px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+
+.champion-info-stats {
+ text-align: center;
+ display: flex;
+ justify-content: center;
+}
+
+.champion-info-stats-text {
+ /*left: 0px;*/
+ top: 0px;
+ padding: 20px;
+ font-family: MyFont;
+ font-size: 32px;
+ position: absolute;
+ width: 600px;
+ /*color: #c99d53;*/
+}
+
+.champion-info-stats-blue {
+ top: 90px;
+ left: 5px;
+ position: absolute;
+}
+
+.champion-info-stats-blue-group {
+ display: flex;
+}
+
+.champion-info-stats-blue-group-info {
+ left: 60px;
+ position: absolute;
+}
+
+.champion-info-stats-blue-group-text {
+ font-family: MyFont;
+ font-size: 22px;
+ left: 10px;
+ position: absolute;
+}
+
+.champion-info-stats-blue-group-bar {
+ height: 15px;
+ width: 200px;
+ top: 35px;
+ left: 0.2px;
+ /*background-color: #0b849e;*/
+ position: absolute;
+}
+
+.champion-info-stats-red-group {
+ display: flex;
+}
+
+.champion-info-stats-red-group-info {
+ right: 60px;
+ position: absolute;
+}
+
+.champion-info-stats-red-group-text {
+ font-family: MyFont;
+ font-size: 22px;
+ right: 10px;
+ position: absolute;
+}
+
+.champion-info-stats-red-group-bar {
+ height: 15px;
+ width: 200px;
+ top: 35px;
+ right: 0.2px;
+ /*background-color: #be1e37;*/
+ position: absolute;
+}
+
+.champion-info-stats-red {
+ top: 90px;
+ right: 5px;
+ position: absolute;
+}
+
+.pick-picture {
+ height: 60px;
+}
+
+/*##########################################################*/
+/*########################## Bans ##########################*/
+/*##########################################################*/
+
+.bans {
+ top: 615px;
+ /*top: 645px;*/
+ left: 50px;
+ height: 60px;
+ width: 810px;
+ position: absolute;
+ display: flex;
+ justify-content: center;
+ box-sizing: border-box;
+ align-items: center;
+ margin-left: 0;
+ margin-right: 0;
+ /*color: #c99d53;*/
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+}
+
+.bans-gradiant {
+ height: 60px;
+ width: 810px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.bans-border {
+ height: 60px;
+ width: 810px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.bans-info {
+ position: absolute;
+ display: flex;
+}
+
+.bans-info-blue {
+ display: flex;
+ box-sizing: border-box;
+}
+
+.bans-info-red {
+ display: flex;
+ box-sizing: border-box;
+}
+
+.bans-picture {
+ height: 49.5px;
+}
+
+.bans-info-text {
+ padding-left: 113px;
+ padding-right: 113px;
+ font-family: MyFont;
+ font-size: 30px;
+}
+
+
+/*##########################################################*/
+/*###################### global-stats ######################*/
+/*##########################################################*/
+
+.global-stats {
+ top: 200px;
+ left: 1060px;
+ position: absolute;
+ height: 475px;
+ width: 810px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.global-stats-gradiant {
+ height: 475px;
+ width: 810px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.global-stats-border {
+ height: 475px;
+ width: 810px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.global-stats-center {
+ position: absolute;
+ text-align: center;
+ height: 475px;
+}
+
+.global-stats-center-info {
+ font-family: MyFont;
+ font-size: 30px;
+ padding: 10px;
+ /*color: #c99d53;*/
+}
+
+.global-stats-blue {
+ font-family: MyFont;
+ font-size: 30px;
+ height: 475px;
+ width: 250px;
+ left: 0px;
+ position: absolute;
+ text-align: center;
+ justify-content: center;
+ align-items: center;
+}
+
+.dragon-wrapper {
+ display: inline;
+ padding: 10px;
+}
+
+.dragon-picture {
+ height: 30px;
+}
+
+.global-stats-blue-info {
+ padding: 10px;
+}
+
+.global-stats-red {
+ font-family: MyFont;
+ font-size: 30px;
+ height: 475px;
+ width: 250px;
+ right: 0px;
+ position: absolute;
+ text-align: center;
+ justify-content: center;
+ align-items: center;
+}
+
+.global-stats-red-info {
+ padding: 10px;
+}
+
+
+/*##########################################################*/
+/*####################### gold-diff ########################*/
+/*##########################################################*/
+
+.gold-diff {
+ top: 705px;
+ left: 50px;
+ position: absolute;
+ height: 340px;
+ width: 1820px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.gold-diff-gradiant {
+ height: 340px;
+ width: 1820px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.gold-diff-border {
+ height: 340px;
+ width: 1820px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.gold-diff-text {
+ /*left: 0px;*/
+ top: 0px;
+ padding: 20px;
+ font-family: MyFont;
+ font-size: 32px;
+ position: absolute;
+ /*width: 1300px;*/
+ color: #c99d53;
+}
+
+.gold-graph {
+ position: absolute;
+ top: 190px;
+ left: 35px;
+}
+
+.css-chart {
+ /*border-bottom: 1px solid;*/
+ /*border-left: 1px solid;*/
+ /*display: inline-block;*/
+ /*height: var(--widget-size);*/
+ /*margin: 5em 15em 1em 5em;*/
+ /*padding: 0;*/
+ position: absolute;
+ /*left: -5px;*/
+ /*width: var(--widget-size);*/
+}
+
+.gold-graph-content {
+ position: absolute;
+ left: 47px;
+ top: 2px;
+}
+
+.line-chart {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ position: absolute;
+}
+
+.data-point {
+ background-color: white;
+ /*border: 2px solid lightblue;*/
+ border-radius: 50%;
+ bottom: calc(var(--y) - 7px);
+ height: 15px;
+ left: calc(var(--x) - 7px);
+ position: absolute;
+ width: 15px;
+ z-index: 1;
+}
+
+.line-segment {
+ /*background-color: #c99d53;*/
+ bottom: var(--y);
+ height: 2px;
+ left: var(--x);
+ position: absolute;
+ transform: rotate(calc(var(--angle) * 1deg));
+ transform-origin: left bottom;
+ width: calc(var(--hypotenuse) * 1px);
+}
+
+.gold-graph-orizon-bar {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: 0px;
+ left: 50px;
+ position: absolute;
+ width: 1696px;
+}
+
+.gold-graph-vertical-bar {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 47px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-timer {
+ position: absolute;
+ top: 110px;
+ font-family: MyFont;
+ font-size: 18px;
+}
+
+.gold-graph-vertical-bar-left {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 47px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-right {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 1750px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-mid {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 645px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-mid-left {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 345px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-mid-right {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 945px;
+ height: 200px;
+}
+
+.gold-graph-orizon-bar-maxmoy {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: -50px;
+ left: 50px;
+ position: absolute;
+ width: 1696px;
+}
+
+.gold-graph-orizon-bar-max {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: -100px;
+ left: 50px;
+ position: absolute;
+ width: 1696px;
+}
+
+.gold-graph-orizon-bar-min {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: 100px;
+ left: 50px;
+ position: absolute;
+ width: 1696px;
+}
+
+.gold-graph-orizon-bar-minmoy {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: 50px;
+ left: 50px;
+ position: absolute;
+ width: 1695px;
+}
+
+.gold-graph-zero {
+ font-family: MyFont;
+ font-size: 22px;
+ position: absolute;
+ left: 15px;
+ top: -15px;
+}
+
+.gold-graph-max {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: -120px;
+}
+
+.gold-graph-maxmoy {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: -60px;
+}
+
+.gold-graph-min {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: 80px;
+}
+
+.gold-graph-minmoy {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: 40px;
+}
+
+.gold-graph-time-1 {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: 25px;
+ top: 110px;
+}
+
+.gold-graph-time-5 {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: 1730px;
+ top: 110px;
+}
+
diff --git a/OSL-Server/Pages/EndGame/EndGameView3Page.razor b/OSL-Server/Pages/EndGame/EndGameView3Page.razor
new file mode 100644
index 0000000..6c07bdc
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGameView3Page.razor
@@ -0,0 +1,476 @@
+@page "/endgame/view3"
+@using OSL_Server.DataReciveClient.Processing.EndGame;
+@layout EmptyLayout
+
+End Game View 3
+
+@{
+ string tempsBackgroundColor;
+ @if (EndGamePage.textValueOverlayView3.BackgroundColor)
+ {
+ tempsBackgroundColor = formatingData.BackgroundColor;
+ //tempsBackgroundColor = "";
+ }
+ else
+ {
+ tempsBackgroundColor = "";
+ }
+}
+
+
+
+
+ @if (EndGameInfo.jsonContentEndOfMatch != null && EndGameInfo.jsonContentMatch != null && EndGameInfo.jsonContentTimeline != null)
+ {
+ string tempsTopBarGradiant;
+ string tempsChampionInfoGradiant;
+ string tempsBansGradiant;
+ string tempsGlobalStatsGradiant;
+ string tempsGoldDiffGradiant;
+
+ @if (EndGamePage.textValueOverlayView3.TopBarGradiant)
+ {
+ tempsTopBarGradiant = formatingData.TopBarGradiant;
+ }
+ else
+ {
+ tempsTopBarGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView3.ChampionInfoGradiant)
+ {
+ tempsChampionInfoGradiant = formatingData.ChampionInfoGradiant;
+ }
+ else
+ {
+ tempsChampionInfoGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView3.BansGradiant)
+ {
+ tempsBansGradiant = formatingData.BansGradiant;
+ }
+ else
+ {
+ tempsBansGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView3.GlobalStatsGradiant)
+ {
+ tempsGlobalStatsGradiant = formatingData.GlobalStatsGradiant;
+ }
+ else
+ {
+ tempsGlobalStatsGradiant = "";
+ }
+ @if (EndGamePage.textValueOverlayView3.GoldDiffGradiant)
+ {
+ tempsGoldDiffGradiant = formatingData.GoldDiffGradiant;
+ }
+ else
+ {
+ tempsGoldDiffGradiant = "";
+ }
+
+ string tempsTopBarBackground;
+ string tempsChampionInfoBackground;
+ string tempsBansBackground;
+ string tempsGlobalStatsBackground;
+ string tempsGoldDiffBackground;
+
+ @if (EndGamePage.textValueOverlayView3.TopBarBackground)
+ {
+ tempsTopBarBackground = formatingData.TopBarBackgroundColor;
+ }
+ else
+ {
+ tempsTopBarBackground = "";
+ }
+ @if (EndGamePage.textValueOverlayView3.ChampionInfoBackground)
+ {
+ tempsChampionInfoBackground = formatingData.ChampionInfoBackgroundColor;
+ }
+ else
+ {
+ tempsChampionInfoBackground = "";
+ }
+ @if (EndGamePage.textValueOverlayView3.BansBackground)
+ {
+ tempsBansBackground = formatingData.BansBackgroundColor;
+ }
+ else
+ {
+ tempsBansBackground = "";
+ }
+ @if (EndGamePage.textValueOverlayView3.GlobalStatsBackground)
+ {
+ tempsGlobalStatsBackground = formatingData.GlobalStatsBackgroundColor;
+ }
+ else
+ {
+ tempsGlobalStatsBackground = "";
+ }
+ @if (EndGamePage.textValueOverlayView3.GoldDiffBackground)
+ {
+ tempsGoldDiffBackground = formatingData.GoldDiffBackgroundColor;
+ }
+ else
+ {
+ tempsGoldDiffBackground = "";
+ }
+
+
+
+
+
+
+
+
+ @formatingData.TopBarBlueTeamName
+
+
+ @GetWinLossBlue()
+
+
+
+
+
+ @formatingData.TopBarBlueTeamScore
+
+
+
+ -
+
+
+ @formatingData.TopBarRedTeamScore
+
+
+
+
+ @formatingData.TopBarRedTeamName
+
+
+ @GetWinLossRed()
+
+
+
+
+
+ @formatingData.TopBarTimerText
+
+
+ @GetTimer()
+
+
+
+
+
+
+
+
+ @formatingData.ChampionInfoText
+
+
+
+ @foreach (var players in EndGameInfo.jsonContentEndOfMatch.teams[0].players)
+ {
+
+
+
+
+
+
+ @ConvertToK(Convert.ToDouble(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS))
+
+
+
+
+
+ }
+
+
+
+ @foreach (var players in EndGameInfo.jsonContentEndOfMatch.teams[1].players)
+ {
+
+
+
+
+
+
+ @ConvertToK(Convert.ToDouble(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS))
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+ @foreach (var blueBans in EndGameInfo.jsonContentMatch.info.teams[0].bans)
+ {
+
+
+
+ }
+
+
+ BANS
+
+
+ @foreach (var blueBans in EndGameInfo.jsonContentMatch.info.teams[1].bans)
+ {
+
+
+
+ }
+
+
+
+
+
+
+
+
+ @GetKDABlue()
+
+
+ @GetGoldBlue()
+
+
+ @GetTowerKillBlue()
+
+
+
+ @foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ @foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null && !monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+
+
+
+ }
+ }
+ }
+ }
+
+
+
+ @GetElderKillBlue()
+
+
+ @GetHeraldKillBlue()
+
+
+ @GetBaronKillBlue()
+
+
+
+
+ K/D/A
+
+
+ Gold
+
+
+ Towers
+
+
+ Dragons
+
+
+ Elder dragons
+
+
+ Heralds
+
+
+ Barons
+
+
+
+
+ @GetKDARed()
+
+
+ @GetGoldRed()
+
+
+ @GetTowerKillRed()
+
+
+
+ @foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ @foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null && !monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 200)
+ {
+
+
+
+ }
+ }
+ }
+ }
+
+
+
+ @GetElderKillRed()
+
+
+ @GetHeraldKillRed()
+
+
+ @GetBaronKillRed()
+
+
+
+
+
+
+
+ @formatingData.GoldDiffText
+
+
+
+
+
+ @{
+ CreateTabGold();
+ double x = 0;
+ }
+ @for (int i = 0; i < goldDiff.Count - 1; i++)
+ {
+ double y = (goldDiff[i] * 125) / MaxGold();
+ double nexty = (goldDiff[i + 1] * 125) / MaxGold();
+ double nextx = x + 845 / goldDiff.Count();
+ if (i == 0)
+ {
+
+
+
+
+ }
+ else
+ {
+ if (goldDiff[i] > 0)
+ {
+
+
+
+
+ }
+ else if (goldDiff[i] == 0)
+ {
+
+
+
+
+ }
+ else
+ {
+
+
+
+
+ }
+ }
+ if (i == goldDiff.Count - 2)
+ {
+
+
+
+ }
+ x += 845 / goldDiff.Count();
+ }
+
+
+
+
+
+
+
+
+
+
+ @{
+ int decalageX = 807 / (GetTimerInt() / 5);
+ int leftDistance = 47;
+ TimeSpan timerFive = new TimeSpan(0, 0, 0);
+ }
+ @for (int i = 0; i < (GetTimerInt() / 5) - 1; i++)
+ {
+ leftDistance = leftDistance + decalageX;
+ timerFive = timerFive.Add(new TimeSpan(0, 5, 0));
+
+
@timerFive.ToString("mm':'ss")
+ }
+
+
+ 0
+
+
+ @GetTimer()
+
+
+ 00:00
+
+
+ @ConvertToK(MaxGold())
+
+
+ @ConvertToK(MaxGold()/2)
+
+
+ @ConvertToK(MaxGold()/2)
+
+
+ @ConvertToK(MaxGold())
+
+
+
+ }
+ else
+ {
+
+
Info! Not end game information found
+
+ }
+
+
+
+
+
+@code {
+ private System.Timers.Timer timer = new(5000);
+
+ protected override void OnInitialized()
+ {
+ timer.Elapsed += (sender, eventArgs) => OnTimerCallback();
+ timer.Start();
+ }
+
+ private void OnTimerCallback()
+ {
+ _ = InvokeAsync(() =>
+ {
+ StateHasChanged();
+ });
+ }
+
+ public void Dispose() => timer.Dispose();
+}
diff --git a/OSL-Server/Pages/EndGame/EndGameView3Page.razor.cs b/OSL-Server/Pages/EndGame/EndGameView3Page.razor.cs
new file mode 100644
index 0000000..9701601
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGameView3Page.razor.cs
@@ -0,0 +1,574 @@
+using OSL_Server.Configuration;
+using OSL_Server.DataReciveClient.Processing.EndGame;
+using static OSL_Server.DataReciveClient.Processing.EndGame.EndGameInfo;
+using static OSL_Server.Pages.EndGameTestPage;
+
+namespace OSL_Server.Pages.EndGame
+{
+ public partial class EndGameView3Page
+ {
+ private static OSLLogger _logger = new OSLLogger("EndGameView3Page");
+
+ //Data for display color, texte, picture on web page
+ public static FormatingData formatingData = new();
+
+ public static List goldDiff = new();
+ public class FormatingData
+ {
+ public string DefaultPatch { get; set; }
+ public string DefaultRegion { get; set; }
+
+ public string BackgroundColor { get; set; }
+ public string BackgroundColorDeg { get; set; }
+ public string BackgroundColorColor1 { get; set; }
+ public string BackgroundColorPercent1 { get; set; }
+ public string BackgroundColorColor2 { get; set; }
+ public string BackgroundColorPercent2 { get; set; }
+
+ public string TopBarBackgroundColor { get; set; }
+ public string TopBarBackgroundColorDeg { get; set; }
+ public string TopBarBackgroundColorColor1 { get; set; }
+ public string TopBarBackgroundColorPercent1 { get; set; }
+ public string TopBarBackgroundColorColor2 { get; set; }
+ public string TopBarBackgroundColorPercent2 { get; set; }
+ public string TopBarGradiant { get; set; }
+ public string TopBarBorderColor { get; set; }
+ public string TopBarTimerText { get; set; }
+ public string TopBarTimerTextColor { get; set; }
+ public string TopBarTimerColor { get; set; }
+ public string TopBarBlueTeamName { get; set; }
+ public string TopBarBlueTeamScore { get; set; }
+ public string TopBarBlueTeamNameColor { get; set; }
+ public string TopBarBlueTeamScoreColor { get; set; }
+ public string TopBarBlueTeamWinLossColor { get; set; }
+ public string TopBarRedTeamName { get; set; }
+ public string TopBarRedTeamScore { get; set; }
+ public string TopBarRedTeamNameColor { get; set; }
+ public string TopBarRedTeamScoreColor { get; set; }
+ public string TopBarRedTeamWinLossColor { get; set; }
+
+ public string ChampionInfoBackgroundColor { get; set; }
+ public string ChampionInfoBackgroundColorDeg { get; set; }
+ public string ChampionInfoBackgroundColorColor1 { get; set; }
+ public string ChampionInfoBackgroundColorPercent1 { get; set; }
+ public string ChampionInfoBackgroundColorColor2 { get; set; }
+ public string ChampionInfoBackgroundColorPercent2 { get; set; }
+ public string ChampionInfoGradiant { get; set; }
+ public string ChampionInfoBorderColor { get; set; }
+ public string ChampionInfoText { get; set; }
+ public string ChampionInfoTextColor { get; set; }
+ public string ChampionInfoBlueBarColor { get; set; }
+ public string ChampionInfoRedBarColor { get; set; }
+ public string ChampionInfoBlueDegaTextColor { get; set; }
+ public string ChampionInfoRedDegaTextColor { get; set; }
+
+ public string BansBackgroundColor { get; set; }
+ public string BansBackgroundColorDeg { get; set; }
+ public string BansBackgroundColorColor1 { get; set; }
+ public string BansBackgroundColorPercent1 { get; set; }
+ public string BansBackgroundColorColor2 { get; set; }
+ public string BansBackgroundColorPercent2 { get; set; }
+ public string BansGradiant { get; set; }
+ public string BansBorderColor { get; set; }
+ public string BansTextColor { get; set; }
+
+ public string GlobalStatsBackgroundColor { get; set; }
+ public string GlobalStatsBackgroundColorDeg { get; set; }
+ public string GlobalStatsBackgroundColorColor1 { get; set; }
+ public string GlobalStatsBackgroundColorPercent1 { get; set; }
+ public string GlobalStatsBackgroundColorColor2 { get; set; }
+ public string GlobalStatsBackgroundColorPercent2 { get; set; }
+ public string GlobalStatsGradiant { get; set; }
+ public string GlobalStatsBorderColor { get; set; }
+ public string GlobalStatsSeparationColor { get; set; }
+ public string GlobalStatsTextColor { get; set; }
+ public string GlobalStatsBlueTextColor { get; set; }
+ public string GlobalStatsRedTextColor { get; set; }
+
+ public string GoldDiffBackgroundColor { get; set; }
+ public string GoldDiffBackgroundColorDeg { get; set; }
+ public string GoldDiffBackgroundColorColor1 { get; set; }
+ public string GoldDiffBackgroundColorPercent1 { get; set; }
+ public string GoldDiffBackgroundColorColor2 { get; set; }
+ public string GoldDiffBackgroundColorPercent2 { get; set; }
+ public string GoldDiffGradiant { get; set; }
+ public string GoldDiffBorderColor { get; set; }
+ public string GoldDiffText { get; set; }
+ public string GoldDiffTextColor { get; set; }
+ public string GoldDiffBlueTextGoldColor { get; set; }
+ public string GoldDiffRedTextGoldColor { get; set; }
+ public string GoldDiffZeroTextGoldColor { get; set; }
+ public string GoldDiffBluePointGoldColor { get; set; }
+ public string GoldDiffRedPointGoldColor { get; set; }
+ public string GoldDiffZeroPointGoldColor { get; set; }
+ public string GoldDiffStartEndPointGoldColor { get; set; }
+ public string GoldDiffLinkPointGoldColor { get; set; }
+ public string GoldDiffBarColor { get; set; }
+
+ }
+
+ public string GetTimer()
+ {
+ try
+ {
+ int gameLength = EndGameInfo.jsonContentMatch.info.gameDuration;
+ TimeSpan time = TimeSpan.FromSeconds(gameLength);
+ return time.ToString("mm':'ss");
+ }
+ catch
+ {
+ return "00:00";
+ }
+ }
+
+ public int GetTimerInt()
+ {
+ try
+ {
+ int gameLength = EndGameInfo.jsonContentMatch.info.gameDuration;
+ TimeSpan time = TimeSpan.FromSeconds(gameLength);
+ int timeLength = int.Parse(time.ToString("mm"));
+ return timeLength;
+ }
+ catch
+ {
+ return 0;
+ }
+ }
+
+ public string GetChampionPathByPath(string championId)
+ {
+ string[] parsePath = championId.Split("/");
+ string[] parseId = parsePath[parsePath.Length - 1].Split(".");
+ return GetChampionPath(parseId[0]);
+ }
+
+ public string GetChampionPath(string championId)
+ {
+ return $"./assets/{formatingData.DefaultPatch}/{formatingData.DefaultRegion}/Champions/{championId}/default-square.png";
+ }
+
+ public string ConvertToK(double total)
+ {
+ if (total > 1000000)
+ {
+ return $"{Math.Round(total / 1000000, 1)} M";
+ }
+ else if (total > 1000)
+ {
+ return $"{Math.Round(total / 1000, 1)}k";
+ }
+ else
+ {
+ return $"{total}";
+ }
+ }
+
+ public string ConvertToWidth(int total)
+ {
+ int max = 0;
+ foreach (var teams in EndGameInfo.jsonContentEndOfMatch.teams)
+ {
+ foreach (var players in teams.players)
+ {
+ if (Convert.ToInt32(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS) > max)
+ {
+ max = Convert.ToInt32(players.stats.TOTAL_DAMAGE_DEALT_TO_CHAMPIONS);
+ }
+ }
+ }
+ double calculPourcent2 = (total * 360) / max;
+ return $"{calculPourcent2}px";
+ }
+
+ public string GetKDABlue()
+ {
+ string kill = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.CHAMPIONS_KILLED;
+ string death = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.NUM_DEATHS;
+ string assist = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.ASSISTS;
+ return $"{kill}/{death}/{assist}";
+ }
+ public string GetKDARed()
+ {
+ string kill = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.CHAMPIONS_KILLED;
+ string death = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.NUM_DEATHS;
+ string assist = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.ASSISTS;
+ return $"{kill}/{death}/{assist}";
+ }
+
+ public string GetGoldBlue()
+ {
+ float gold = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.GOLD_EARNED;
+ if (gold > 1000000)
+ {
+ return $"{Math.Round(gold / 1000000, 1)} M";
+ }
+ else if (gold > 1000)
+ {
+ return $"{Math.Round(gold / 1000, 1)} k";
+ }
+ else
+ {
+ return $"{gold}";
+ }
+ }
+ public string GetGoldRed()
+ {
+ float gold = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.GOLD_EARNED;
+ if (gold > 1000000)
+ {
+ return $"{Math.Round(gold / 1000000, 1)} M";
+ }
+ else if (gold > 1000)
+ {
+ return $"{Math.Round(gold / 1000, 1)} k";
+ }
+ else
+ {
+ return $"{gold}";
+ }
+ }
+
+ public string GetTowerKillBlue()
+ {
+ int tower = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.TURRETS_KILLED;
+ return $"{tower}";
+ }
+
+ public string GetTowerKillRed()
+ {
+ int tower = EndGameInfo.jsonContentEndOfMatch.teams[1].stats.TURRETS_KILLED;
+ return $"{tower}";
+ }
+
+ public string GetDragonsKill(string monsterSubType)
+ {
+ if (monsterSubType != null && monsterSubType.Equals("HEXTECH_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/hextech_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("WATER_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/ocean_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("FIRE_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/infernal_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("AIR_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/cloud_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("CHEMTECH_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/chemtech_dragon_icon.png";
+ }
+ if (monsterSubType != null && monsterSubType.Equals("MONTAIN_DRAGON"))
+ {
+ return $"./assets/endgame/dragon/mountain_dragon_icon.png";
+ }
+ //int tower = EndGameInfo.jsonContentEndOfMatch.teams[0].stats.TURRETS_KILLED;
+ return $"";
+ }
+
+ public string GetElderKillBlue()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetElderKillRed()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterSubType = events.monsterSubType;
+ if (monsterSubType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 200)
+ {
+ if (monsterSubType.Equals("ELDER_DRAGON"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetHeraldKillBlue()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("RIFTHERALD"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetHeraldKillRed()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("RIFTHERALD"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetBaronKillBlue()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("BARON_NASHOR"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetBaronKillRed()
+ {
+ int nbElderKill = 0;
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ foreach (var events in frames.events)
+ {
+ string monsterType = events.monsterType;
+ if (monsterType != null)
+ {
+ int killerTeamId = events.killerTeamId;
+ if (killerTeamId == 100)
+ {
+ if (monsterType != null && monsterType.Equals("BARON_NASHOR"))
+ {
+ nbElderKill++;
+ }
+ }
+ }
+ }
+ }
+ return $"{nbElderKill}";
+ }
+
+ public string GetWinLossBlue()
+ {
+ foreach (var participants in jsonContentMatch.info.participants)
+ {
+ int teamId = participants.teamId;
+ if (teamId == 100)
+ {
+ bool win = participants.win;
+ if (win)
+ {
+ return $"VICTOIRE";
+ }
+ }
+ }
+ return $"DÉFAITE";
+ }
+
+ public string GetWinLossRed()
+ {
+ foreach (var participants in jsonContentMatch.info.participants)
+ {
+ int teamId = participants.teamId;
+ if (teamId == 200)
+ {
+ bool win = participants.win;
+ if (win)
+ {
+ return $"VICTOIRE";
+ }
+ }
+ }
+ return $"DÉFAITE";
+ }
+
+ public static void ResetColor()
+ {
+ Config.LoadFormatingDataConfigEndGameView3();
+ EndGamePage.textValueOverlayView3.TopBarBlueTeamName = "";
+ EndGamePage.textValueOverlayView3.TopBarRedTeamName = "";
+ EndGamePage.textValueOverlayView3.TopBarBlueTeamScore = "";
+ EndGamePage.textValueOverlayView3.TopBarRedTeamScore = "";
+ EndGamePage.textValueOverlayView3.TopBarTimerText = "";
+ EndGamePage.textValueOverlayView3.ChampionInfoText = "";
+ EndGamePage.textValueOverlayView3.GoldDiffText = "";
+ EndGamePage.textValueOverlayView3.BackgroundColor = true;
+ EndGamePage.textValueOverlayView3.TopBarGradiant = false;
+ EndGamePage.textValueOverlayView3.ChampionInfoGradiant = false;
+ EndGamePage.textValueOverlayView3.BansGradiant = false;
+ EndGamePage.textValueOverlayView3.GlobalStatsGradiant = false;
+ EndGamePage.textValueOverlayView3.GoldDiffGradiant = false;
+ EndGamePage.textValueOverlayView3.TopBarBackground = false;
+ EndGamePage.textValueOverlayView3.ChampionInfoBackground = false;
+ EndGamePage.textValueOverlayView3.BansBackground = false;
+ EndGamePage.textValueOverlayView3.GlobalStatsBackground = false;
+ EndGamePage.textValueOverlayView3.GoldDiffBackground = false;
+ EndGamePage.textValueOverlayView3.BackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView3.BackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView3.BackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView3.TopBarBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView3.TopBarBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView3.TopBarBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView3.ChampionInfoBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView3.ChampionInfoBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView3.ChampionInfoBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView3.BansBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView3.BansBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView3.BansBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView3.GlobalStatsBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView3.GlobalStatsBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView3.GlobalStatsBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView3.GoldDiffBackgroundColorDeg = 90;
+ EndGamePage.textValueOverlayView3.GoldDiffBackgroundColorPercent1 = 0;
+ EndGamePage.textValueOverlayView3.GoldDiffBackgroundColorPercent2 = 100;
+ EndGamePage.textValueOverlayView3.TopBarBorderColor = 5;
+ EndGamePage.textValueOverlayView3.ChampionInfoBorderColor = 5;
+ EndGamePage.textValueOverlayView3.BansBorderColor = 5;
+ EndGamePage.textValueOverlayView3.GlobalStatsBorderColor = 5;
+ EndGamePage.textValueOverlayView3.GoldDiffBorderColor = 5;
+
+ }
+
+ public static void CreateTabGold()
+ {
+ goldDiff = new();
+ foreach (var frames in EndGameInfo.jsonContentTimeline.info.frames)
+ {
+ int totalGoldBlue = 0;
+ int totalGoldRed = 0;
+ int i = 0;
+ foreach (var participantFrames in frames.participantFrames)
+ {
+ i++;
+ if (i < 6)
+ {
+ foreach (var intVar in participantFrames)
+ {
+ totalGoldBlue += Convert.ToInt32(intVar.totalGold);
+ }
+ }
+ else
+ {
+ foreach (var intVar in participantFrames)
+ {
+ totalGoldRed += Convert.ToInt32(intVar.totalGold);
+ }
+ }
+ }
+ int diffGold = totalGoldBlue - totalGoldRed;
+ goldDiff.Add(diffGold);
+ }
+ }
+ public static int MaxGold()
+ {
+ int max = goldDiff.Max();
+ int min = goldDiff.Min();
+ if (max > Math.Abs(min))
+ {
+ return max;
+ }
+ else
+ {
+ return Math.Abs(min);
+ }
+ }
+
+
+ public static string ConvertToString(int x)
+ {
+ return $"{x}px";
+ }
+
+ public static string ConvertToString(double x)
+ {
+ return $"{x}px";
+ }
+
+ public static string ConvertToHyp(double x, double y, double prex, double prey)
+ {
+ double newY = y - prey;
+ double newX = x - prex;
+ double sqrt = Math.Sqrt(newX * newX + newY * newY);
+ string machin = sqrt.ToString();
+ return machin.Replace(",", ".");
+ }
+
+ public static string ConvertToAngle(double x, double y, double prex, double prey)
+ {
+ double newY = y - prey;
+ double newX = x - prex;
+ double sqrt = Math.Sqrt(newX * newX + newY * newY);
+ double sin = newY / sqrt;
+ double test = Math.Asin(sin) * (180 / Math.PI);
+ string machin = test.ToString();
+ return machin.Replace(",", ".");
+ }
+ }
+}
diff --git a/OSL-Server/Pages/EndGame/EndGameView3Page.razor.css b/OSL-Server/Pages/EndGame/EndGameView3Page.razor.css
new file mode 100644
index 0000000..0d4a27d
--- /dev/null
+++ b/OSL-Server/Pages/EndGame/EndGameView3Page.razor.css
@@ -0,0 +1,688 @@
+/*##########################################################*/
+/*######################## General #########################*/
+/*##########################################################*/
+
+@font-face {
+ font-family: MyFont;
+ src: url(../css/font/BeaufortForLoL-OTF/BeaufortforLOL-Bold.otf);
+}
+
+html, body {
+ background-color: black;
+ color: white;
+}
+
+.title {
+ font-family: MyFont;
+ font-weight: bold;
+ text-decoration: underline;
+}
+
+.endGameView3 {
+ width: 1920px;
+ height: 1080px;
+ position: absolute;
+ /*background: url(./assets/endgame/image3.png);*/
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+}
+
+.content {
+ /*position: absolute;*/
+ width: 1920px;
+ height: 1080px;
+ position: absolute;
+}
+
+
+/*##########################################################*/
+/*######################## top-bar #########################*/
+/*##########################################################*/
+
+.top-bar {
+ /*visibility: hidden;*/
+ top: 40px;
+ left: 90px;
+ position: absolute;
+ height: 215px;
+ width: 810px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ /*display: flex;*/
+ justify-content: center;
+ align-items: center;
+}
+
+.top-bar-gradiant {
+ height: 215px;
+ width: 810px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.top-bar-border {
+ height: 215px;
+ width: 810px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.top-bar-team {
+ display: flex;
+ font-family: MyFont;
+ font-size: 42px;
+ justify-content: center;
+ align-items: center;
+}
+
+.top-bar-blue-team {
+ position: absolute;
+ left: 20px;
+ top: 20px;
+}
+
+.top-bar-blue-team-name {
+ padding-left: 20px;
+}
+
+.top-bar-team-score {
+ position: relative;
+ display: flex;
+ top: 50px;
+}
+
+.top-bar-separation-team-score {
+ margin-left: 10px;
+ margin-right: 10px;
+}
+
+.top-bar-red-team {
+ position: absolute;
+ right: 20px;
+ top: 20px;
+ text-align: right;
+}
+
+.top-bar-red-team-name {
+ padding-right: 20px;
+}
+
+.top-bar-timer {
+ top: 80px;
+ display: flex;
+ font-family: MyFont;
+ font-size: 32px;
+ justify-content: center;
+ align-items: center;
+ position: relative;
+}
+
+.timer-text {
+ padding-right: 10px;
+}
+/*##########################################################*/
+/*##################### champion-info ######################*/
+/*##########################################################*/
+.champion-info {
+ /*visibility: hidden;*/
+ top: 480px;
+ left: 950px;
+ position: absolute;
+ height: 515px;
+ width: 885px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.champion-info-gradiant {
+ height: 515px;
+ width: 885px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.champion-info-border {
+ height: 515px;
+ width: 885px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+
+.champion-info-stats {
+ text-align: center;
+ display: flex;
+ justify-content: center;
+}
+
+.champion-info-stats-text {
+ /*left: 0px;*/
+ top: 0px;
+ padding: 20px;
+ font-family: MyFont;
+ font-size: 32px;
+ position: absolute;
+ width: 600px;
+ /*color: #c99d53;*/
+}
+
+.champion-info-stats-blue {
+ top: 70px;
+ left: 5px;
+ position: absolute;
+}
+
+.champion-info-stats-blue-group {
+ display: flex;
+}
+
+.champion-info-stats-blue-group-info {
+ left: 80px;
+ position: absolute;
+}
+
+.champion-info-stats-blue-group-text {
+ top: -5px;
+ font-family: MyFont;
+ font-size: 30px;
+ left: 10px;
+ position: absolute;
+}
+
+.champion-info-stats-blue-group-bar {
+ height: 35px;
+ width: 200px;
+ top: 35px;
+ left: 0.2px;
+ /*background-color: #0b849e;*/
+ position: absolute;
+}
+
+.champion-info-stats-red-group {
+ display: flex;
+}
+
+.champion-info-stats-red-group-info {
+ right: 80px;
+ position: absolute;
+}
+
+.champion-info-stats-red-group-text {
+ top: -5px;
+ font-family: MyFont;
+ font-size: 30px;
+ right: 10px;
+ position: absolute;
+}
+
+.champion-info-stats-red-group-bar {
+ height: 35px;
+ width: 200px;
+ top: 35px;
+ right: 0.2px;
+ /*background-color: #be1e37;*/
+ position: absolute;
+}
+
+.champion-info-stats-red {
+ top: 70px;
+ right: 5px;
+ position: absolute;
+}
+
+.pick-wrapper {
+ padding-bottom: 10px;
+}
+
+.pick-picture {
+ height: 80px;
+}
+
+/*##########################################################*/
+/*########################## Bans ##########################*/
+/*##########################################################*/
+
+.bans {
+ /*visibility: hidden;*/
+ top: 890px;
+ /*top: 645px;*/
+ left: 90px;
+ height: 110px;
+ width: 810px;
+ position: absolute;
+ display: flex;
+ justify-content: center;
+ box-sizing: border-box;
+ align-items: center;
+ margin-left: 0;
+ margin-right: 0;
+ /*border-bottom: 2px solid #ffffff;*/
+ /*color: #c99d53;*/
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+}
+
+.bans-gradiant {
+ height: 110px;
+ width: 810px;
+ position: absolute;
+ /*border-bottom: 2px solid #ffffff;*/
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.bans-border {
+ height: 110px;
+ width: 810px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.bans-info {
+ position: absolute;
+ display: flex;
+ align-items: center;
+ /*border-top: 2px solid #ffffff;*/
+ /*border-bottom: 2px solid #ffffff;*/
+}
+
+.bans-info-blue {
+ display: flex;
+ box-sizing: border-box;
+}
+
+ .bans-info-blue .bans-wrapper {
+ padding-left: 10px;
+ }
+
+.bans-info-red {
+ display: flex;
+ box-sizing: border-box;
+}
+
+ .bans-info-red .bans-wrapper {
+ padding-right: 10px;
+ }
+
+.bans-picture {
+ height: 61px;
+}
+
+.bans-info-text {
+ padding-left: 7.4px;
+ padding-right: 7.4px;
+ font-family: MyFont;
+ font-size: 30px;
+}
+
+
+/*##########################################################*/
+/*###################### global-stats ######################*/
+/*##########################################################*/
+
+.global-stats {
+ /*visibility: hidden;*/
+ top: 290px;
+ left: 90px;
+ position: absolute;
+ height: 600px;
+ width: 810px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.global-stats-gradiant {
+ height: 600px;
+ width: 810px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.global-stats-border {
+ height: 600px;
+ width: 810px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.global-stats-center {
+ position: absolute;
+ text-align: center;
+ height: 600px;
+}
+
+.global-stats-center-info {
+ font-family: MyFont;
+ font-size: 30px;
+ padding: 20px;
+ max-height: 87px;
+ /*color: #c99d53;*/
+ /*border-top: 2px solid #ffffff;*/
+}
+
+ .global-stats-center-info:nth-child(7) {
+ /*border-bottom: 2px solid #ffffff;*/
+ }
+
+.global-stats-blue {
+ font-family: MyFont;
+ font-size: 40px;
+ height: 600px;
+ width: 300px;
+ left: 0px;
+ position: absolute;
+ /*text-align: center;*/
+ justify-content: center;
+ align-items: center;
+}
+
+.dragon-wrapper-info {
+ /*width: 300px;*/
+ height: 60px;
+}
+
+.global-stats-blue .dragon-wrapper {
+ display: inline;
+ padding-right: 12.5px;
+}
+
+.dragon-picture {
+ height: 50px;
+}
+
+.global-stats-blue-info {
+ padding: 12.5px;
+ max-height: 87px;
+ /*border-top: 2px solid #ffffff;*/
+}
+
+ .global-stats-blue-info:nth-child(7) {
+ /*border-bottom: 2px solid #ffffff;*/
+ }
+
+.global-stats-red {
+ font-family: MyFont;
+ font-size: 40px;
+ height: 600px;
+ width: 300px;
+ right: 0px;
+ position: absolute;
+ text-align: right;
+ /*justify-content: center;*/
+ /*align-items: center;*/
+}
+
+ .global-stats-red .dragon-wrapper {
+ width: 84px;
+ display: inline;
+ padding-left: 12.5px;
+ }
+
+.global-stats-red-info {
+ padding: 12.5px;
+ /*border-top: 2px solid #ffffff;*/
+ max-height: 87px;
+}
+
+ .global-stats-red-info:nth-child(7) {
+ /*border-bottom: 2px solid #ffffff;*/
+ }
+
+
+/*##########################################################*/
+/*####################### gold-diff ########################*/
+/*##########################################################*/
+
+.gold-diff {
+ /*visibility: hidden;*/
+ top: 50px;
+ left: 950px;
+ position: absolute;
+ height: 400px;
+ width: 885px;
+ /*background-image: linear-gradient(90deg, #0b849e 0%, #be1e37 100%);*/
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.gold-diff-gradiant {
+ height: 400px;
+ width: 885px;
+ position: absolute;
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.72) 100% );*/
+}
+
+.gold-diff-border {
+ height: 400px;
+ width: 885px;
+ position: absolute;
+ /*border: 5px solid #c99d53;*/
+}
+
+.gold-diff-text {
+ /*left: 0px;*/
+ top: 0px;
+ padding: 20px;
+ font-family: MyFont;
+ font-size: 32px;
+ position: absolute;
+ /*width: 1300px;*/
+ color: #c99d53;
+}
+
+.gold-graph {
+ position: absolute;
+ top: 180px;
+ left: 15px;
+}
+
+.gold-graph-content {
+ position: absolute;
+ left: 48px;
+ top: 27px;
+}
+
+.css-chart {
+ /*border-bottom: 1px solid;*/
+ /*border-left: 1px solid;*/
+ /*display: inline-block;*/
+ /*height: var(--widget-size);*/
+ /*margin: 5em 15em 1em 5em;*/
+ /*padding: 0;*/
+ position: absolute;
+ /*left: 25px;*/
+ /*top: 25px;*/
+ /*width: var(--widget-size);*/
+}
+
+.line-chart {
+ position: absolute;
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+
+.data-point {
+ background-color: white;
+ /*border: 2px solid lightblue;*/
+ border-radius: 50%;
+ bottom: calc(var(--y) - 7px);
+ height: 15px;
+ left: calc(var(--x) - 7px);
+ position: absolute;
+ width: 15px;
+ z-index: 1;
+}
+
+.line-segment {
+ /*background-color: #c99d53;*/
+ bottom: var(--y);
+ height: 2px;
+ left: var(--x);
+ position: absolute;
+ transform: rotate(calc(var(--angle) * 1deg));
+ transform-origin: left bottom;
+ width: calc(var(--hypotenuse) * 1px);
+}
+
+.gold-graph-orizon-bar {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: 25px;
+ left: 50px;
+ position: absolute;
+ width: 800px;
+}
+
+.gold-graph-vertical-bar {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 47px;
+ height: 250px;
+}
+
+.gold-graph-vertical-bar-timer {
+ position: absolute;
+ top: 170px;
+ font-family: MyFont;
+ font-size: 18px;
+}
+
+.gold-graph-vertical-bar-left {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 47px;
+ height: 250px;
+}
+
+.gold-graph-vertical-bar-right {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 854px;
+ height: 250px;
+}
+
+.gold-graph-vertical-bar-mid {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 645px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-mid-left {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 345px;
+ height: 200px;
+}
+
+.gold-graph-vertical-bar-mid-right {
+ /*border: 1px dashed #ffffff;*/
+ position: absolute;
+ top: -100px;
+ left: 945px;
+ height: 200px;
+}
+
+.gold-graph-orizon-bar-maxmoy {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: -38px;
+ left: 50px;
+ position: absolute;
+ width: 800px;
+}
+
+.gold-graph-orizon-bar-max {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: -100px;
+ left: 50px;
+ position: absolute;
+ width: 800px;
+}
+
+.gold-graph-orizon-bar-min {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: 150px;
+ left: 50px;
+ position: absolute;
+ width: 800px;
+}
+
+.gold-graph-orizon-bar-minmoy {
+ /*height: 2px;*/
+ border: 1px dashed #ffffff;
+ /*background-color: #000000;*/
+ top: 88px;
+ left: 50px;
+ position: absolute;
+ width: 800px;
+}
+
+.gold-graph-zero {
+ font-family: MyFont;
+ font-size: 22px;
+ position: absolute;
+ left: 15px;
+ top: 10px;
+}
+
+.gold-graph-max {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: -120px;
+}
+
+.gold-graph-maxmoy {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: -50px;
+}
+
+.gold-graph-min {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: 135px;
+}
+
+.gold-graph-minmoy {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: -9px;
+ top: 75px;
+}
+
+.gold-graph-time-1 {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: 25px;
+ top: 170px;
+}
+
+.gold-graph-time-5 {
+ font-family: MyFont;
+ font-size: 18px;
+ position: absolute;
+ left: 820px;
+ top: 170px;
+}
diff --git a/OSL-Server/Pages/EndGamePage.razor b/OSL-Server/Pages/EndGamePage.razor
deleted file mode 100644
index 200f9b6..0000000
--- a/OSL-Server/Pages/EndGamePage.razor
+++ /dev/null
@@ -1,13 +0,0 @@
-@page "/endgame"
-
-End Game
-
-@code {
-
-}
diff --git a/OSL-Server/Pages/EndGamePage.razor.cs b/OSL-Server/Pages/EndGamePage.razor.cs
deleted file mode 100644
index 5cd61af..0000000
--- a/OSL-Server/Pages/EndGamePage.razor.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace OSL_Server.Pages
-{
- public partial class EndGamePage
- {
- private static OSLLogger _logger = new OSLLogger("CDragonPage");
- }
-}
diff --git a/OSL-Server/Pages/InGame/InGamePage.razor b/OSL-Server/Pages/InGame/InGamePage.razor
new file mode 100644
index 0000000..d1e9ff5
--- /dev/null
+++ b/OSL-Server/Pages/InGame/InGamePage.razor
@@ -0,0 +1,305 @@
+@page "/ingame"
+@using MudBlazor
+
+In Game
+
+
+
+
In Game :
+
+
With riot overlay
+
+ Use of the riot overlay with added information:
+ - Team, dragon and baron frame
+ - Name of the teams and their number of victory
+ - Frame for video/logo/...
+
+ @*View1*@
+
+
In Game Overlay 1 Reset color and text
+
Link Overlay 1
+
+ Clic to @displayContentView1Button.text customization
+
+
+
+
+
+ Blue Side Team Name ("@InGameView1Page.formatingData.BlueTeamText") :
+
+
+ Submit
+
+
+
+
+ Blue Side Subtext ("@InGameView1Page.formatingData.BlueTeamScoreText") :
+
+
+ Submit
+
+
+
+
+ Red Side Team Name ("@InGameView1Page.formatingData.RedTeamText") :
+
+
+ Submit
+
+
+
+
+ Red Side Subtext ("@InGameView1Page.formatingData.RedTeamScoreText") :
+
+
+ Submit
+
+
+ Switch side
+
+
+
+ Display Dragon Timer :
+
+
+
+ Display Herald Baron Timer :
+
+
+
+ Display Blue Team :
+
+
+
+ Display Blue Team Score :
+
+
+
+ Display Blue Team Text :
+
+
+
+ Display Red Team :
+
+
+
+ Display Red Team Score :
+
+
+
+ Display Red Team Text :
+
+
+
+ Display Blue Player Frame :
+
+
+
+ Display Red Player Frame :
+
+
+
+ Display Left Info :
+
+
+
+ Display Right Info :
+
+
+
+
+ Color Blue Team Text @InGameView1Page.formatingData.ColorBlueTeamText
+ Color Blue Team Score Text @InGameView1Page.formatingData.ColorBlueTeamScoreText
+ Color Red Team Text @InGameView1Page.formatingData.ColorRedTeamText
+ Color Red Team Score Text @InGameView1Page.formatingData.ColorRedTeamScoreText
+
+
+
+
+
+ @*View2*@
+
+
In Game Overlay 2 Reset color and text
+
Link Overlay 2
+
+ Clic to @displayContentView2Button.text customization
+
+
+
+
+
+ Blue Side Team Name ("@InGameView2Page.formatingData.BlueTeamText") :
+
+
+ Submit
+
+
+
+
+ Blue Side Subtext ("@InGameView2Page.formatingData.BlueTeamScoreText") :
+
+
+ Submit
+
+
+
+
+ Red Side Team Name ("@InGameView2Page.formatingData.RedTeamText") :
+
+
+ Submit
+
+
+
+
+ Red Side Subtext ("@InGameView2Page.formatingData.RedTeamScoreText") :
+
+
+ Submit
+
+
+ Switch side
+
+
+
+ Display Dragon Timer :
+
+
+
+ Display Herald Baron Timer :
+
+
+
+ Display Blue Team :
+
+
+
+ Display Blue Team Score :
+
+
+
+ Display Blue Team Text :
+
+
+
+ Display Red Team :
+
+
+
+ Display Red Team Score :
+
+
+
+ Display Red Team Text :
+
+
+
+ Display Blue Player Frame :
+
+
+
+ Display Red Player Frame :
+
+
+
+ Display Left Info :
+
+
+
+
+ Color Blue Team Text @InGameView2Page.formatingData.ColorBlueTeamText
+ Color Blue Team Score Text @InGameView2Page.formatingData.ColorBlueTeamScoreText
+ Color Red Team Text @InGameView2Page.formatingData.ColorRedTeamText
+ Color Red Team Score Text @InGameView2Page.formatingData.ColorRedTeamScoreText
+
+
+
+
+
+ @*View3*@
+
+
In Game Overlay 3 Reset color and text
+
Link Overlay 3
+
+ Clic to @displayContentView3Button.text customization
+
+
+
+
+
+ Replay Info Text ("@InGameView3Page.formatingData.ReplayInfoText") :
+
+
+ Submit
+
+ Color Replay Info Text @InGameView3Page.formatingData.ColorReplayInfoText
+
+
+ Display Replay Info Frame :
+
+
+
+ Display Blue Player Frame :
+
+
+
+ Display Red Player Frame :
+
+
+
+
+
+
+
+
Without riot overlay
+
+ Disable riot overlay to add more information
+ - Team, dragon and baron frame
+ - Name of the teams and their number of victory
+ - Frame for video/logo/...
+ - Custom display dragon, herald, baron, herald, level up, itemps buy, kill, tower, timer, gold
+
+ In progress
+
+
+
+
+
+
+
+
+
+
+@code {
+ public static TextValueOverlayView1 textValueOverlayView1 = new();
+ public static TextValueOverlayView2 textValueOverlayView2 = new();
+ public static TextValueOverlayView3 textValueOverlayView3 = new();
+
+ public bool DisableToolbar { get; set; } = true;
+ public bool DisableAlpha { get; set; }
+ public bool DisableColorField { get; set; }
+ public bool DisablePreview { get; set; }
+ public bool DisableSliders { get; set; }
+ public bool DisableInputs { get; set; }
+ public bool DisableModeSwitch { get; set; }
+
+ public ColorPickerMode ColorPickerMode { get; set; }
+}
diff --git a/OSL-Server/Pages/InGamePage.razor.cs b/OSL-Server/Pages/InGame/InGamePage.razor.cs
similarity index 82%
rename from OSL-Server/Pages/InGamePage.razor.cs
rename to OSL-Server/Pages/InGame/InGamePage.razor.cs
index 6cee258..da41d60 100644
--- a/OSL-Server/Pages/InGamePage.razor.cs
+++ b/OSL-Server/Pages/InGame/InGamePage.razor.cs
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
-namespace OSL_Server.Pages
+namespace OSL_Server.Pages.InGame
{
public partial class InGamePage
{
@@ -263,5 +263,78 @@ public static void InputCheckboxSubmit()
}
}
+
+ private struct OverlayViewEnableOrDisable
+ {
+ public string text { get; set; }
+ public string color { get; set; }
+
+ public OverlayViewEnableOrDisable()
+ {
+ text = "";
+ color = "";
+ }
+
+ public OverlayViewEnableOrDisable(string text, string color)
+ {
+ this.text = text;
+ this.color = color;
+ }
+
+ }
+
+ private OverlayViewEnableOrDisable displayContentView1Button = new("display", "#008000");
+ private OverlayViewEnableOrDisable displayContentView2Button = new("display", "#008000");
+ private OverlayViewEnableOrDisable displayContentView3Button = new("display", "#008000");
+
+ private string displayContentView1 = "none";
+ private void HideOrDisplayContentView1()
+ {
+ if (displayContentView1.Equals("none"))
+ {
+ displayContentView1Button.text = "hide";
+ displayContentView1Button.color = "#be1e37";
+ displayContentView1 = "content";
+ }
+ else
+ {
+ displayContentView1Button.text = "display";
+ displayContentView1Button.color = "#008000";
+ displayContentView1 = "none";
+ }
+ }
+
+ private string displayContentView2 = "none";
+ private void HideOrDisplayContentView2()
+ {
+ if (displayContentView2.Equals("none"))
+ {
+ displayContentView2Button.text = "hide";
+ displayContentView2Button.color = "#be1e37";
+ displayContentView2 = "content";
+ }
+ else
+ {
+ displayContentView2Button.text = "display";
+ displayContentView2Button.color = "#008000";
+ displayContentView2 = "none";
+ }
+ }
+ private string displayContentView3 = "none";
+ private void HideOrDisplayContentView3()
+ {
+ if (displayContentView3.Equals("none"))
+ {
+ displayContentView3Button.text = "hide";
+ displayContentView3Button.color = "#be1e37";
+ displayContentView3 = "content";
+ }
+ else
+ {
+ displayContentView3Button.text = "display";
+ displayContentView3Button.color = "#008000";
+ displayContentView3 = "none";
+ }
+ }
}
}
diff --git a/OSL-Server/Pages/InGamePage.razor.css b/OSL-Server/Pages/InGame/InGamePage.razor.css
similarity index 97%
rename from OSL-Server/Pages/InGamePage.razor.css
rename to OSL-Server/Pages/InGame/InGamePage.razor.css
index db88710..8c4edb5 100644
--- a/OSL-Server/Pages/InGamePage.razor.css
+++ b/OSL-Server/Pages/InGame/InGamePage.razor.css
@@ -14,6 +14,10 @@ html, body {
color: white;
}
+.parent {
+ overflow: hidden
+}
+
.title {
font-family: MyFont;
font-weight: bold;
diff --git a/OSL-Server/Pages/InGameView1Page.razor b/OSL-Server/Pages/InGame/InGameView1Page.razor
similarity index 100%
rename from OSL-Server/Pages/InGameView1Page.razor
rename to OSL-Server/Pages/InGame/InGameView1Page.razor
diff --git a/OSL-Server/Pages/InGameView1Page.razor.cs b/OSL-Server/Pages/InGame/InGameView1Page.razor.cs
similarity index 99%
rename from OSL-Server/Pages/InGameView1Page.razor.cs
rename to OSL-Server/Pages/InGame/InGameView1Page.razor.cs
index 0927bed..b3ab886 100644
--- a/OSL-Server/Pages/InGameView1Page.razor.cs
+++ b/OSL-Server/Pages/InGame/InGameView1Page.razor.cs
@@ -1,6 +1,6 @@
using OSL_Server.Configuration;
-namespace OSL_Server.Pages
+namespace OSL_Server.Pages.InGame
{
public partial class InGameView1Page
{
diff --git a/OSL-Server/Pages/InGameView1Page.razor.css b/OSL-Server/Pages/InGame/InGameView1Page.razor.css
similarity index 100%
rename from OSL-Server/Pages/InGameView1Page.razor.css
rename to OSL-Server/Pages/InGame/InGameView1Page.razor.css
diff --git a/OSL-Server/Pages/InGameView2Page.razor b/OSL-Server/Pages/InGame/InGameView2Page.razor
similarity index 100%
rename from OSL-Server/Pages/InGameView2Page.razor
rename to OSL-Server/Pages/InGame/InGameView2Page.razor
diff --git a/OSL-Server/Pages/InGameView2Page.razor.cs b/OSL-Server/Pages/InGame/InGameView2Page.razor.cs
similarity index 98%
rename from OSL-Server/Pages/InGameView2Page.razor.cs
rename to OSL-Server/Pages/InGame/InGameView2Page.razor.cs
index ffc607a..97343af 100644
--- a/OSL-Server/Pages/InGameView2Page.razor.cs
+++ b/OSL-Server/Pages/InGame/InGameView2Page.razor.cs
@@ -1,6 +1,6 @@
using OSL_Server.Configuration;
-namespace OSL_Server.Pages
+namespace OSL_Server.Pages.InGame
{
public partial class InGameView2Page
{
diff --git a/OSL-Server/Pages/InGameView2Page.razor.css b/OSL-Server/Pages/InGame/InGameView2Page.razor.css
similarity index 100%
rename from OSL-Server/Pages/InGameView2Page.razor.css
rename to OSL-Server/Pages/InGame/InGameView2Page.razor.css
diff --git a/OSL-Server/Pages/InGameView3Page.razor b/OSL-Server/Pages/InGame/InGameView3Page.razor
similarity index 100%
rename from OSL-Server/Pages/InGameView3Page.razor
rename to OSL-Server/Pages/InGame/InGameView3Page.razor
diff --git a/OSL-Server/Pages/InGameView3Page.razor.cs b/OSL-Server/Pages/InGame/InGameView3Page.razor.cs
similarity index 97%
rename from OSL-Server/Pages/InGameView3Page.razor.cs
rename to OSL-Server/Pages/InGame/InGameView3Page.razor.cs
index 7d3419c..1fd234f 100644
--- a/OSL-Server/Pages/InGameView3Page.razor.cs
+++ b/OSL-Server/Pages/InGame/InGameView3Page.razor.cs
@@ -1,6 +1,6 @@
using OSL_Server.Configuration;
-namespace OSL_Server.Pages
+namespace OSL_Server.Pages.InGame
{
public partial class InGameView3Page
{
diff --git a/OSL-Server/Pages/InGameView3Page.razor.css b/OSL-Server/Pages/InGame/InGameView3Page.razor.css
similarity index 100%
rename from OSL-Server/Pages/InGameView3Page.razor.css
rename to OSL-Server/Pages/InGame/InGameView3Page.razor.css
diff --git a/OSL-Server/Pages/InGamePage.razor b/OSL-Server/Pages/InGamePage.razor
deleted file mode 100644
index 7cd91ac..0000000
--- a/OSL-Server/Pages/InGamePage.razor
+++ /dev/null
@@ -1,305 +0,0 @@
-@page "/ingame"
-@using MudBlazor
-
-In Game
-
-
-
-
In Game :
-
-
With riot overlay
-
- Use of the riot overlay with added information:
- - Team, dragon and baron frame
- - Name of the teams and their number of victory
- - Frame for video/logo/...
-
- @*View1*@
-
-
In Game Overlay 1 Reset color and text
-
Link Overlay 1
-
-
-
-
- Blue Side Team Name ("@InGameView1Page.formatingData.BlueTeamText") :
-
-
- Submit
-
-
-
-
- Blue Side Subtext ("@InGameView1Page.formatingData.BlueTeamScoreText") :
-
-
- Submit
-
-
-
-
- Red Side Team Name ("@InGameView1Page.formatingData.RedTeamText") :
-
-
- Submit
-
-
-
-
- Red Side Subtext ("@InGameView1Page.formatingData.RedTeamScoreText") :
-
-
- Submit
-
-
- Switch side
-
-
-
- Display Dragon Timer :
-
-
-
- Display Herald Baron Timer :
-
-
-
- Display Blue Team :
-
-
-
- Display Blue Team Score :
-
-
-
- Display Blue Team Text :
-
-
-
- Display Red Team :
-
-
-
- Display Red Team Score :
-
-
-
- Display Red Team Text :
-
-
-
- Display Blue Player Frame :
-
-
-
- Display Red Player Frame :
-
-
-
- Display Left Info :
-
-
-
- Display Right Info :
-
-
-
-
-
Color Blue Team Text @InGameView1Page.formatingData.ColorBlueTeamText
-
Color Blue Team Score Text @InGameView1Page.formatingData.ColorBlueTeamScoreText
-
Color Red Team Text @InGameView1Page.formatingData.ColorRedTeamText
-
Color Red Team Score Text @InGameView1Page.formatingData.ColorRedTeamScoreText
-
-
-
-
-
- @*View2*@
-
-
In Game Overlay 2 Reset color and text
-
Link Overlay 2
-
-
-
-
- Blue Side Team Name ("@InGameView2Page.formatingData.BlueTeamText") :
-
-
- Submit
-
-
-
-
- Blue Side Subtext ("@InGameView2Page.formatingData.BlueTeamScoreText") :
-
-
- Submit
-
-
-
-
- Red Side Team Name ("@InGameView2Page.formatingData.RedTeamText") :
-
-
- Submit
-
-
-
-
- Red Side Subtext ("@InGameView2Page.formatingData.RedTeamScoreText") :
-
-
- Submit
-
-
- Switch side
-
-
-
- Display Dragon Timer :
-
-
-
- Display Herald Baron Timer :
-
-
-
- Display Blue Team :
-
-
-
- Display Blue Team Score :
-
-
-
- Display Blue Team Text :
-
-
-
- Display Red Team :
-
-
-
- Display Red Team Score :
-
-
-
- Display Red Team Text :
-
-
-
- Display Blue Player Frame :
-
-
-
- Display Red Player Frame :
-
-
-
- Display Left Info :
-
-
-
-
-
Color Blue Team Text @InGameView2Page.formatingData.ColorBlueTeamText
-
Color Blue Team Score Text @InGameView2Page.formatingData.ColorBlueTeamScoreText
-
Color Red Team Text @InGameView2Page.formatingData.ColorRedTeamText
-
Color Red Team Score Text @InGameView2Page.formatingData.ColorRedTeamScoreText
-
-
-
-
-
- @*View3*@
-
-
In Game Overlay 3 Reset color and text
-
Link Overlay 3
-
-
-
- Replay Info Text ("@InGameView3Page.formatingData.ReplayInfoText") :
-
-
- Submit
-
-
Color Replay Info Text @InGameView3Page.formatingData.ColorReplayInfoText
-
-
- Display Replay Info Frame :
-
-
-
- Display Blue Player Frame :
-
-
-
- Display Red Player Frame :
-
-
-
-
-
-
-
-
Without riot overlay
-
- Disable riot overlay to add more information
- - Team, dragon and baron frame
- - Name of the teams and their number of victory
- - Frame for video/logo/...
- - Custom display dragon, herald, baron, herald, level up, itemps buy, kill, tower, timer, gold
-
- In progress
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-@code {
- public static TextValueOverlayView1 textValueOverlayView1 = new();
- public static TextValueOverlayView2 textValueOverlayView2 = new();
- public static TextValueOverlayView3 textValueOverlayView3 = new();
-
- public bool DisableToolbar { get; set; } = true;
- public bool DisableAlpha { get; set; }
- public bool DisableColorField { get; set; }
- public bool DisablePreview { get; set; }
- public bool DisableSliders { get; set; }
- public bool DisableInputs { get; set; }
- public bool DisableModeSwitch { get; set; }
-
- public ColorPickerMode ColorPickerMode { get; set; }
-}
diff --git a/OSL-Server/Pages/Index.razor b/OSL-Server/Pages/Index.razor
index a385ccf..0b86676 100644
--- a/OSL-Server/Pages/Index.razor
+++ b/OSL-Server/Pages/Index.razor
@@ -51,6 +51,22 @@
http://@Config.oslServerHostName:@Config.oslServerHttpPort/ingame/view3
+ End Game :
+ http://@Config.oslServerHostName:@Config.oslServerHttpPort/endgame/view1
+ http://@Config.oslServerHostName:@Config.oslServerHttpPort/endgame/view2
+ http://@Config.oslServerHostName:@Config.oslServerHttpPort/endgame/view3
+
+
+ Runes :
+ http://@Config.oslServerHostName:@Config.oslServerHttpPort/runes/adc
+ http://@Config.oslServerHostName:@Config.oslServerHttpPort/runes/adcsupp
+ http://@Config.oslServerHostName:@Config.oslServerHttpPort/runes/jungle
+ http://@Config.oslServerHostName:@Config.oslServerHttpPort/runes/mid
+ http://@Config.oslServerHostName:@Config.oslServerHttpPort/runes/top
+ http://@Config.oslServerHostName:@Config.oslServerHttpPort/runes/supp
+ http://@Config.oslServerHostName:@Config.oslServerHttpPort/runes/all
+
+
diff --git a/OSL-Server/Pages/Runes/RunesAdcPage.razor b/OSL-Server/Pages/Runes/RunesAdcPage.razor
new file mode 100644
index 0000000..2484143
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesAdcPage.razor
@@ -0,0 +1,117 @@
+@page "/runes/adc"
+@using OSL_Server.DataReciveClient.Processing.ChampSelect;
+@using OSL_Server.DataLoader.CDragon;
+@using Newtonsoft.Json;
+@layout EmptyLayout
+
+
+
+@code {
+ private System.Timers.Timer timer = new(5000);
+
+ protected override void OnInitialized()
+ {
+ timer.Elapsed += (sender, eventArgs) => OnTimerCallback();
+ timer.Start();
+ }
+
+ private void OnTimerCallback()
+ {
+ _ = InvokeAsync(() =>
+ {
+ StateHasChanged();
+ });
+ }
+
+ public void Dispose() => timer.Dispose();
+}
diff --git a/OSL-Server/Pages/Runes/RunesAdcPage.razor.cs b/OSL-Server/Pages/Runes/RunesAdcPage.razor.cs
new file mode 100644
index 0000000..d755c8b
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesAdcPage.razor.cs
@@ -0,0 +1,68 @@
+using Newtonsoft.Json;
+using OSL_Server.Configuration;
+using OSL_Server.DataLoader.CDragon;
+using OSL_Server.DataLoader.WebApiRiot;
+
+namespace OSL_Server.Pages.Runes
+{
+ public partial class RunesAdcPage
+ {
+ private static OSLLogger _logger = new OSLLogger("RunesAdcPage");
+
+ //Data for display color, texte, picture on web page
+ public static FormatingData formatingData = new();
+
+ public class FormatingData
+ {
+ public string DefaultPatch { get; set; }
+ public string DefaultRegion { get; set; }
+ public string BackgroudGradient { get; set; }
+ public string BackgroudGradientDeg { get; set; }
+ public string BackgroudGradientColor1 { get; set; }
+ public string BackgroudGradientPercent1 { get; set; }
+ public string BackgroudGradientColor2 { get; set; }
+ public string BackgroudGradientPercent2 { get; set; }
+ public string OverlayColorBackgroudGradient { get; set; }
+ public string BlueSideColorTextSummoner{ get; set; }
+ public string RedSideColorTextSummoner{ get; set; }
+ public string BlueSideColorBorderChampion { get; set; }
+ public string RedSideColorBorderChampion { get; set; }
+ public string BlueSideColorSeparationBar{ get; set; }
+ public string RedSideColorSeparationBar{ get; set; }
+ public string BakgroundPicture{ get; set; }
+ public string LanePicture{ get; set; }
+ }
+
+ ///
+ public static string GetPerksIconPath(int perksId)
+ {
+ int indexPatch = CDragon.dataCDragon.Patch.FindIndex(obj => obj.Name == formatingData.DefaultPatch);
+ int indexRegion = CDragon.dataCDragon.Patch[indexPatch].Region.FindIndex(obj => obj.Name == formatingData.DefaultRegion);
+ int indexPerks = CDragon.dataCDragon.Patch[indexPatch].Region[indexRegion].RegionContent.Perks.FindIndex(obj => obj.Id == perksId);
+ return CDragon.dataCDragon.Patch[0].Region[0].RegionContent.Perks[indexPerks].IconPath;
+ }
+
+ ///
+ public static string GetChampionPicturePath(int champId)
+ {
+ return $"./assets/{formatingData.DefaultPatch}/{formatingData.DefaultRegion}/Champions/{champId}/default-square.png";
+ }
+
+ ///
+ public static void ResetColor()
+ {
+ Config.LoadFormatingDataConfigRunesAdcPage();
+ }
+
+ }
+}
diff --git a/OSL-Server/Pages/Runes/RunesAdcPage.razor.css b/OSL-Server/Pages/Runes/RunesAdcPage.razor.css
new file mode 100644
index 0000000..4b9e983
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesAdcPage.razor.css
@@ -0,0 +1,328 @@
+@font-face {
+ font-family: LolFont;
+ src: url(./css/font/fontLoL.ttf);
+}
+
+@font-face {
+ font-family: EurostileCondensedBold;
+ src: url("css/font/EurostileCondensedBold.otf") format("opentype");
+}
+
+html, body {
+ font-family: EurostileCondensedBold;
+ background-color: black;
+ color: white;
+}
+
+.perks-background {
+ width: 1920px;
+ height: 1080px;
+ position: absolute;
+ /*background-color: red;*/
+}
+
+ .perks-background .perks-background-img {
+ /*background-color: red;*/
+ position: absolute;
+ left: 592px;
+ top: 845px;
+ height: 235px;
+ /*display: none;*/
+ }
+
+ .perks-background .perks-background-gradiant {
+ top: 854px;
+ left: 609px;
+ width: 717px;
+ height: 220px;
+ position: absolute;
+ /*background-image: linear-gradient(150deg, #0b849e 0%, #be1e37 100%);*/
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.83) 100% );*/
+ }
+
+ .perks-background .perks-background-color {
+ /*top: 854px;*/
+ /*left: 609px;*/
+ width: 717px;
+ height: 220px;
+ /*position: absolute;*/
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.83) 100% );*/
+ /*background-image: linear-gradient(150deg, #0b849e 0%, #be1e37 100%);*/
+ }
+
+
+.separation-bar:nth-child(6) {
+ position: absolute;
+ height: 2px;
+ width: 200px;
+ /*background-color: #c99d53;*/
+ top: 980px;
+ left: 637px;
+}
+
+.separation-bar:nth-child(10) {
+ position: absolute;
+ height: 2px;
+ width: 200px;
+ /*background-color: #c99d53;*/
+ top: 980px;
+ left: 1097px;
+}
+
+.lane-picture {
+ position: absolute;
+}
+
+ .lane-picture .lane-picture-img {
+ position: absolute;
+ top: 860px;
+ left: 940px;
+ height: 50px;
+ }
+
+
+.perks {
+ /*background: url(./assets/runes/background.png);*/
+ /* background-size: 1920px;*/
+ height: 1080px;
+ width: 1920px;
+}
+
+.summoner-name {
+ position: absolute;
+}
+
+ .summoner-name:nth-child(3) {
+ font-family: EurostileCondensedBold;
+ font-size: 40px;
+ top: 850px;
+ right: 1000px;
+ position: absolute;
+ letter-spacing: -2px;
+ /*color: #0b849e;*/
+ /*display: none*/
+ }
+
+ .summoner-name:nth-child(7) {
+ font-family: EurostileCondensedBold;
+ font-size: 40px;
+ top: 850px;
+ left: 1010px;
+ position: absolute;
+ letter-spacing: -2px;
+ /*color: #be1e37;*/
+ }
+
+.champ-picture {
+ position: absolute;
+}
+
+ .champ-picture:nth-child(4) .champ-picture-img {
+ height: 105px;
+ top: 930px;
+ left: 853px;
+ position: absolute;
+ /*border: 2px solid #c99d53;*/
+ }
+
+ .champ-picture:nth-child(8) .champ-picture-img {
+ height: 105px;
+ top: 930px;
+ left: 977px;
+ position: absolute;
+ /*border: 2px solid #c99d53;*/
+ }
+
+
+.perks-list {
+ position: absolute;
+ display: flex;
+}
+
+ .perks-list:nth-child(5) {
+ /*top: 100px;*/
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(1) {
+ top: 905px;
+ left: 775px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(1) .perks-img {
+ height: 80px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(2) {
+ top: 930px;
+ left: 737.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(2) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(3) {
+ top: 930px;
+ left: 697.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(3) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(4) {
+ top: 930px;
+ left: 657.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(4) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(5) {
+ top: 990px;
+ left: 801.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(5) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(6) {
+ top: 990px;
+ left: 761.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(6) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(7) {
+ top: 995px;
+ left: 701.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(7) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(8) {
+ top: 995px;
+ left: 671.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(8) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(9) {
+ top: 995px;
+ left: 641.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(9) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(9) {
+ /*top: 100px;*/
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(1) {
+ top: 905px;
+ left: 1085px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(1) .perks-img {
+ height: 80px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(2) {
+ top: 930px;
+ left: 1156.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(2) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(3) {
+ top: 930px;
+ left: 1196.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(3) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(4) {
+ top: 930px;
+ left: 1236.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(4) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(5) {
+ top: 990px;
+ left: 1092.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(5) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(6) {
+ top: 990px;
+ left: 1132.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(6) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(7) {
+ top: 995px;
+ left: 1202.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(7) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(8) {
+ top: 995px;
+ left: 1232.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(8) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(9) {
+ top: 995px;
+ left: 1262.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(9) .perks-img {
+ /*height: 40.5px;*/
+ }
diff --git a/OSL-Server/Pages/Runes/RunesAdcSuppPage.razor b/OSL-Server/Pages/Runes/RunesAdcSuppPage.razor
new file mode 100644
index 0000000..1df8f4d
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesAdcSuppPage.razor
@@ -0,0 +1,199 @@
+@page "/runes/adcsupp"
+@using OSL_Server.DataReciveClient.Processing.ChampSelect;
+@using OSL_Server.DataLoader.CDragon;
+@using Newtonsoft.Json;
+@layout EmptyLayout
+
+
+
+@code {
+ private System.Timers.Timer timer = new(5000);
+
+ protected override void OnInitialized()
+ {
+ timer.Elapsed += (sender, eventArgs) => OnTimerCallback();
+ timer.Start();
+ }
+
+ private void OnTimerCallback()
+ {
+ _ = InvokeAsync(() =>
+ {
+ StateHasChanged();
+ });
+ }
+
+ public void Dispose() => timer.Dispose();
+}
diff --git a/OSL-Server/Pages/Runes/RunesAdcSuppPage.razor.cs b/OSL-Server/Pages/Runes/RunesAdcSuppPage.razor.cs
new file mode 100644
index 0000000..1f22894
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesAdcSuppPage.razor.cs
@@ -0,0 +1,64 @@
+using Newtonsoft.Json;
+using OSL_Server.Configuration;
+using OSL_Server.DataLoader.CDragon;
+using OSL_Server.DataLoader.WebApiRiot;
+
+namespace OSL_Server.Pages.Runes
+{
+ public partial class RunesAdcSuppPage
+ {
+ private static OSLLogger _logger = new OSLLogger("RunesAdcPage");
+
+ //Data for display color, texte, picture on web page
+ public static FormatingData formatingData = new();
+
+ public class FormatingData
+ {
+ public string DefaultPatch { get; set; }
+ public string DefaultRegion { get; set; }
+ public string BackgroudGradient { get; set; }
+ public string OverlayColorBackgroudGradient { get; set; }
+ public string BlueSideColorTextSummoner{ get; set; }
+ public string RedSideColorTextSummoner{ get; set; }
+ public string BlueSideColorBorderChampion { get; set; }
+ public string RedSideColorBorderChampion { get; set; }
+ public string BlueSideColorSeparationBar{ get; set; }
+ public string RedSideColorSeparationBar{ get; set; }
+ public string BakgroundPicture{ get; set; }
+ public string LanePictureAdc{ get; set; }
+ public string LanePictureSupp{ get; set; }
+ }
+
+ ///
+ public static string GetPerksIconPath(int perksId)
+ {
+ int indexPatch = CDragon.dataCDragon.Patch.FindIndex(obj => obj.Name == formatingData.DefaultPatch);
+ int indexRegion = CDragon.dataCDragon.Patch[indexPatch].Region.FindIndex(obj => obj.Name == formatingData.DefaultRegion);
+ int indexPerks = CDragon.dataCDragon.Patch[indexPatch].Region[indexRegion].RegionContent.Perks.FindIndex(obj => obj.Id == perksId);
+ return CDragon.dataCDragon.Patch[0].Region[0].RegionContent.Perks[indexPerks].IconPath;
+ }
+
+ ///
+ public static string GetChampionPicturePath(int champId)
+ {
+ return $"./assets/{formatingData.DefaultPatch}/{formatingData.DefaultRegion}/Champions/{champId}/default-square.png";
+ }
+
+ ///
+ public static void ResetColor()
+ {
+ Config.LoadFormatingDataConfigRunesAdcSuppPage();
+ }
+
+ }
+}
diff --git a/OSL-Server/Pages/Runes/RunesAdcSuppPage.razor.css b/OSL-Server/Pages/Runes/RunesAdcSuppPage.razor.css
new file mode 100644
index 0000000..26d82c6
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesAdcSuppPage.razor.css
@@ -0,0 +1,493 @@
+@font-face {
+ font-family: LolFont;
+ src: url(./css/font/fontLoL.ttf);
+}
+
+@font-face {
+ font-family: EurostileCondensedBold;
+ src: url("css/font/EurostileCondensedBold.otf") format("opentype");
+}
+
+html, body {
+ font-family: EurostileCondensedBold;
+ background-color: black;
+ color: white;
+}
+
+.perks-background {
+ width: 1920px;
+ height: 1080px;
+ position: absolute;
+ /*background-color: red;*/
+}
+
+ .perks-background .perks-background-img {
+ /*background-color: red;*/
+ position: absolute;
+ left: 592px;
+ top: 845px;
+ height: 235px;
+ /*display: none;*/
+ }
+
+ .perks-background .perks-background-gradiant {
+ top: 854px;
+ left: 609px;
+ width: 717px;
+ height: 220px;
+ position: absolute;
+ /*background-image: linear-gradient(150deg, #0b849e 0%, #be1e37 100%);*/
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.83) 100% );*/
+ }
+
+ .perks-background .perks-background-color {
+ /*top: 854px;*/
+ /*left: 609px;*/
+ width: 717px;
+ height: 220px;
+ /*position: absolute;*/
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.83) 100% );*/
+ /*background-image: linear-gradient(150deg, #0b849e 0%, #be1e37 100%);*/
+ }
+
+
+.separation-bar-adc-blue {
+ position: absolute;
+ height: 2px;
+ width: 200px;
+ background-color: #c99d53;
+ top: 919px;
+ left: 637px;
+}
+
+.separation-bar-supp-blue {
+ position: absolute;
+ height: 2px;
+ width: 200px;
+ background-color: #c99d53;
+ top: 1027px;
+ left: 637px;
+}
+
+.separation-bar-adc-red {
+ position: absolute;
+ height: 2px;
+ width: 200px;
+ background-color: #c99d53;
+ top: 919px;
+ left: 1097px;
+}
+
+.separation-bar-supp-red {
+ position: absolute;
+ height: 2px;
+ width: 200px;
+ background-color: #c99d53;
+ top: 1027px;
+ left: 1097px;
+}
+
+.lane-picture-adc {
+ position: absolute;
+}
+
+ .lane-picture-adc .lane-picture-img {
+ position: absolute;
+ top: 853px;
+ left: 950px;
+ height: 33px;
+ }
+
+.lane-picture-supp {
+ position: absolute;
+}
+
+ .lane-picture-supp .lane-picture-img {
+ position: absolute;
+ top: 960px;
+ left: 950px;
+ height: 33px;
+ }
+
+
+.perks {
+ /*background: url(./assets/runes/backgroundV2.png);*/
+ /* background-size: 1920px;*/
+ height: 1080px;
+ width: 1920px;
+}
+
+.summoner-name-adc-blue {
+ position: absolute;
+ font-family: EurostileCondensedBold;
+ font-size: 20px;
+ top: 852px;
+ right: 970px;
+ position: absolute;
+ letter-spacing: -1px;
+}
+
+.champ-picture-adc-blue {
+ position: absolute;
+}
+
+ .champ-picture-adc-blue .champ-picture-adc-img {
+ position: absolute;
+ height: 79px;
+ top: 882px;
+ left: 868px;
+ border: 2px solid #c99d53;
+ }
+
+.summoner-name-supp-blue {
+ position: absolute;
+ font-family: EurostileCondensedBold;
+ font-size: 20px;
+ top: 960px;
+ right: 970px;
+ position: absolute;
+ letter-spacing: -1px;
+}
+
+.champ-picture-supp-blue {
+ position: absolute;
+}
+
+ .champ-picture-supp-blue .champ-picture-supp-img {
+ position: absolute;
+ height: 79px;
+ top: 990px;
+ left: 868px;
+ border: 2px solid #c99d53;
+ }
+
+.summoner-name-adc-red {
+ position: absolute;
+ font-family: EurostileCondensedBold;
+ font-size: 20px;
+ top: 852px;
+ left: 995px;
+ position: absolute;
+ letter-spacing: -1px;
+}
+
+.champ-picture-adc-red {
+ position: absolute;
+}
+
+ .champ-picture-adc-red .champ-picture-adc-img {
+ position: absolute;
+ height: 79px;
+ top: 882px;
+ left: 987px;
+ border: 2px solid #c99d53;
+ }
+
+.summoner-name-supp-red {
+ position: absolute;
+ font-family: EurostileCondensedBold;
+ font-size: 20px;
+ top: 960px;
+ left: 995px;
+ position: absolute;
+ letter-spacing: -1px;
+}
+
+.champ-picture-supp-red {
+ position: absolute;
+}
+
+ .champ-picture-supp-red .champ-picture-supp-img {
+ position: absolute;
+ height: 79px;
+ top: 990px;
+ left: 987px;
+ border: 2px solid #c99d53;
+ }
+
+
+.perks-wrapper-adc-blue {
+ position: absolute;
+}
+
+ .perks-wrapper-adc-blue .perks-img-adc-blue {
+ position: absolute;
+ }
+
+ .perks-wrapper-adc-blue:nth-child(1) .perks-img-adc-blue {
+ position: absolute;
+ height: 60px;
+ top: 865px;
+ left: 790px;
+ }
+
+ .perks-wrapper-adc-blue:nth-child(2) .perks-img-adc-blue {
+ position: absolute;
+ height: 33px;
+ top: 880px;
+ left: 745px;
+ }
+
+ .perks-wrapper-adc-blue:nth-child(3) .perks-img-adc-blue {
+ position: absolute;
+ height: 33px;
+ top: 880px;
+ left: 705px;
+ }
+
+ .perks-wrapper-adc-blue:nth-child(4) .perks-img-adc-blue {
+ position: absolute;
+ height: 33px;
+ top: 880px;
+ left: 665px;
+ }
+
+ .perks-wrapper-adc-blue:nth-child(5) .perks-img-adc-blue {
+ position: absolute;
+ height: 33px;
+ top: 925px;
+ left: 810px;
+ }
+
+ .perks-wrapper-adc-blue:nth-child(6) .perks-img-adc-blue {
+ position: absolute;
+ height: 33px;
+ top: 925px;
+ left: 770px;
+ }
+
+ .perks-wrapper-adc-blue:nth-child(7) .perks-img-adc-blue {
+ position: absolute;
+ /*height: 33px;*/
+ top: 926px;
+ left: 701px;
+ }
+
+ .perks-wrapper-adc-blue:nth-child(8) .perks-img-adc-blue {
+ position: absolute;
+ /*height: 33px;*/
+ top: 926px;
+ left: 671px;
+ }
+
+ .perks-wrapper-adc-blue:nth-child(9) .perks-img-adc-blue {
+ position: absolute;
+ /*height: 33px;*/
+ top: 926px;
+ left: 641px;
+ }
+
+.perks-wrapper-supp-blue {
+ position: absolute;
+}
+
+ .perks-wrapper-supp-blue .perks-img-supp-blue {
+ position: absolute;
+ }
+
+ .perks-wrapper-supp-blue:nth-child(1) .perks-img-supp-blue {
+ position: absolute;
+ height: 60px;
+ top: 975px;
+ left: 790px;
+ }
+
+ .perks-wrapper-supp-blue:nth-child(2) .perks-img-supp-blue {
+ position: absolute;
+ height: 33px;
+ top: 990px;
+ left: 745px;
+ }
+
+ .perks-wrapper-supp-blue:nth-child(3) .perks-img-supp-blue {
+ position: absolute;
+ height: 33px;
+ top: 990px;
+ left: 705px;
+ }
+
+ .perks-wrapper-supp-blue:nth-child(4) .perks-img-supp-blue {
+ position: absolute;
+ height: 33px;
+ top: 990px;
+ left: 665px;
+ }
+
+ .perks-wrapper-supp-blue:nth-child(5) .perks-img-supp-blue {
+ position: absolute;
+ height: 33px;
+ top: 1035px;
+ left: 810px;
+ }
+
+ .perks-wrapper-supp-blue:nth-child(6) .perks-img-supp-blue {
+ position: absolute;
+ height: 33px;
+ top: 1035px;
+ left: 770px;
+ }
+
+ .perks-wrapper-supp-blue:nth-child(7) .perks-img-supp-blue {
+ position: absolute;
+ /*height: 33px;*/
+ top: 1036px;
+ left: 701px;
+ }
+
+ .perks-wrapper-supp-blue:nth-child(8) .perks-img-supp-blue {
+ position: absolute;
+ /*height: 33px;*/
+ top: 1036px;
+ left: 671px;
+ }
+
+ .perks-wrapper-supp-blue:nth-child(9) .perks-img-supp-blue {
+ position: absolute;
+ /*height: 33px;*/
+ top: 1036px;
+ left: 641px;
+ }
+
+
+
+.perks-wrapper-adc-red {
+ position: absolute;
+}
+
+ .perks-wrapper-adc-red .perks-img-adc-red {
+ position: absolute;
+ }
+
+ .perks-wrapper-adc-red:nth-child(1) .perks-img-adc-red {
+ position: absolute;
+ height: 60px;
+ top: 865px;
+ left: 1080px;
+ }
+
+ .perks-wrapper-adc-red:nth-child(2) .perks-img-adc-red {
+ position: absolute;
+ height: 33px;
+ top: 880px;
+ left: 1155px;
+ }
+
+ .perks-wrapper-adc-red:nth-child(3) .perks-img-adc-red {
+ position: absolute;
+ height: 33px;
+ top: 880px;
+ left: 1195px;
+ }
+
+ .perks-wrapper-adc-red:nth-child(4) .perks-img-adc-red {
+ position: absolute;
+ height: 33px;
+ top: 880px;
+ left: 1235px;
+ }
+
+ .perks-wrapper-adc-red:nth-child(5) .perks-img-adc-red {
+ position: absolute;
+ height: 33px;
+ top: 925px;
+ left: 1090px;
+ }
+
+ .perks-wrapper-adc-red:nth-child(6) .perks-img-adc-red {
+ position: absolute;
+ height: 33px;
+ top: 925px;
+ left: 1130px;
+ }
+
+ .perks-wrapper-adc-red:nth-child(7) .perks-img-adc-red {
+ position: absolute;
+ /*height: 33px;*/
+ top: 926px;
+ left: 1200px;
+ }
+
+ .perks-wrapper-adc-red:nth-child(8) .perks-img-adc-red {
+ position: absolute;
+ /*height: 33px;*/
+ top: 926px;
+ left: 1230px;
+ }
+
+ .perks-wrapper-adc-red:nth-child(9) .perks-img-adc-red {
+ position: absolute;
+ /*height: 33px;*/
+ top: 926px;
+ left: 1260px;
+ }
+
+.perks-wrapper-supp-red {
+ position: absolute;
+}
+
+ .perks-wrapper-supp-red .perks-img-supp-red {
+ position: absolute;
+ }
+
+ .perks-wrapper-supp-red:nth-child(1) .perks-img-supp-red {
+ position: absolute;
+ height: 60px;
+ top: 975px;
+ left: 1080px;
+ }
+
+ .perks-wrapper-supp-red:nth-child(2) .perks-img-supp-red {
+ position: absolute;
+ height: 33px;
+ top: 990px;
+ left: 1155px;
+ }
+
+ .perks-wrapper-supp-red:nth-child(3) .perks-img-supp-red {
+ position: absolute;
+ height: 33px;
+ top: 990px;
+ left: 1195px;
+ }
+
+ .perks-wrapper-supp-red:nth-child(4) .perks-img-supp-red {
+ position: absolute;
+ height: 33px;
+ top: 990px;
+ left: 1235px;
+ }
+
+ .perks-wrapper-supp-red:nth-child(5) .perks-img-supp-red {
+ position: absolute;
+ height: 33px;
+ top: 1035px;
+ left: 1090px;
+ }
+
+ .perks-wrapper-supp-red:nth-child(6) .perks-img-supp-red {
+ position: absolute;
+ height: 33px;
+ top: 1035px;
+ left: 1130px;
+ }
+
+ .perks-wrapper-supp-red:nth-child(7) .perks-img-supp-red {
+ position: absolute;
+ /*height: 33px;*/
+ top: 1036px;
+ left: 1200px;
+ }
+
+ .perks-wrapper-supp-red:nth-child(8) .perks-img-supp-red {
+ position: absolute;
+ /*height: 33px;*/
+ top: 1036px;
+ left: 1230px;
+ }
+
+ .perks-wrapper-supp-red:nth-child(9) .perks-img-supp-red {
+ position: absolute;
+ /*height: 33px;*/
+ top: 1036px;
+ left: 1260px;
+ }
\ No newline at end of file
diff --git a/OSL-Server/Pages/Runes/RunesAllPage.razor b/OSL-Server/Pages/Runes/RunesAllPage.razor
new file mode 100644
index 0000000..6abf571
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesAllPage.razor
@@ -0,0 +1,261 @@
+@page "/runes/all"
+@using OSL_Server.DataReciveClient.Processing.ChampSelect;
+@using OSL_Server.DataLoader.CDragon;
+@using Newtonsoft.Json;
+@layout EmptyLayout
+
+
+
+@code {
+ private System.Timers.Timer timer = new(5000);
+
+ protected override void OnInitialized()
+ {
+ timer.Elapsed += (sender, eventArgs) => OnTimerCallback();
+ timer.Start();
+ }
+
+ private void OnTimerCallback()
+ {
+ _ = InvokeAsync(() =>
+ {
+ StateHasChanged();
+ });
+ }
+
+ public void Dispose() => timer.Dispose();
+}
diff --git a/OSL-Server/Pages/Runes/RunesAllPage.razor.cs b/OSL-Server/Pages/Runes/RunesAllPage.razor.cs
new file mode 100644
index 0000000..aa7ed9f
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesAllPage.razor.cs
@@ -0,0 +1,71 @@
+using Newtonsoft.Json;
+using OSL_Server.Configuration;
+using OSL_Server.DataLoader.CDragon;
+using OSL_Server.DataLoader.WebApiRiot;
+
+namespace OSL_Server.Pages.Runes
+{
+ public partial class RunesAllPage
+ {
+ private static OSLLogger _logger = new OSLLogger("RunesAllPage");
+
+ //Data for display color, texte, picture on web page
+ public static FormatingData formatingData = new();
+
+ public class FormatingData
+ {
+ public string DefaultPatch { get; set; }
+ public string DefaultRegion { get; set; }
+ public string BackgroudGradient { get; set; }
+ public string BackgroudGradientDeg { get; set; }
+ public string BackgroudGradientColor1 { get; set; }
+ public string BackgroudGradientPercent1 { get; set; }
+ public string BackgroudGradientColor2 { get; set; }
+ public string BackgroudGradientPercent2 { get; set; }
+ public string OverlayColorBackgroudGradient { get; set; }
+ public string BlueSideColorTextSummoner { get; set; }
+ public string RedSideColorTextSummoner { get; set; }
+ public string BlueSideColorBorderChampion { get; set; }
+ public string RedSideColorBorderChampion { get; set; }
+ public string BlueSideColorSeparationBar { get; set; }
+ public string RedSideColorSeparationBar { get; set; }
+ public string BakgroundPicture { get; set; }
+ public string LanePictureAdc { get; set; }
+ public string LanePictureSupp { get; set; }
+ public string LanePictureTop { get; set; }
+ public string LanePictureMid { get; set; }
+ public string LanePictureJungle { get; set; }
+ }
+
+ ///
+ public static string GetPerksIconPath(int perksId)
+ {
+ int indexPatch = CDragon.dataCDragon.Patch.FindIndex(obj => obj.Name == formatingData.DefaultPatch);
+ int indexRegion = CDragon.dataCDragon.Patch[indexPatch].Region.FindIndex(obj => obj.Name == formatingData.DefaultRegion);
+ int indexPerks = CDragon.dataCDragon.Patch[indexPatch].Region[indexRegion].RegionContent.Perks.FindIndex(obj => obj.Id == perksId);
+ return CDragon.dataCDragon.Patch[0].Region[0].RegionContent.Perks[indexPerks].IconPath;
+ }
+
+ ///
+ public static string GetChampionPicturePath(int champId)
+ {
+ return $"./assets/{formatingData.DefaultPatch}/{formatingData.DefaultRegion}/Champions/{champId}/default-square.png";
+ }
+
+ ///
+ public static void ResetColor()
+ {
+ Config.LoadFormatingDataConfigRunesAllPage();
+ }
+ }
+}
diff --git a/OSL-Server/Pages/Runes/RunesAllPage.razor.css b/OSL-Server/Pages/Runes/RunesAllPage.razor.css
new file mode 100644
index 0000000..5cc5b0d
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesAllPage.razor.css
@@ -0,0 +1,186 @@
+@font-face {
+ font-family: LolFont;
+ src: url(./css/font/fontLoL.ttf);
+}
+
+@font-face {
+ font-family: EurostileCondensedBold;
+ src: url("css/font/EurostileCondensedBold.otf") format("opentype");
+}
+
+html, body {
+ font-family: EurostileCondensedBold;
+ background-color: black;
+ color: white;
+}
+
+.perks-background {
+ width: 1920px;
+ height: 1080px;
+ position: absolute;
+}
+
+ .perks-background .perks-background-img {
+ position: absolute;
+ left: 292px;
+ top: 845px;
+ height: 235px;
+ }
+
+ .perks-background .perks-background-gradiant {
+ top: 854px;
+ left: 309px;
+ width: 1335px;
+ height: 220px;
+ position: absolute;
+ }
+
+ .perks-background .perks-background-color {
+ width: 1335px;
+ height: 220px;
+ }
+
+.perks {
+ /*background: url(./assets/runes/background.png);*/
+ height: 1080px;
+ width: 1920px;
+}
+
+.separation-bar {
+ position: absolute;
+ height: 200px;
+ width: 2px;
+ background-color: #c99d53;
+ top: 865px;
+ left: 980px;
+}
+
+.lane-picture-img {
+ height: 30px;
+ margin-bottom: 5px;
+}
+
+.champ-picture-img {
+ height: 60px;
+ margin-bottom: 5px;
+}
+
+.perks-img {
+ margin-bottom: 5px;
+ height: 60px;
+}
+
+.perks-sub-img {
+ height: 32px;
+ margin-bottom: 5px;
+}
+
+.perks-blue-top {
+ position: absolute;
+ display: inline-block;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ top: 865px;
+ left: 370px;
+}
+
+.perks-blue-jungle {
+ position: absolute;
+ display: inline-block;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ top: 865px;
+ left: 490px;
+}
+
+.perks-blue-mid {
+ position: absolute;
+ display: inline-block;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ top: 865px;
+ left: 610px;
+}
+
+.perks-blue-adc {
+ position: absolute;
+ display: inline-block;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ top: 865px;
+ left: 730px;
+}
+
+.perks-blue-supp {
+ position: absolute;
+ display: inline-block;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ top: 865px;
+ left: 860px;
+}
+
+.perks-red-top {
+ position: absolute;
+ display: inline-block;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ top: 865px;
+ left: 1525px;
+}
+
+.perks-red-jungle {
+ position: absolute;
+ display: inline-block;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ top: 865px;
+ left: 1405px;
+}
+
+.perks-red-mid {
+ position: absolute;
+ display: inline-block;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ top: 865px;
+ left: 1285px;
+}
+
+.perks-red-adc {
+ position: absolute;
+ display: inline-block;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ top: 865px;
+ left: 1165px;
+}
+
+.perks-red-supp {
+ position: absolute;
+ display: inline-block;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ top: 865px;
+ left: 1045px;
+}
diff --git a/OSL-Server/Pages/Runes/RunesJunglePage.razor b/OSL-Server/Pages/Runes/RunesJunglePage.razor
new file mode 100644
index 0000000..217d5fb
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesJunglePage.razor
@@ -0,0 +1,117 @@
+@page "/runes/jungle"
+@using OSL_Server.DataReciveClient.Processing.ChampSelect;
+@using OSL_Server.DataLoader.CDragon;
+@using Newtonsoft.Json;
+@layout EmptyLayout
+
+
+
+@code {
+ private System.Timers.Timer timer = new(5000);
+
+ protected override void OnInitialized()
+ {
+ timer.Elapsed += (sender, eventArgs) => OnTimerCallback();
+ timer.Start();
+ }
+
+ private void OnTimerCallback()
+ {
+ _ = InvokeAsync(() =>
+ {
+ StateHasChanged();
+ });
+ }
+
+ public void Dispose() => timer.Dispose();
+}
diff --git a/OSL-Server/Pages/Runes/RunesJunglePage.razor.cs b/OSL-Server/Pages/Runes/RunesJunglePage.razor.cs
new file mode 100644
index 0000000..2ff23b6
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesJunglePage.razor.cs
@@ -0,0 +1,63 @@
+using Newtonsoft.Json;
+using OSL_Server.Configuration;
+using OSL_Server.DataLoader.CDragon;
+using OSL_Server.DataLoader.WebApiRiot;
+
+namespace OSL_Server.Pages.Runes
+{
+ public partial class RunesJunglePage
+ {
+ private static OSLLogger _logger = new OSLLogger("RunesJunglePage");
+
+ //Data for display color, texte, picture on web page
+ public static FormatingData formatingData = new();
+
+ public class FormatingData
+ {
+ public string DefaultPatch { get; set; }
+ public string DefaultRegion { get; set; }
+ public string BackgroudGradient { get; set; }
+ public string OverlayColorBackgroudGradient { get; set; }
+ public string BlueSideColorTextSummoner{ get; set; }
+ public string RedSideColorTextSummoner{ get; set; }
+ public string BlueSideColorBorderChampion { get; set; }
+ public string RedSideColorBorderChampion { get; set; }
+ public string BlueSideColorSeparationBar{ get; set; }
+ public string RedSideColorSeparationBar{ get; set; }
+ public string BakgroundPicture{ get; set; }
+ public string LanePicture{ get; set; }
+ }
+
+ ///
+ public static string GetPerksIconPath(int perksId)
+ {
+ int indexPatch = CDragon.dataCDragon.Patch.FindIndex(obj => obj.Name == formatingData.DefaultPatch);
+ int indexRegion = CDragon.dataCDragon.Patch[indexPatch].Region.FindIndex(obj => obj.Name == formatingData.DefaultRegion);
+ int indexPerks = CDragon.dataCDragon.Patch[indexPatch].Region[indexRegion].RegionContent.Perks.FindIndex(obj => obj.Id == perksId);
+ return CDragon.dataCDragon.Patch[0].Region[0].RegionContent.Perks[indexPerks].IconPath;
+ }
+
+ ///
+ public static string GetChampionPicturePath(int champId)
+ {
+ return $"./assets/{formatingData.DefaultPatch}/{formatingData.DefaultRegion}/Champions/{champId}/default-square.png";
+ }
+
+ ///
+ public static void ResetColor()
+ {
+ Config.LoadFormatingDataConfigRunesJunglePage();
+ }
+
+ }
+}
diff --git a/OSL-Server/Pages/Runes/RunesJunglePage.razor.css b/OSL-Server/Pages/Runes/RunesJunglePage.razor.css
new file mode 100644
index 0000000..4b9e983
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesJunglePage.razor.css
@@ -0,0 +1,328 @@
+@font-face {
+ font-family: LolFont;
+ src: url(./css/font/fontLoL.ttf);
+}
+
+@font-face {
+ font-family: EurostileCondensedBold;
+ src: url("css/font/EurostileCondensedBold.otf") format("opentype");
+}
+
+html, body {
+ font-family: EurostileCondensedBold;
+ background-color: black;
+ color: white;
+}
+
+.perks-background {
+ width: 1920px;
+ height: 1080px;
+ position: absolute;
+ /*background-color: red;*/
+}
+
+ .perks-background .perks-background-img {
+ /*background-color: red;*/
+ position: absolute;
+ left: 592px;
+ top: 845px;
+ height: 235px;
+ /*display: none;*/
+ }
+
+ .perks-background .perks-background-gradiant {
+ top: 854px;
+ left: 609px;
+ width: 717px;
+ height: 220px;
+ position: absolute;
+ /*background-image: linear-gradient(150deg, #0b849e 0%, #be1e37 100%);*/
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.83) 100% );*/
+ }
+
+ .perks-background .perks-background-color {
+ /*top: 854px;*/
+ /*left: 609px;*/
+ width: 717px;
+ height: 220px;
+ /*position: absolute;*/
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.83) 100% );*/
+ /*background-image: linear-gradient(150deg, #0b849e 0%, #be1e37 100%);*/
+ }
+
+
+.separation-bar:nth-child(6) {
+ position: absolute;
+ height: 2px;
+ width: 200px;
+ /*background-color: #c99d53;*/
+ top: 980px;
+ left: 637px;
+}
+
+.separation-bar:nth-child(10) {
+ position: absolute;
+ height: 2px;
+ width: 200px;
+ /*background-color: #c99d53;*/
+ top: 980px;
+ left: 1097px;
+}
+
+.lane-picture {
+ position: absolute;
+}
+
+ .lane-picture .lane-picture-img {
+ position: absolute;
+ top: 860px;
+ left: 940px;
+ height: 50px;
+ }
+
+
+.perks {
+ /*background: url(./assets/runes/background.png);*/
+ /* background-size: 1920px;*/
+ height: 1080px;
+ width: 1920px;
+}
+
+.summoner-name {
+ position: absolute;
+}
+
+ .summoner-name:nth-child(3) {
+ font-family: EurostileCondensedBold;
+ font-size: 40px;
+ top: 850px;
+ right: 1000px;
+ position: absolute;
+ letter-spacing: -2px;
+ /*color: #0b849e;*/
+ /*display: none*/
+ }
+
+ .summoner-name:nth-child(7) {
+ font-family: EurostileCondensedBold;
+ font-size: 40px;
+ top: 850px;
+ left: 1010px;
+ position: absolute;
+ letter-spacing: -2px;
+ /*color: #be1e37;*/
+ }
+
+.champ-picture {
+ position: absolute;
+}
+
+ .champ-picture:nth-child(4) .champ-picture-img {
+ height: 105px;
+ top: 930px;
+ left: 853px;
+ position: absolute;
+ /*border: 2px solid #c99d53;*/
+ }
+
+ .champ-picture:nth-child(8) .champ-picture-img {
+ height: 105px;
+ top: 930px;
+ left: 977px;
+ position: absolute;
+ /*border: 2px solid #c99d53;*/
+ }
+
+
+.perks-list {
+ position: absolute;
+ display: flex;
+}
+
+ .perks-list:nth-child(5) {
+ /*top: 100px;*/
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(1) {
+ top: 905px;
+ left: 775px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(1) .perks-img {
+ height: 80px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(2) {
+ top: 930px;
+ left: 737.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(2) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(3) {
+ top: 930px;
+ left: 697.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(3) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(4) {
+ top: 930px;
+ left: 657.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(4) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(5) {
+ top: 990px;
+ left: 801.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(5) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(6) {
+ top: 990px;
+ left: 761.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(6) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(7) {
+ top: 995px;
+ left: 701.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(7) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(8) {
+ top: 995px;
+ left: 671.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(8) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(9) {
+ top: 995px;
+ left: 641.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(9) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(9) {
+ /*top: 100px;*/
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(1) {
+ top: 905px;
+ left: 1085px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(1) .perks-img {
+ height: 80px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(2) {
+ top: 930px;
+ left: 1156.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(2) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(3) {
+ top: 930px;
+ left: 1196.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(3) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(4) {
+ top: 930px;
+ left: 1236.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(4) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(5) {
+ top: 990px;
+ left: 1092.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(5) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(6) {
+ top: 990px;
+ left: 1132.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(6) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(7) {
+ top: 995px;
+ left: 1202.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(7) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(8) {
+ top: 995px;
+ left: 1232.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(8) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(9) {
+ top: 995px;
+ left: 1262.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(9) .perks-img {
+ /*height: 40.5px;*/
+ }
diff --git a/OSL-Server/Pages/Runes/RunesMidPage.razor b/OSL-Server/Pages/Runes/RunesMidPage.razor
new file mode 100644
index 0000000..115dd3b
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesMidPage.razor
@@ -0,0 +1,117 @@
+@page "/runes/mid"
+@using OSL_Server.DataReciveClient.Processing.ChampSelect;
+@using OSL_Server.DataLoader.CDragon;
+@using Newtonsoft.Json;
+@layout EmptyLayout
+
+
+
+@code {
+ private System.Timers.Timer timer = new(5000);
+
+ protected override void OnInitialized()
+ {
+ timer.Elapsed += (sender, eventArgs) => OnTimerCallback();
+ timer.Start();
+ }
+
+ private void OnTimerCallback()
+ {
+ _ = InvokeAsync(() =>
+ {
+ StateHasChanged();
+ });
+ }
+
+ public void Dispose() => timer.Dispose();
+}
diff --git a/OSL-Server/Pages/Runes/RunesMidPage.razor.cs b/OSL-Server/Pages/Runes/RunesMidPage.razor.cs
new file mode 100644
index 0000000..469cef3
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesMidPage.razor.cs
@@ -0,0 +1,62 @@
+using Newtonsoft.Json;
+using OSL_Server.Configuration;
+using OSL_Server.DataLoader.CDragon;
+using OSL_Server.DataLoader.WebApiRiot;
+
+namespace OSL_Server.Pages.Runes
+{
+ public partial class RunesMidPage
+ {
+ private static OSLLogger _logger = new OSLLogger("RunesMidPage");
+
+ //Data for display color, texte, picture on web page
+ public static FormatingData formatingData = new();
+
+ public class FormatingData
+ {
+ public string DefaultPatch { get; set; }
+ public string DefaultRegion { get; set; }
+ public string BackgroudGradient { get; set; }
+ public string OverlayColorBackgroudGradient { get; set; }
+ public string BlueSideColorTextSummoner{ get; set; }
+ public string RedSideColorTextSummoner{ get; set; }
+ public string BlueSideColorBorderChampion { get; set; }
+ public string RedSideColorBorderChampion { get; set; }
+ public string BlueSideColorSeparationBar{ get; set; }
+ public string RedSideColorSeparationBar{ get; set; }
+ public string BakgroundPicture{ get; set; }
+ public string LanePicture{ get; set; }
+ }
+
+ ///
+ public static string GetPerksIconPath(int perksId)
+ {
+ int indexPatch = CDragon.dataCDragon.Patch.FindIndex(obj => obj.Name == formatingData.DefaultPatch);
+ int indexRegion = CDragon.dataCDragon.Patch[indexPatch].Region.FindIndex(obj => obj.Name == formatingData.DefaultRegion);
+ int indexPerks = CDragon.dataCDragon.Patch[indexPatch].Region[indexRegion].RegionContent.Perks.FindIndex(obj => obj.Id == perksId);
+ return CDragon.dataCDragon.Patch[0].Region[0].RegionContent.Perks[indexPerks].IconPath;
+ }
+
+ ///
+ public static string GetChampionPicturePath(int champId)
+ {
+ return $"./assets/{formatingData.DefaultPatch}/{formatingData.DefaultRegion}/Champions/{champId}/default-square.png";
+ }
+
+ ///
+ public static void ResetColor()
+ {
+ Config.LoadFormatingDataConfigRunesMidPage();
+ }
+ }
+}
diff --git a/OSL-Server/Pages/Runes/RunesMidPage.razor.css b/OSL-Server/Pages/Runes/RunesMidPage.razor.css
new file mode 100644
index 0000000..4b9e983
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesMidPage.razor.css
@@ -0,0 +1,328 @@
+@font-face {
+ font-family: LolFont;
+ src: url(./css/font/fontLoL.ttf);
+}
+
+@font-face {
+ font-family: EurostileCondensedBold;
+ src: url("css/font/EurostileCondensedBold.otf") format("opentype");
+}
+
+html, body {
+ font-family: EurostileCondensedBold;
+ background-color: black;
+ color: white;
+}
+
+.perks-background {
+ width: 1920px;
+ height: 1080px;
+ position: absolute;
+ /*background-color: red;*/
+}
+
+ .perks-background .perks-background-img {
+ /*background-color: red;*/
+ position: absolute;
+ left: 592px;
+ top: 845px;
+ height: 235px;
+ /*display: none;*/
+ }
+
+ .perks-background .perks-background-gradiant {
+ top: 854px;
+ left: 609px;
+ width: 717px;
+ height: 220px;
+ position: absolute;
+ /*background-image: linear-gradient(150deg, #0b849e 0%, #be1e37 100%);*/
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.83) 100% );*/
+ }
+
+ .perks-background .perks-background-color {
+ /*top: 854px;*/
+ /*left: 609px;*/
+ width: 717px;
+ height: 220px;
+ /*position: absolute;*/
+ /*background-image: linear-gradient( to right, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.83) 100% );*/
+ /*background-image: linear-gradient(150deg, #0b849e 0%, #be1e37 100%);*/
+ }
+
+
+.separation-bar:nth-child(6) {
+ position: absolute;
+ height: 2px;
+ width: 200px;
+ /*background-color: #c99d53;*/
+ top: 980px;
+ left: 637px;
+}
+
+.separation-bar:nth-child(10) {
+ position: absolute;
+ height: 2px;
+ width: 200px;
+ /*background-color: #c99d53;*/
+ top: 980px;
+ left: 1097px;
+}
+
+.lane-picture {
+ position: absolute;
+}
+
+ .lane-picture .lane-picture-img {
+ position: absolute;
+ top: 860px;
+ left: 940px;
+ height: 50px;
+ }
+
+
+.perks {
+ /*background: url(./assets/runes/background.png);*/
+ /* background-size: 1920px;*/
+ height: 1080px;
+ width: 1920px;
+}
+
+.summoner-name {
+ position: absolute;
+}
+
+ .summoner-name:nth-child(3) {
+ font-family: EurostileCondensedBold;
+ font-size: 40px;
+ top: 850px;
+ right: 1000px;
+ position: absolute;
+ letter-spacing: -2px;
+ /*color: #0b849e;*/
+ /*display: none*/
+ }
+
+ .summoner-name:nth-child(7) {
+ font-family: EurostileCondensedBold;
+ font-size: 40px;
+ top: 850px;
+ left: 1010px;
+ position: absolute;
+ letter-spacing: -2px;
+ /*color: #be1e37;*/
+ }
+
+.champ-picture {
+ position: absolute;
+}
+
+ .champ-picture:nth-child(4) .champ-picture-img {
+ height: 105px;
+ top: 930px;
+ left: 853px;
+ position: absolute;
+ /*border: 2px solid #c99d53;*/
+ }
+
+ .champ-picture:nth-child(8) .champ-picture-img {
+ height: 105px;
+ top: 930px;
+ left: 977px;
+ position: absolute;
+ /*border: 2px solid #c99d53;*/
+ }
+
+
+.perks-list {
+ position: absolute;
+ display: flex;
+}
+
+ .perks-list:nth-child(5) {
+ /*top: 100px;*/
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(1) {
+ top: 905px;
+ left: 775px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(1) .perks-img {
+ height: 80px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(2) {
+ top: 930px;
+ left: 737.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(2) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(3) {
+ top: 930px;
+ left: 697.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(3) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(4) {
+ top: 930px;
+ left: 657.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(4) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(5) {
+ top: 990px;
+ left: 801.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(5) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(6) {
+ top: 990px;
+ left: 761.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(6) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(7) {
+ top: 995px;
+ left: 701.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(7) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(8) {
+ top: 995px;
+ left: 671.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(8) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(9) {
+ top: 995px;
+ left: 641.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(5) .perks-wrapper:nth-child(9) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(9) {
+ /*top: 100px;*/
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(1) {
+ top: 905px;
+ left: 1085px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(1) .perks-img {
+ height: 80px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(2) {
+ top: 930px;
+ left: 1156.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(2) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(3) {
+ top: 930px;
+ left: 1196.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(3) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(4) {
+ top: 930px;
+ left: 1236.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(4) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(5) {
+ top: 990px;
+ left: 1092.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(5) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(6) {
+ top: 990px;
+ left: 1132.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(6) .perks-img {
+ height: 40.5px;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(7) {
+ top: 995px;
+ left: 1202.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(7) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(8) {
+ top: 995px;
+ left: 1232.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(8) .perks-img {
+ /*height: 40.5px;*/
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(9) {
+ top: 995px;
+ left: 1262.5px;
+ position: absolute;
+ }
+
+ .perks-list:nth-child(9) .perks-wrapper:nth-child(9) .perks-img {
+ /*height: 40.5px;*/
+ }
diff --git a/OSL-Server/Pages/Runes/RunesPage.razor b/OSL-Server/Pages/Runes/RunesPage.razor
new file mode 100644
index 0000000..d5a6ea6
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesPage.razor
@@ -0,0 +1,192 @@
+@page "/runes"
+@using MudBlazor
+@using OSL_Server.DataLoader.CDragon;
+@*@using CDragondataCDragon*@
+
+
+
+
+
+@code {
+ public static LaneInfo laneSelectionSummoner1 = new();
+ public static LaneInfo laneSelectionSummoner2 = new();
+
+ public static Overlay overlay = new();
+
+ private System.Timers.Timer timer = new(5000);
+
+ protected override void OnInitialized()
+ {
+ timer.Elapsed += (sender, eventArgs) => OnTimerCallback();
+ timer.Start();
+ }
+
+ private void OnTimerCallback()
+ {
+ _ = InvokeAsync(() =>
+ {
+ StateHasChanged();
+ });
+ }
+
+ public void Dispose() => timer.Dispose();
+}
diff --git a/OSL-Server/Pages/Runes/RunesPage.razor.cs b/OSL-Server/Pages/Runes/RunesPage.razor.cs
new file mode 100644
index 0000000..b3bf929
--- /dev/null
+++ b/OSL-Server/Pages/Runes/RunesPage.razor.cs
@@ -0,0 +1,498 @@
+using Newtonsoft.Json;
+using OSL_Server.DataLoader.WebApiRiot;
+using OSL_Server.DataReciveClient.Processing.ChampSelect;
+using OSL_Server.FileManager;
+using OSL_Server.Pages.ChampSelect;
+using System.ComponentModel.DataAnnotations;
+using System.Reflection;
+using static OSL_Server.Pages.ChampSelect.ChampSelectPage;
+
+namespace OSL_Server.Pages.Runes
+{
+ public partial class RunesPage
+ {
+ private static OSLLogger _logger = new OSLLogger("RunesPage");
+
+ public static string colorPicker = "hidden";
+ public static string colorValue = "#0000";
+
+ public static List