Skip to content

Commit

Permalink
Fixes SelectionTracker plugin with new handler names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Hadoux committed Apr 23, 2014
1 parent d275182 commit 214cd7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sc2reader/engine/plugins/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ def handleSelectionEvent(self, event, replay):
if error:
event.player.selection_errors += 1

def handleGetFromHotkeyEvent(self, event, replay):
def handleGetControlGroupEvent(self, event, replay):
selection = event.player.selection[event.control_group]
new_selection, error = self._deselect(selection, event.mask_type, event.mask_data)
event.player.selection[10] = new_selection
if error:
event.player.selection_errors += 1

def handleSetToHotkeyEvent(self, event, replay):
def handleSetControlGroupEvent(self, event, replay):
event.player.selection[event.control_group] = event.player.selection[10]

def handleAddToHotkeyEvent(self, event, replay):
def handleAddToControlGroupEvent(self, event, replay):
selection = event.player.selection[event.control_group]
new_selection, error = self._deselect(selection, event.mask_type, event.mask_data)
new_selection = self._select(new_selection, event.player.selection[10])
Expand Down

0 comments on commit 214cd7c

Please sign in to comment.