Shrub texture:
https://commons.wikimedia.org/wiki/File:Gew%C3%B6hnlicher_Buchsbaum,_Buxus_sempervirens_.JPG
+
+Pointer image: data/images/32/default_cursor.png
+Based on mouse_pointer_wolfram_es_01.png
+(image cropped and shrunk to 32x32)
+From OpenClipArt: http://www.openclipart.org
+LICENSE: Public Domain
self._tools = [
ImageButton('32', 'seed.png', name='seed',
pos=(50, SCREEN_SIZE[1] - 40)),
+ ImageButton('32', 'default_cursor.png', name='reset tool',
+ pos=(SCREEN_SIZE[0] - 50, SCREEN_SIZE[1] - 40)),
]
def exit(self, gamestate):
for tool in self._tools:
if tool.pressed(ev):
print 'tool', tool.name
- self._set_cursor(tool.name)
+ if tool.name == 'reset tool':
+ self._unset_cursor()
+ else:
+ self._set_cursor(tool.name)
return
# Not tool, so check lights
self._lights.toggle_nearest(ev.pos, surfpos=True)