# Death dialog, German client: "Hier neu starten" / "In der Stadt neu starten".
#
# NOT a captcha. When the character dies Metin2 opens this dialog in the top-left
# corner, and pressing "Hier neu starten" revives the character on the spot. The
# solver type restart_button tells the bot to load this profile into its restart
# watcher instead of the captcha solver, so it works whether or not captcha
# solving is switched on, and keeps pressing until the dialog is really gone.
#
# The anchor is the "Hier neu starten" button itself, captured at 70,99..222,119
# on a 958x1050 Prisma window (frame px, title bar included). Only the button:
# the dialog's own background is see-through, so anything around the button
# changes with whatever is behind it. The countdown on the right of the button
# (x 227+) is left out on purpose, it changes every tenth of a second.
#
# Other client languages need their own folder with their own button capture.
name restart_de
type restart_button

# The dialog sits at a fixed spot near the top-left, so only that corner is
# searched (top-left positions of the anchor, frame px; room for 2x zoom).
search_x0 0
search_y0 0
search_x1 520
search_y1 420
detect_step 3
detect_threshold 0.80
anchor_dx 0
anchor_dy 0

# Middle of the button, relative to the anchor top-left.
button_x 82
button_y 10

# Exactly the Windows display-scaling steps: 100, 125, 150, 175, 200 %. The anchor
# is thin text, so an in-between zoom (1.2, 1.4) scores too low to count.
scale_min 1.0
scale_max 2.0
scale_steps 5
# The search corner is small, so always try every zoom (Windows scaling 125/150%
# makes the button bigger and the 100% pass alone never even hints at it).
zoom_hint_floor 0

click_jitter 5
click_delay_min 1200
click_delay_max 2500
