def world_select_select(entry): key = entry['key'] value = entry['values'][entry['value']] if key.count('World'): worldgen.load_world(entry['world']) switch_to_main_menu()
SETTINGS['draw z-levels below'] = True SETTINGS['draw z-levels above'] = True life.initiate_life('human') life.initiate_life('dog') life.initiate_life('night_terror') items.initiate_all_items() SETTINGS['running'] = 3 if '--menu' in sys.argv: SETTINGS['running'] = 1 elif '--quick' in sys.argv: for world in profiles.get_worlds(): worldgen.load_world(world) break if SETTINGS['controlling']: SETTINGS['running'] = 2 gfx.prepare_map_views() else: logging.debug('No active player found. Going back to menu.') SETTINGS['running'] = 1 if '--debug' in sys.argv: _debug_host = network.DebugHost() _debug_host.start() WORLD_INFO['debug'] = _debug_host if '--profile' in sys.argv:
SETTINGS["draw z-levels below"] = True SETTINGS["draw z-levels above"] = True life.initiate_life("human") life.initiate_life("dog") life.initiate_life("night_terror") items.initiate_all_items() SETTINGS["running"] = 3 if "--menu" in sys.argv: SETTINGS["running"] = 1 elif "--quick" in sys.argv: for world in profiles.get_worlds(): worldgen.load_world(world) break if SETTINGS["controlling"]: SETTINGS["running"] = 2 gfx.prepare_map_views() else: logging.debug("No active player found. Going back to menu.") SETTINGS["running"] = 1 if "--debug" in sys.argv: _debug_host = network.DebugHost() _debug_host.start() WORLD_INFO["debug"] = _debug_host if "--profile" in sys.argv: