Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions SpellSchoolCounter/SpellSchoolCounter/SpellSchoolCounter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ internal class SpellSchoolCounter
private List<SpellSchool> _schoolsPlayed = new List<SpellSchool>();
private ObservableCollection<Card> _playedList = new ObservableCollection<Card>();

private static readonly List<string> CardNamesThatCareAboutSchools = new List<string>
{
"Multicaster", "Coral Keeper", "Magister Dawngrasp"
};

public SpellSchoolCounter(SchoolCountWidget playerList)
{
_cardListWidget = playerList;
Expand All @@ -36,7 +31,7 @@ internal void GameStart()
{
_schoolsPlayed = new List<SpellSchool>();
_playedList = new ObservableCollection<Card>();
_cardListWidget.Hide();
_cardListWidget.Show();
_cardListWidget.Update(_playedList);
}

Expand All @@ -58,17 +53,5 @@ internal void InMenu()
_cardListWidget.Hide();
}
}

public void PlayerHandMouseOver(Card hoveredCard)
{
if (CardNamesThatCareAboutSchools.Contains(hoveredCard.Name))
{
_cardListWidget.Show();
}
else
{
_cardListWidget.Hide();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<HintPath>..\lib\HearthDb.dll</HintPath>
</Reference>
<Reference Include="HearthstoneDeckTracker">
<HintPath>..\..\..\Hearthstone-Deck-Tracker\Hearthstone Deck Tracker\bin\x86\Debug\HearthstoneDeckTracker.exe</HintPath>
<HintPath>..\..\..\..\..\AppData\Local\HearthstoneDeckTracker\app-1.21.0\HearthstoneDeckTracker.exe</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
Expand All @@ -57,13 +57,13 @@
</ItemGroup>
<ItemGroup>
<Page Include="SchoolCounterWidget.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy "$(TargetDir)$(ProjectName).*" "C:\Users\ian\AppData\Roaming\HearthstoneDeckTracker\Plugins"</PostBuildEvent>
<PostBuildEvent>copy "$(TargetDir)$(ProjectName).*" "C:\Users\leek\AppData\Roaming\HearthstoneDeckTracker\Plugins\SpellSchoolCounter"</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public void OnLoad()

SpellSchoolCounter counter = new SpellSchoolCounter(_widget);

GameEvents.OnPlayerHandMouseOver.Add(counter.PlayerHandMouseOver);
GameEvents.OnGameStart.Add(counter.GameStart);
GameEvents.OnInMenu.Add(counter.InMenu);
GameEvents.OnPlayerPlay.Add(counter.OnPlayerPlay);
Expand All @@ -63,7 +62,7 @@ public void OnUpdate()

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