Skip to content

Commit

Permalink
add API.GameEvents.OnMouseOverOff
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Zeier committed Feb 21, 2016
1 parent 8342098 commit ed3aa02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Hearthstone Deck Tracker/API/GameEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public class GameEvents
public static readonly ActionList OnGameTied = new ActionList();
public static readonly ActionList OnInMenu = new ActionList();
public static readonly ActionList<ActivePlayer> OnTurnStart = new ActionList<ActivePlayer>();
public static readonly ActionList OnMouseOverOff = new ActionList();

#endregion
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ private void DetectMouseOver(List<CardEntity> playerBoard, List<CardEntity> oppB
return;
}
}
if(_currentMouseOverTarget != null)
GameEvents.OnMouseOverOff.Execute();
_currentMouseOverTarget = null;
FlavorTextVisibility = Visibility.Collapsed;
}
Expand Down

0 comments on commit ed3aa02

Please sign in to comment.