Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qutrits committed Jul 11, 2023
1 parent 6a493b0 commit ed5b6fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Entities/Multilingual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ public static class Multilingual {
{"overlay_position_suffix", ""},
{"overlay_position_win", "WIN"},
{"overlay_position_survived", " Survived"},
{"overlay_position_qualified", "Pass"},
{"overlay_picPositionLock_tooltip", "Pin the overlay to its current position"},
{"overlay_picPositionNE_tooltip", "Pin the overlay to the top-left corner of the screen"},
{"overlay_picPositionNW_tooltip", "Pin the overlay to the top-right corner of the screen"},
Expand Down Expand Up @@ -741,6 +742,7 @@ public static class Multilingual {
{"overlay_position_suffix", ""},
{"overlay_position_win", "GAGNEZ"},
{"overlay_position_survived", " A survécu "},
{"overlay_position_qualified", "Passer"},
{"overlay_picPositionLock_tooltip", "Épinglez la superposition à sa position actuelle"},
{"overlay_picPositionNE_tooltip", " Épinglez la superposition dans le coin supérieur gauche de l'écran"},
{"overlay_picPositionNW_tooltip", " Épinglez la superposition dans le coin supérieur droit de l'écran"},
Expand Down Expand Up @@ -1135,6 +1137,8 @@ public static class Multilingual {
{"overlay_position_suffix", ""},
{"overlay_position_win", "우승"},
{"overlay_position_survived", "명 생존"},
{"overlay_position_qualified", "통과"},
{"overlay_position_", "명 생존"},
{"overlay_picPositionLock_tooltip", "통계창을 현재 위치에 고정합니다"},
{"overlay_picPositionNE_tooltip", "통계창을 화면 왼쪽 상단에 고정합니다"},
{"overlay_picPositionNW_tooltip", "통계창을 화면 오른쪽 상단에 고정합니다"},
Expand Down Expand Up @@ -1528,6 +1532,7 @@ public static class Multilingual {
{"overlay_position_suffix", ""},
{"overlay_position_win", "優勝"},
{"overlay_position_survived", "人生存"},
{"overlay_position_qualified", "パス"},
{"overlay_picPositionLock_tooltip", " オーバーレイを現在の位置に固定します。 "},
{"overlay_picPositionNE_tooltip", " オーバーレイを画面の左上に固定します。 "},
{"overlay_picPositionNW_tooltip", " オーバーレイを画面の右上に固定します。 "},
Expand Down Expand Up @@ -1922,6 +1927,7 @@ public static class Multilingual {
{"overlay_position_suffix", ""},
{"overlay_position_win", ""},
{"overlay_position_survived", "幸存者"},
{"overlay_position_qualified", "过关"},
{"overlay_picPositionLock_tooltip", " 将叠加层固定到其当前位置。"},
{"overlay_picPositionNE_tooltip", " 将叠加层固定到屏幕的左上角。"},
{"overlay_picPositionNW_tooltip", " 将叠加层固定到屏幕的右上角。"},
Expand Down
4 changes: 3 additions & 1 deletion Views/Overlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,9 @@ private void UpdateInfo() {
this.lblFinish.TextRight = $"{Multilingual.GetWord("overlay_position_win")}! {time:m\\:ss\\.ff}";
} else {
if (levelType == LevelType.Survival) {
this.lblFinish.TextRight = this.lastRound.Position > 0 ? $"{this.lastRound.Position}{Multilingual.GetWord("overlay_position_survived")}! {time:m\\:ss\\.ff}" : $"{time:m\\:ss\\.ff}";
this.lblFinish.TextRight = this.lastRound.Position > 0 ? $"{this.lastRound.Position}{Multilingual.GetWord("overlay_position_survived")}! {time:m\\:ss\\.ff}" : $"{time:m\\:ss\\.ff}";
} else if (levelType == LevelType.Logic) {
this.lblFinish.TextRight = this.lastRound.Position > 0 ? $"{Multilingual.GetWord("overlay_position_qualified")}! {time:m\\:ss\\.ff}" : $"{time:m\\:ss\\.ff}";
} else {
this.lblFinish.TextRight = this.lastRound.Position > 0 ? $"# {Multilingual.GetWord("overlay_position_prefix")}{this.lastRound.Position}{Multilingual.GetWord("overlay_position_suffix")} - {time:m\\:ss\\.ff}" : $"{time:m\\:ss\\.ff}";
}
Expand Down

0 comments on commit ed5b6fc

Please sign in to comment.