Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move clicked-on legion to top of Z-order.

  • Loading branch information...
commit 019630d100150f3e7da9ccf38a2b45c77cdeb263 1 parent 57dbb4e
David Ripton authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 slugathon/gui/GUIMasterBoard.py
5 slugathon/gui/GUIMasterBoard.py
View
@@ -3,7 +3,6 @@
__copyright__ = "Copyright (c) 2003-2012 David Ripton"
__license__ = "GNU GPL v2"
-# TODO When we click on a marker, move it to the top of the z-order
import math
from sys import maxint
@@ -471,6 +470,10 @@ def clicked_on_marker(self, area, event, marker):
ShowLegion.ShowLegion(self.username, marker.legion, True, self)
else: # left button
+ # Move to top of Z-order
+ self.markers.remove(marker)
+ self.markers.insert(0, marker)
+
phase = self.game.phase
if phase == Phase.SPLIT:
legion = marker.legion
Please sign in to comment.
Something went wrong with that request. Please try again.