self._lights = LightManager(self._space, gamestate)
# Toolbar
self._tools = [
- ImageButton('32', 'seed.png', pos=(50, SCREEN_SIZE[1] - 40)),
+ ImageButton('32', 'seed.png', name='seed',
+ pos=(50, SCREEN_SIZE[1] - 40)),
]
@debug_timer("day.render")
# Check tools
for tool in self._tools:
if tool.pressed(ev):
- print 'tool'
+ print 'tool', tool.name
return
# Not tool, so check lights
self._lights.toggle_nearest(ev.pos, surfpos=True)