public async void SetAllSettings() { await StatsWindow.AssignJavaScriptVariables().ContinueWith((result) => { if (AdvancedSettingsEnabled) { SetAdvancedSettings(); } else { SetSimpleSettings(); } }); StatsWindow.SetWindowBackgroundColor(WindowBackgroundColor); StatsWindow.SetAwardsName(AwardsName); StatsWindow.SetRankName(RankName); StatsWindow.SetPointsName(PointsName); StatsWindow.SetRatioName(RatioName); StatsWindow.SetTruePointsName(TruePointsName); StatsWindow.SetGameAchievementsName(GameAchievementsName); StatsWindow.SetGamePointsName(GamePointsName); StatsWindow.SetGameTruePointsName(GameTruePointsName); StatsWindow.SetGameRatioName(GameRatioName); StatsWindow.SetCompletedName(CompletedName); if (!string.IsNullOrEmpty(rank)) { StatsWindow.SetRankValue(rank); StatsWindow.SetAwardsValue(awards); StatsWindow.SetPointsValue(points); StatsWindow.SetRatioValue(ratio); StatsWindow.SetTruePointsValue(truePoints); StatsWindow.SetGameAchievementsValue(gameAchievementsEarned + " " + DividerCharacter + " " + gameAchievementsPossible); StatsWindow.SetGamePointsValue(gamePointsEarned + " " + DividerCharacter + " " + gamePointsPossible); StatsWindow.SetGameTruePointsValue(gameTruePointsEarned + " " + DividerCharacter + " " + gameTruePointsPossible); StatsWindow.SetGameRatioValue(GameRatio); StatsWindow.SetCompletedValue(completed); } StatsWindow.SetRankVisibility(RankEnabled); StatsWindow.SetAwardsVisibility(AwardsEnabled); StatsWindow.SetPointsVisibility(PointsEnabled); StatsWindow.SetRatioVisibility(RatioEnabled); StatsWindow.SetTruePointsVisibility(TruePointsEnabled); StatsWindow.SetGameAchievementsVisibility(GameAchievementsEnabled); StatsWindow.SetGamePointsVisibility(GamePointsEnabled); StatsWindow.SetGameTruePointsVisibility(GameTruePointsEnabled); StatsWindow.SetGameRatioVisibility(GameRatioEnabled); StatsWindow.SetCompletedVisibility(CompletedEnabled); }