2020-04-24 07:26:11 +00:00
|
|
|
from module.handler.assets import *
|
|
|
|
from module.handler.popup import PopupHandler
|
|
|
|
|
|
|
|
|
|
|
|
class StoryHandler(PopupHandler):
|
|
|
|
def story_skip(self):
|
2020-04-30 15:40:29 +00:00
|
|
|
if self.handle_popup_confirm():
|
|
|
|
return True
|
2020-04-24 07:26:11 +00:00
|
|
|
if self.appear_then_click(STORY_SKIP, offset=True, interval=2):
|
|
|
|
return True
|
2020-04-30 15:40:29 +00:00
|
|
|
if self.appear(STORY_LETTER_BLACK) and self.appear_then_click(STORY_LETTERS_ONLY, offset=True, interval=2):
|
2020-04-24 07:26:11 +00:00
|
|
|
return True
|
2020-05-04 18:54:23 +00:00
|
|
|
if self.appear_then_click(STORY_CHOOSE, offset=True, interval=2):
|
2020-04-24 07:26:11 +00:00
|
|
|
return True
|
2020-05-04 18:54:23 +00:00
|
|
|
if self.appear_then_click(STORY_CHOOSE_2, offset=True, interval=2):
|
2020-04-24 07:26:11 +00:00
|
|
|
return True
|
|
|
|
|
|
|
|
return False
|
|
|
|
|
|
|
|
def handle_story_skip(self):
|
|
|
|
if not self.config.ENABLE_MAP_CLEAR_MODE:
|
|
|
|
return False
|
|
|
|
|
|
|
|
return self.story_skip()
|