|
@@ -19,8 +19,8 @@ end_of_log = cv2.imread('templates/end_of_log.jpg')
|
|
|
end_of_log2 = cv2.imread('templates/end_of_log2.jpg')
|
|
end_of_log2 = cv2.imread('templates/end_of_log2.jpg')
|
|
|
|
|
|
|
|
# cursor positions
|
|
# cursor positions
|
|
|
-fight_scroll_top = "2494 626"
|
|
|
|
|
-fight_scroll_bottom = "2200 1520"
|
|
|
|
|
|
|
+fight_scroll_top = "2200 626"
|
|
|
|
|
+fight_scroll_bottom = "2200 1500"
|
|
|
titan_fight = "1400 860"
|
|
titan_fight = "1400 860"
|
|
|
damage_taken = "450 850"
|
|
damage_taken = "450 850"
|
|
|
close_details = "2175 450"
|
|
close_details = "2175 450"
|
|
@@ -193,6 +193,7 @@ def take_fight_screenshots():
|
|
|
tap(damage_taken)
|
|
tap(damage_taken)
|
|
|
save_screenshot()
|
|
save_screenshot()
|
|
|
tap_button(close_fight)
|
|
tap_button(close_fight)
|
|
|
|
|
+ time.sleep(1)
|
|
|
|
|
|
|
|
def process_war_log():
|
|
def process_war_log():
|
|
|
buttons = find_templates(fight_button)
|
|
buttons = find_templates(fight_button)
|
|
@@ -213,7 +214,6 @@ def process_war_log():
|
|
|
take_fight_screenshots()
|
|
take_fight_screenshots()
|
|
|
tap_button(close_sub_fights)
|
|
tap_button(close_sub_fights)
|
|
|
|
|
|
|
|
- find_max_y_pair(buttons)
|
|
|
|
|
swipe(find_max_y_pair(buttons), fight_scroll_top)
|
|
swipe(find_max_y_pair(buttons), fight_scroll_top)
|
|
|
|
|
|
|
|
# start
|
|
# start
|