Skip to content

Commit

Permalink
v1.1.3
Browse files Browse the repository at this point in the history
v1.1.3
  • Loading branch information
IBM5100o committed Jun 23, 2024
1 parent f5133e4 commit b8ffef1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
12 changes: 9 additions & 3 deletions HDT_BGrank/BGrank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using HearthMirror;
using Hearthstone_Deck_Tracker;
using Hearthstone_Deck_Tracker.Enums;
using Hearthstone_Deck_Tracker.Utility.Logging;

namespace HDT_BGrank
{
Expand Down Expand Up @@ -174,8 +175,9 @@ private async Task GetLeaderBoard()
}
}
}
catch (Exception)
catch (Exception ex)
{
Log.Error(ex);
if (num_tries < max_tries) { await Task.Delay(10000); }
}
}
Expand All @@ -198,8 +200,9 @@ private async Task GetLeaderBoard()
if (leaderBoard.Count != 0) { leaderBoardReady = true; }
else { failToGetData = true; }
}
catch (Exception)
catch (Exception ex)
{
Log.Error(ex);
failToGetData = true;
}
}
Expand Down Expand Up @@ -265,7 +268,10 @@ private void GetOppNames()
namesReady = true;
}
}
catch (Exception) { }
catch (Exception ex)
{
Log.Error(ex);
}
}

// The code below is from: https://github.com/Zero-to-Heroes/unity-spy-.net4.5
Expand Down
2 changes: 1 addition & 1 deletion HDT_BGrank/BGrankPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void CreateMenuItem()

public Version Version
{
get { return new Version(1, 1, 2); }
get { return new Version(1, 1, 3); }
}

}
Expand Down
4 changes: 2 additions & 2 deletions HDT_BGrank/LeaderBoardPanel.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ public LeaderBoardPanel()

public void OnUpdate(BGrank rank)
{
GridTransform.ScaleX = Core.OverlayWindow.Width / 1920.0;
GridTransform.ScaleY = Core.OverlayWindow.Height / 1080.0;
if (Core.Game.IsInMenu)
{
Visibility = Visibility.Hidden;
Expand All @@ -36,6 +34,8 @@ public void OnUpdate(BGrank rank)
{
int i = 0;
string allText = "\n";
GridTransform.ScaleX = Core.OverlayWindow.Width / 1920.0;
GridTransform.ScaleY = Core.OverlayWindow.Height / 1080.0;
if (rank.failToGetData) { allText += "No data now"; }
else
{
Expand Down
4 changes: 2 additions & 2 deletions HDT_BGrank/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.2")]
[assembly: AssemblyFileVersion("1.1.2")]
[assembly: AssemblyVersion("1.1.3")]
[assembly: AssemblyFileVersion("1.1.3")]

0 comments on commit b8ffef1

Please sign in to comment.