changeset 184:e003b994c48b

Output coordinates from the level editor, to help place things
author Stefano Rivera <stefano@rivera.za.net>
date Tue, 03 Sep 2013 19:31:28 +0200
parents 7ffb43164042
children dfacd08b8566
files tools/area_editor.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/area_editor.py	Tue Sep 03 19:09:07 2013 +0200
+++ b/tools/area_editor.py	Tue Sep 03 19:31:28 2013 +0200
@@ -232,6 +232,8 @@
             self.invalidate()
 
     def mouse_down(self, ev):
+        if ev.button == 1:
+            print "Click: %r" % (self._level_coordinates(ev.pos),)
         if ev.button == 4:  # Scroll up
             self._move_view((0, -10))
         elif ev.button == 5:  # Scroll down