Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qubqub committed Nov 11, 2023
1 parent e830ba8 commit e190f1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Entities/Leaderboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public override RankInfo Read(ref Utf8JsonReader reader, Type typeToConvert, Jso
break;
case "user":
if (reader.TokenType == JsonTokenType.String) {
recordHolder.onlineServiceType = Multilingual.GetWord("leaderboard_grid_anonymous");
// recordHolder.onlineServiceType = Multilingual.GetWord("leaderboard_grid_anonymous");
recordHolder.onlineServiceId = reader.GetString();
recordHolder.onlineServiceNickname = Multilingual.GetWord("leaderboard_grid_anonymous");
recordHolder.onlineServiceNickname = $"👻 {Multilingual.GetWord("leaderboard_grid_anonymous")}";
} else if (reader.TokenType == JsonTokenType.StartObject) {
while (reader.Read()) {
if (reader.TokenType == JsonTokenType.EndObject) {
Expand Down
8 changes: 4 additions & 4 deletions Views/LeaderboardDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ private void LeaderboardDisplay_Shown(object sender, EventArgs e) {
}

private void LeaderboardDisplay_Resize(object sender, EventArgs e) {
this.mpsSpinner.Location = new Point((this.ClientSize.Width - this.mpsSpinner.Width) / 2, (this.ClientSize.Height - this.mpsSpinner.Height) / 2);
this.lblSearchDescription.Location = new Point((this.ClientSize.Width - this.lblSearchDescription.Width) / 2, (this.ClientSize.Height - this.lblSearchDescription.Height) / 2);
this.mpsSpinner.Location = new Point((this.ClientSize.Width - this.mpsSpinner.Width) / 2, (this.ClientSize.Height - this.mpsSpinner.Height) / 2 + 20);
this.lblSearchDescription.Location = new Point((this.ClientSize.Width - this.lblSearchDescription.Width) / 2, (this.ClientSize.Height - this.lblSearchDescription.Height) / 2 + 20);
}

private void SetTheme(MetroThemeStyle theme) {
Expand All @@ -50,10 +50,10 @@ private void SetTheme(MetroThemeStyle theme) {
this.lblTotalPlayers.Location = new Point(this.cboRoundList.Right + 15, this.cboRoundList.Location.Y);
this.lblSearchDescription.Theme = theme;
this.lblSearchDescription.Text = $"{Multilingual.GetWord("leaderboard_choose_a_round")}";
this.lblSearchDescription.Location = new Point((this.ClientSize.Width - this.lblSearchDescription.Width) / 2, (this.ClientSize.Height - this.lblSearchDescription.Height) / 2);
this.lblSearchDescription.Location = new Point((this.ClientSize.Width - this.lblSearchDescription.Width) / 2, (this.ClientSize.Height - this.lblSearchDescription.Height) / 2 + 20);
this.mpsSpinner.BackColor = theme == MetroThemeStyle.Light ? Color.White : Color.FromArgb(17, 17, 17);
// this.mpsSpinner.Location = new Point(this.cboRoundList.Right + 15, this.cboRoundList.Location.Y);
this.mpsSpinner.Location = new Point((this.ClientSize.Width - this.mpsSpinner.Width) / 2, (this.ClientSize.Height - this.mpsSpinner.Height) / 2);
this.mpsSpinner.Location = new Point((this.ClientSize.Width - this.mpsSpinner.Width) / 2, (this.ClientSize.Height - this.mpsSpinner.Height) / 2 + 20);
this.cboRoundList.Theme = theme;

this.gridDetails.Theme = theme;
Expand Down

0 comments on commit e190f1e

Please sign in to comment.