pos=(50, SCREEN_SIZE[1] - 40)),
]
+ def exit(self, gamestate):
+ self._unset_cursor()
+
@debug_timer("day.render")
def render(self, surface, gamestate):
surface.fill((0, 0, 155))
self._lights.render_fittings(surface)
for tool in self._tools:
tool.render(surface)
+ self._draw_cursor(surface)
def event(self, ev, gamestate):
if ev.type == pgl.KEYDOWN:
for tool in self._tools:
if tool.pressed(ev):
print 'tool', tool.name
+ self._set_cursor(tool.name)
return
# Not tool, so check lights
self._lights.toggle_nearest(ev.pos, surfpos=True)