diff --git a/captures/buttons/tab_tft_unselected_3.png b/captures/buttons/tab_tft_unselected_3.png new file mode 100644 index 0000000..fb5a529 Binary files /dev/null and b/captures/buttons/tab_tft_unselected_3.png differ diff --git a/captures/buttons/tab_tft_unselected_highlighted.png b/captures/buttons/tab_tft_unselected_highlighted.png new file mode 100644 index 0000000..c473703 Binary files /dev/null and b/captures/buttons/tab_tft_unselected_highlighted.png differ diff --git a/captures/messages/give_feedback_smaller.png b/captures/messages/give_feedback_smaller.png new file mode 100644 index 0000000..1982361 Binary files /dev/null and b/captures/messages/give_feedback_smaller.png differ diff --git a/constants.py b/constants.py index ecaddbd..e8dc331 100644 --- a/constants.py +++ b/constants.py @@ -27,8 +27,9 @@ "unselected": { "1": "captures/buttons/tab_tft_unselected_1.png", "2": "captures/buttons/tab_tft_unselected_2.png", + "3": "captures/buttons/tab_tft_unselected_3.png", + "4": "captures/buttons/tab_tft_unselected_highlighted.png", }, - "selected": "captures/buttons/tab_tft_selected.png", "subtab_home": "captures/buttons/tft_subtab_home.png" } }, @@ -68,7 +69,10 @@ }, "launcher_play": "captures/buttons/launcher_play.png", "messages": { - "give_feedback": "captures/messages/give_feedback.png", + "give_feedback": { + "full": "captures/messages/give_feedback.png", + "smaller": "captures/messages/give_feedback_smaller.png", + }, "session_expired": "captures/messages/session_expired.png", "failed_to_reconnect": "captures/messages/failed_to_reconnect.png", "login_servers_down": "captures/messages/login_servers_down.png", @@ -189,4 +193,11 @@ unselected_tft_tabs = [ CONSTANTS["client"]["tabs"]["tft"]["unselected"]["1"], CONSTANTS["client"]["tabs"]["tft"]["unselected"]["2"], + CONSTANTS["client"]["tabs"]["tft"]["unselected"]["3"], + CONSTANTS["client"]["tabs"]["tft"]["unselected"]["4"], +] + +give_feedback = [ + CONSTANTS["client"]["messages"]["give_feedback"]["full"], + CONSTANTS["client"]["messages"]["give_feedback"]["smaller"], ] diff --git a/tft.py b/tft.py index 05e325d..6cd14b1 100644 --- a/tft.py +++ b/tft.py @@ -23,6 +23,7 @@ from constants import CONSTANTS from constants import exit_now_images from constants import find_match_images +from constants import give_feedback from constants import key_fragment_images from constants import skip_waiting_for_stats_images from constants import unselected_tft_tabs @@ -413,9 +414,9 @@ def check_if_client_popup() -> bool: Returns: bool: True if one is detected, False otherwise. """ - if onscreen(CONSTANTS["client"]["messages"]["give_feedback"]): + if onscreen_multiple_any(give_feedback) : logging.info("Client survey/feedback detected, clicking on (opening in browser) and continuing!") - click_to_middle(CONSTANTS["client"]["messages"]["give_feedback"]) + onscreen_multiple_any(give_feedback) time.sleep(2) return True return False