Skip to content

Commit effaa8e

Browse files
committed
Do not use deprecated classes and methods. #38 #36
1 parent 5662aec commit effaa8e

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Hearthstone Collection Tracker/HearthstoneCollectionTrackerPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private void HandleHearthstoneDeckUpdated(Deck deck)
8484
}
8585
}
8686
alertSB.Append("You can disable this alert in Collection Tracker plugin settings.");
87-
Hearthstone_Deck_Tracker.Helper.MainWindow.ShowMessageAsync("Missing cards in collection", alertSB.ToString());
87+
Hearthstone_Deck_Tracker.Core.MainWindow.ShowMessageAsync("Missing cards in collection", alertSB.ToString());
8888
}
8989
}
9090

@@ -156,7 +156,7 @@ public string Author
156156
get { return "Vasilev Konstantin"; }
157157
}
158158

159-
public static readonly Version PluginVersion = new Version(0, 2, 2);
159+
public static readonly Version PluginVersion = new Version(0, 2, 3);
160160

161161
public Version Version
162162
{

Hearthstone Collection Tracker/Internal/DataUpdaters/DataUpdaterV02.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void PerformUpdate()
3232
if (File.Exists(oldCollectionFilePath))
3333
{
3434
List<BasicSetCollectionInfo> oldSetInfo = Hearthstone_Deck_Tracker.XmlManager<List<BasicSetCollectionInfo>>.Load(oldCollectionFilePath);
35-
var cards = Hearthstone_Deck_Tracker.Hearthstone.GameV2.GetActualCards();
35+
var cards = Hearthstone_Deck_Tracker.Hearthstone.Database.GetActualCards();
3636
foreach (var set in oldSetInfo)
3737
{
3838
foreach (var card in set.Cards)

Hearthstone Collection Tracker/Internal/DataUpdaters/DataUpdaterV022.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void PerformUpdate()
7171
}
7272

7373
// remove more than 1 copy of legendary
74-
var gameCards = Hearthstone_Deck_Tracker.Hearthstone.GameV2.GetActualCards();
74+
var gameCards = Hearthstone_Deck_Tracker.Hearthstone.Database.GetActualCards();
7575
foreach(var set in setsInfo)
7676
{
7777
foreach(var card in set.Cards)

Hearthstone Collection Tracker/Internal/Importing/HearthstoneImporter.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ public async Task<List<BasicSetCollectionInfo>> Import(string importingSet)
114114

115115
private void HideHDTOverlay()
116116
{
117-
Helper.MainWindow.Overlay.ForceHidden = true;
118-
Helper.MainWindow.Overlay.UpdatePosition();
117+
Hearthstone_Deck_Tracker.API.Core.OverlayWindow.ForceHidden = true;
118+
Hearthstone_Deck_Tracker.API.Core.OverlayWindow.UpdatePosition();
119119
}
120120

121121
private void ShowHDTOverlay()
122122
{
123-
Helper.MainWindow.Overlay.ForceHidden = false;
124-
Helper.MainWindow.Overlay.UpdatePosition();
123+
Hearthstone_Deck_Tracker.API.Core.OverlayWindow.ForceHidden = false;
124+
Hearthstone_Deck_Tracker.API.Core.OverlayWindow.UpdatePosition();
125125
}
126126

127127
private static double GetXPos(double left, int width, double ratio)

Hearthstone Collection Tracker/SetCardsManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static List<BasicSetCollectionInfo> LoadSetsInfo(string collectionStorage
2020
var setInfos = XmlManager<List<BasicSetCollectionInfo>>.Load(collectionStoragePath);
2121
if (setInfos != null)
2222
{
23-
var cards = GameV2.GetActualCards();
23+
var cards = Database.GetActualCards();
2424
collection = setInfos;
2525
foreach (var setCollection in collection)
2626
{
@@ -42,7 +42,7 @@ public static List<BasicSetCollectionInfo> LoadSetsInfo(string collectionStorage
4242

4343
public static List<BasicSetCollectionInfo> CreateEmptyCollection()
4444
{
45-
var cards = GameV2.GetActualCards();
45+
var cards = Database.GetActualCards();
4646
var setCards = CollectableSets.Select(set => new BasicSetCollectionInfo()
4747
{
4848
SetName = set,

0 commit comments

Comments
 (0)