def create_tools(self, gamestate):
tools = []
- x, y, step = 50, SCREEN_SIZE[1] - 40, 50
+ x, y, step = 0, SCREEN_SIZE[1] - 40, 50
+
+ tools.append(ImageButton(
+ '32', 'default_cursor.png', name='reset tool', pos=(x, y)))
+ x += step
tools.append(ImageButton('32', 'seed.png', name='seed', pos=(x, y)))
x += step
tools.append(tool)
x += step
+ # TODO: will also add back to menu button
tools.append(ImageButton(
- '32', 'default_cursor.png', name='reset tool', pos=(x, y)))
+ '32', 'night.png', name='start night', pos=(SCREEN_SIZE[0] - 50, y)))
return tools
def exit(self, gamestate):
self._unset_cursor()
self._tool = None
self._clear_light_toolbar()
+ elif tool.name == 'start night':
+ from .night import NightScene
+ SceneChangeEvent.post(scene=NightScene())
else:
self._tool = tool
if self._tool.name == 'seed':