# Death dialog, English client: "Restart here" / "Restart in the City".
#
# NOT a captcha -- see restart_de for how restart_button profiles work. Same idea,
# captured on Origins: when the character dies the dialog opens in the top-left
# corner and pressing "Restart here" revives the character on the spot.
#
# The anchor is the "Restart here" button itself, captured at 63,95..214,115 on a
# 965x636 Origins window (frame px, title bar included). The button is opaque
# (pixel-identical over 5 captures on different backgrounds); the dialog around
# it is not. The countdown at the right end of the button (x 220+) is left out,
# it changes every tenth of a second. "Restart in the City" sits 30px lower and
# looks almost the same except for its text, which is what keeps them apart.
name restart_en
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 87
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
