Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qutrits committed Aug 7, 2024
1 parent 225c540 commit 08f1c5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Controls/TransparentLabel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private float GetFontSizeFactor() {
isLangGroup3 ? (this.Text.Length > 14 ? (1f - ((this.TextRight.Length - 42 + (this.Text.Length * 2.5f)) / 100f)) : 1f) : 1f;
break;
case "lblFinish":
factor = isLangGroup1 ? (this.Text.Length <= 8 ? (this.TextRight.Length > 14 ? 1f - (((this.TextRight.Length * 2.5f) - 26) / 100f) : 1f) : (1f - (((this.Text.Length * 2.5f) - 41) / 100f))) :
factor = isLangGroup1 ? (this.Text.Length <= 8 ? (this.TextRight.Length > 13 ? 1f - (((this.TextRight.Length * 2.5f) - 28) / 100f) : 1f) : (1f - (((this.Text.Length * 2.5f) - 41) / 100f))) :
isLangGroup2 ? (this.Text.Length <= 4 ? (this.TextRight.Length > 15 ? 1f - ((this.TextRight.Length - 13) / 100f) : 1f) : 1f) :
isLangGroup3 ? (this.Text.Length <= 4 ? (this.TextRight.Length > 15 ? 1f - ((this.TextRight.Length - 13) / 100f) : 1f) : 1f) : 1f;
break;
Expand Down
3 changes: 2 additions & 1 deletion Views/Overlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -769,10 +769,10 @@ private void SetPlayersLabel(int setting) {
}
switch (playersSwitchCount % 2) {
case 0:
this.lblPlayers.TextRight = $"{this.lastRound?.Players}";
if (this.StatsForm.CurrentSettings.PlayerByConsoleType) {
this.lblPlayers.Image = Properties.Resources.player_icon;
this.lblPlayers.Text = @"ㅤ :";
this.lblPlayers.TextRight = $"{this.lastRound?.Players}";
int psCount = this.lastRound.PlayersPs4 + this.lastRound.PlayersPs5;
int xbCount = this.lastRound.PlayersXb1 + this.lastRound.PlayersXsx;
int swCount = this.lastRound.PlayersSw;
Expand All @@ -794,6 +794,7 @@ private void SetPlayersLabel(int setting) {
} else {
this.lblPlayers.Image = null;
this.lblPlayers.Text = $@"{Multilingual.GetWord("overlay_players")} :";
this.lblPlayers.TextRight = $"{Stats.NumPlayersSucceeded} / {this.lastRound?.Players}";
this.lblPlayersPs.DrawVisible = false;
this.lblPlayersXbox.DrawVisible = false;
this.lblPlayersSwitch.DrawVisible = false;
Expand Down
4 changes: 2 additions & 2 deletions Views/Stats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4648,7 +4648,7 @@ public string GetAlternateShowId(string showId) {
case "ftue_uk_show":
case "classic_solo_main_show":
case "no_elimination_explore":
case "anniversary_fp12_ltm":
// case "anniversary_fp12_ltm":
return "main_show";
case "knockout_duos":
case "classic_duos_show":
Expand All @@ -4661,8 +4661,8 @@ public string GetAlternateShowId(string showId) {
case "invisibeans_template":
case "invisibeans_pistachio_template":
return "invisibeans_mode";
default: return showId;
}
return showId;
}

public string ReplaceLevelIdInShuffleShow(string showId, string roundId) {
Expand Down

0 comments on commit 08f1c5c

Please sign in to comment.