Skip to content

Commit

Permalink
Fix for HDT update.
Browse files Browse the repository at this point in the history
  • Loading branch information
rembound committed Feb 18, 2016
1 parent 8dc0c29 commit dca6db1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ArenaWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<VisualBrush Visual="{StaticResource appbar_heart}" />
</Rectangle.Fill>
</Rectangle>
<TextBlock Margin="4" VerticalAlignment="Center" Text="About" />
<TextBlock Margin="4" VerticalAlignment="Center" Text="Support" />
</StackPanel>
</Button>
</controls:WindowCommands>
Expand Down
17 changes: 14 additions & 3 deletions Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public string Author

public Version Version
{
get { return new Version("0.6.6"); }
get { return new Version("0.6.7"); }
}

public MenuItem MenuItem
Expand Down Expand Up @@ -689,7 +689,6 @@ private void SaveDeck(bool autosave)
{
// Save deck
Deck deck = new Deck();
deck.Name = arenadata.deckname;
deck.IsArenaDeck = true;

if (autosave)
Expand Down Expand Up @@ -728,6 +727,9 @@ private void SaveDeck(bool autosave)
// Add tag
deck.Tags.Add("Arena");

// Deck name based on class
deck.Name = Helper.ParseDeckNameTemplate(Config.Instance.ArenaDeckNameTemplate, deck);

if (!autosave)
{
// Set the new deck
Expand Down Expand Up @@ -979,7 +981,16 @@ public async void OnUpdate()
// With manual clicks or logreader, we don't need the focus
needsfocus = false;
}
fullcapture = Helper.CaptureHearthstone(new Point(0, 0), hsrect.Width, hsrect.Height, default(IntPtr), needsfocus);
//fullcapture = Helper.CaptureHearthstone(new Point(0, 0), hsrect.Width, hsrect.Height, default(IntPtr), needsfocus);
//fullcapture = await Helper.CaptureHearthstoneAsync(new Point(0, 0), hsrect.Width, hsrect.Height, default(IntPtr), needsfocus);
if (needsfocus && !User32.IsHearthstoneInForeground())
{
fullcapture = null;
}
else
{
fullcapture = Helper.CaptureScreen(User32.GetHearthstoneWindow(), new Point(0, 0), hsrect.Width, hsrect.Height);
}
}
else
{
Expand Down

0 comments on commit dca6db1

Please sign in to comment.