Skip to content

Commit

Permalink
Updated new show and round names
Browse files Browse the repository at this point in the history
  • Loading branch information
qutrits committed Jun 28, 2023
1 parent b1072b6 commit 390c7a5
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Entities/LevelStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ public class LevelStats {
{ "wle_s10_player_round_wk5_17", new LevelStats("Big Bookcase", LevelType.Race, true, false, 10, Properties.Resources.round_gauntlet_icon, Properties.Resources.round_gauntlet_big_icon) },
{ "wle_s10_player_round_wk5_18", new LevelStats("Digital Doom", LevelType.Race, true, false, 10, Properties.Resources.round_gauntlet_icon, Properties.Resources.round_gauntlet_big_icon) },

{ "wle_s10_bt_round_001", new LevelStats("Push Ups", LevelType.Race, true, false, 10, Properties.Resources.round_gauntlet_icon, Properties.Resources.round_gauntlet_big_icon) },
{ "wle_s10_bt_round_002", new LevelStats("Heave & Haul", LevelType.Race, true, false, 10, Properties.Resources.round_gauntlet_icon, Properties.Resources.round_gauntlet_big_icon) },
{ "wle_s10_bt_round_003", new LevelStats("Stepping Stones", LevelType.Race, true, false, 10, Properties.Resources.round_gauntlet_icon, Properties.Resources.round_gauntlet_big_icon) },
{ "wle_s10_bt_round_004", new LevelStats("Double Trouble", LevelType.Race, true, false, 10, Properties.Resources.round_gauntlet_icon, Properties.Resources.round_gauntlet_big_icon) },

{ "wle_mrs_bagel_opener_1", new LevelStats("Tunnel of Love", LevelType.Race, true, false, 10, Properties.Resources.round_gauntlet_icon, Properties.Resources.round_gauntlet_big_icon) },
{ "wle_mrs_bagel_opener_2", new LevelStats("Pink Parade", LevelType.Race, true, false, 10, Properties.Resources.round_gauntlet_icon, Properties.Resources.round_gauntlet_big_icon) },
{ "wle_mrs_bagel_opener_3", new LevelStats("Prideful Path", LevelType.Race, true, false, 10, Properties.Resources.round_gauntlet_icon, Properties.Resources.round_gauntlet_big_icon) },
Expand Down
50 changes: 50 additions & 0 deletions Entities/Multilingual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2172,6 +2172,11 @@ public static class Multilingual {
{"wle_s10_player_round_wk5_17", "Big Bookcase"},
{"wle_s10_player_round_wk5_18", "Digital Doom"},

{"wle_s10_bt_round_001", "Push Ups"},
{"wle_s10_bt_round_002", "Heave & Haul"},
{"wle_s10_bt_round_003", "Stepping Stones"},
{"wle_s10_bt_round_004", "Double Trouble"},

{"wle_mrs_bagel_opener_1", "Tunnel of Love"},
{"wle_mrs_bagel_opener_2", "Pink Parade"},
{"wle_mrs_bagel_opener_3", "Prideful Path"},
Expand Down Expand Up @@ -2391,6 +2396,11 @@ public static class Multilingual {
{"wle_s10_player_round_wk5_17", "Big Bookcase"},
{"wle_s10_player_round_wk5_18", "Digital Doom"},

{"wle_s10_bt_round_001", "Push Ups"},
{"wle_s10_bt_round_002", "Heave & Haul"},
{"wle_s10_bt_round_003", "Stepping Stones"},
{"wle_s10_bt_round_004", "Double Trouble"},

{"wle_mrs_bagel_opener_1", "Tunnel of Love"},
{"wle_mrs_bagel_opener_2", "Pink Parade"},
{"wle_mrs_bagel_opener_3", "Prideful Path"},
Expand Down Expand Up @@ -2610,6 +2620,11 @@ public static class Multilingual {
{"wle_s10_player_round_wk5_17", "Big Bookcase"},
{"wle_s10_player_round_wk5_18", "Digital Doom"},

{"wle_s10_bt_round_001", "Push Ups"},
{"wle_s10_bt_round_002", "Heave & Haul"},
{"wle_s10_bt_round_003", "Stepping Stones"},
{"wle_s10_bt_round_004", "Double Trouble"},

{"wle_mrs_bagel_opener_1", "Tunnel of Love"},
{"wle_mrs_bagel_opener_2", "Pink Parade"},
{"wle_mrs_bagel_opener_3", "Prideful Path"},
Expand Down Expand Up @@ -2829,6 +2844,11 @@ public static class Multilingual {
{"wle_s10_player_round_wk5_17", "Big Bookcase"},
{"wle_s10_player_round_wk5_18", "Digital Doom"},

{"wle_s10_bt_round_001", "Push Ups"},
{"wle_s10_bt_round_002", "Heave & Haul"},
{"wle_s10_bt_round_003", "Stepping Stones"},
{"wle_s10_bt_round_004", "Double Trouble"},

{"wle_mrs_bagel_opener_1", "Tunnel of Love"},
{"wle_mrs_bagel_opener_2", "Pink Parade"},
{"wle_mrs_bagel_opener_3", "Prideful Path"},
Expand Down Expand Up @@ -3048,6 +3068,11 @@ public static class Multilingual {
{"wle_s10_player_round_wk5_17", "Big Bookcase"},
{"wle_s10_player_round_wk5_18", "Digital Doom"},

{"wle_s10_bt_round_001", "Push Ups"},
{"wle_s10_bt_round_002", "Heave & Haul"},
{"wle_s10_bt_round_003", "Stepping Stones"},
{"wle_s10_bt_round_004", "Double Trouble"},

{"wle_mrs_bagel_opener_1", "Tunnel of Love"},
{"wle_mrs_bagel_opener_2", "Pink Parade"},
{"wle_mrs_bagel_opener_3", "Prideful Path"},
Expand Down Expand Up @@ -3447,6 +3472,11 @@ public static class Multilingual {
{"show_wle_s10_wk07_srs_05", "Sky High Run"},
{"show_wle_s10_wk07_srs_06", "Full Speed Sliding (FSS) - Jelly Road"},

{"show_wle_s10_wk08_srs_01", "Push Ups"},
{"show_wle_s10_wk08_srs_02", "Heave & Haul"},
{"show_wle_s10_wk08_srs_03", "Stepping Stones"},
{"show_wle_s10_wk08_srs_04", "Double Trouble"},

{"wle_mrs_bagel", "Rainbow Rally"},

{"slime_survivors", "Slime Survivors"},
Expand Down Expand Up @@ -3878,6 +3908,11 @@ public static class Multilingual {
{"show_wle_s10_wk07_srs_05", "Sky High Run"},
{"show_wle_s10_wk07_srs_06", "Full Speed Sliding (FSS) - Jelly Road"},

{"show_wle_s10_wk08_srs_01", "Push Ups"},
{"show_wle_s10_wk08_srs_02", "Heave & Haul"},
{"show_wle_s10_wk08_srs_03", "Stepping Stones"},
{"show_wle_s10_wk08_srs_04", "Double Trouble"},

{"wle_mrs_bagel", "Festival Arc-en-ciel"},

{"slime_survivors", "Survivants de la gélatine"},
Expand Down Expand Up @@ -4309,6 +4344,11 @@ public static class Multilingual {
{"show_wle_s10_wk07_srs_05", "Sky High Run"},
{"show_wle_s10_wk07_srs_06", "Full Speed Sliding (FSS) - Jelly Road"},

{"show_wle_s10_wk08_srs_01", "Push Ups"},
{"show_wle_s10_wk08_srs_02", "Heave & Haul"},
{"show_wle_s10_wk08_srs_03", "Stepping Stones"},
{"show_wle_s10_wk08_srs_04", "Double Trouble"},

{"wle_mrs_bagel", "레인보우 랠리"},

{"slime_survivors", "슬라임 서바이벌"},
Expand Down Expand Up @@ -4740,6 +4780,11 @@ public static class Multilingual {
{"show_wle_s10_wk07_srs_05", "Sky High Run"},
{"show_wle_s10_wk07_srs_06", "Full Speed Sliding (FSS) - Jelly Road"},

{"show_wle_s10_wk08_srs_01", "Push Ups"},
{"show_wle_s10_wk08_srs_02", "Heave & Haul"},
{"show_wle_s10_wk08_srs_03", "Stepping Stones"},
{"show_wle_s10_wk08_srs_04", "Double Trouble"},

{"wle_mrs_bagel", "レインボーラリー"},

{"slime_survivors", "スライム・サバイバー"},
Expand Down Expand Up @@ -5171,6 +5216,11 @@ public static class Multilingual {
{"show_wle_s10_wk07_srs_05", "Sky High Run"},
{"show_wle_s10_wk07_srs_06", "Full Speed Sliding (FSS) - Jelly Road"},

{"show_wle_s10_wk08_srs_01", "Push Ups"},
{"show_wle_s10_wk08_srs_02", "Heave & Haul"},
{"show_wle_s10_wk08_srs_03", "Stepping Stones"},
{"show_wle_s10_wk08_srs_04", "Double Trouble"},

{"wle_mrs_bagel", "彩虹拉力赛"},

{"slime_survivors", "黏液求生"},
Expand Down
4 changes: 2 additions & 2 deletions Views/Overlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ private Bitmap RecreateBackground() {
background = Properties.Resources.background;
} else {
if (overlayCustomized) {
if (!this.BackgroundResourceName.Equals(this.backgroundResourceNameCache)) {
if (!this.BackgroundResourceName.Equals(this.backgroundResourceNameCache) && File.Exists($"Overlay/{this.BackgroundResourceName}.png")) {
this.customizedBackground = new Bitmap($"Overlay/{this.BackgroundResourceName}.png");
this.backgroundResourceNameCache = this.BackgroundResourceName;
}
Expand All @@ -1664,7 +1664,7 @@ private Bitmap RecreateBackground() {
tab = Properties.Resources.tab_unselected;
} else {
if (overlayCustomized) {
if (!this.TabResourceName.Equals(this.tabResourceNameCache)) {
if (!this.TabResourceName.Equals(this.tabResourceNameCache) && File.Exists($"Overlay/{this.TabResourceName}.png")) {
this.customizedTab = new Bitmap($"Overlay/{this.TabResourceName}.png");
this.tabResourceNameCache = this.TabResourceName;
}
Expand Down
23 changes: 22 additions & 1 deletion Views/Stats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,27 @@ private void UpdateDatabaseVersion() {
this.CurrentSettings.Version = 41;
this.SaveUserSettings();
}

if (this.CurrentSettings.Version == 41) {
this.AllStats.AddRange(this.RoundDetails.FindAll());
this.StatsDB.BeginTrans();
this.CurrentSettings.NotifyServerConnected = false;
for (int i = this.AllStats.Count - 1; i >= 0; i--) {
RoundInfo info = this.AllStats[i];
if ("show_wle_s10_wk08_srs_01".Equals(info.ShowNameId, StringComparison.OrdinalIgnoreCase) ||
"show_wle_s10_wk08_srs_02".Equals(info.ShowNameId, StringComparison.OrdinalIgnoreCase) ||
"show_wle_s10_wk08_srs_03".Equals(info.ShowNameId, StringComparison.OrdinalIgnoreCase) ||
"show_wle_s10_wk08_srs_04".Equals(info.ShowNameId, StringComparison.OrdinalIgnoreCase))
{
info.IsFinal = true;
this.RoundDetails.Update(info);
}
}
this.StatsDB.Commit();
this.AllStats.Clear();
this.CurrentSettings.Version = 42;
this.SaveUserSettings();
}
}
private UserSettings GetDefaultSettings() {
return new UserSettings {
Expand Down Expand Up @@ -1800,7 +1821,7 @@ private UserSettings GetDefaultSettings() {
UpdatedDateFormat = true,
WinPerDayGraphStyle = 0,
Visible = true,
Version = 41
Version = 42
};
}
private void UpdateHoopsieLegends() {
Expand Down

0 comments on commit 390c7a5

Please sign in to comment.