def __init__(self, source_content_dir, destination_content_dir, template_dir, language ): if not source_content_dir: raise ValueError('source_content_dir must not be None!') if not destination_content_dir: raise ValueError('destination_content_dir must not be None!') if not template_dir: raise ValueError('template_dir must not be None!') self.source_content_dir = source_content_dir self.destination_content_dir = destination_content_dir self.theme_dir = os.path.join(source_content_dir, 'theme') self.template_dir = template_dir self.language = language print('--------- [Generator] Getting templates') self.templates = self.get_templates() print('[Generator] Acquired %s templates' % (str(len(self.templates)))) print('--------- [Generator] Getting css styles') self.styles = self.get_styles() print('[Generator] Acquired %s css styles' % (str(len(self.styles)))) print('--------- [Generator] Getting categories') self.root_category = Category(self.source_content_dir) print('--------- [Generator] Getting navigation') Navigation(self.root_category) print('--------- [Generator] Rendering') self.render()
tracker.adjustxp() # print("Going into Sleep till 30 mins up?") # print(str(f.rt_to_seconds()) + " < end") if rt > end: f.do_rebirth() time.sleep(1) rt = f.rt_to_seconds() return w = Window() i = Inputs() nav = Navigation() feature = Features() #ngui = NGUI(nav) Window.x, Window.y = i.pixel_search(coords.TOP_LEFT_COLOR, 0, 0, 400, 600) nav.menu("inventory") u = UpgradeEM(37500, 37500, 1, 1, 3) r3unlocked = False print(f"Top left found at: {w.x}, {w.y}") tracker = Tracker(30) while True: # main loop speedrun(30, feature)