diff --git a/borealis_overlay.py b/borealis_overlay.py index 8a39d46..74b9d8f 100644 --- a/borealis_overlay.py +++ b/borealis_overlay.py @@ -44,9 +44,8 @@ GREEN_HEADER_STYLE = "bold green" BEEP_INTERVAL_SECONDS = 1.0 # Only beep once every 1 second # STATUS BAR AUTO-LOCATOR LOGIC (WILL BE BUILT-OUT TO BE MORE ROBUST LATER) -# Set your theme to "Masquerade" and Interface Scale to 140%, and browser zoom level to 110% TEMPLATE_PATH = "G:\\Nextcloud\\Projects\\Scripting\\bars_template.png" # Path to your bars template file -MATCH_THRESHOLD = 0.5 # The correlation threshold to consider a "good" match +MATCH_THRESHOLD = 0.4 # The correlation threshold to consider a "good" match # ============================================================================= # Helper Functions @@ -302,12 +301,12 @@ class BorealisOverlay(QWidget): match_result = locate_bars_opencv(TEMPLATE_PATH, MATCH_THRESHOLD) if match_result is not None: found_x, found_y, w, h = match_result - print(f"Template matched at {found_x}, {found_y} with confidence >= {MATCH_THRESHOLD}.") + print(f"Character Status Located at {found_x}, {found_y} with confidence >= {MATCH_THRESHOLD}.") initial_x, initial_y = found_x, found_y # Optionally override region size with template size region_w, region_h = w, h else: - print("No high-confidence match found. Using default region.") + print("Could not auto-locate the character status page. Set your theme to Masquerade and Interface Scale to 140%, and browser zoom level to 110%. Using default region.") region = Region(initial_x, initial_y, label="Character Status") region.w = region_w