name = InGameJoystickCalibrate
widgets = 6
background = box.png
dialog = false

[ widget-00 ]
type = label
name = InGameJoystickCalibrateLabel
text = Joystick Calibration
center = 0.5, 0.1
width = auto
height = auto
fontsize = 9
enabled = 0
selected = 0
default = 0
cancel = 0

[ widget-01 ]
type = label
name = InGameCalibrationDirectionsLabel
text = Move your joystick until the blue box won't grow larger.
center = 0.5, 0.2
width = auto
height = auto
fontsize = 7
enabled = 0
selected = 0
default = 0
cancel = 0

[ widget-02 ]
type = intwheel
name = InGameJoystickSelection
center = 0.5, 0.3
setting = joystick.selected_index
saved = false
hook = InGameJoystickCalibration
values = options
wheelval = 0
width = auto
height = auto
fontsize = 6
enabled = 1
selected = 1
default = 0
cancel = 0

[ widget-03 ]
type = calibrate
name = InGameJoystickCalibration
center = 0.5, 0.55
width = auto
height = auto
fontsize = 6
enabled = 1
selected = 1
default = 0
cancel = 0

[ widget-04 ]
type = button
name = InGameJoystickCalibrateOKButton
text = OK
tip = Save calibration and return to Joystick Options menu.
action = InGameJoystickOptions
center = 0.4, 0.85
color = 0.0, 0.8, 0.0
width = auto
height = auto
fontsize = 7
enabled = 1
selected = 0
default = 1
cancel = 0

[ widget-05 ]
type = button
name = InGameJoystickCalibrateCancelButton
text = Cancel
tip = Forget calibration and return to Joystick Options menu.
action = InGameJoystickOptions
center = 0.6, 0.85
color = 0.8, 0.0, 0.0
width = auto
height = auto
fontsize = 7
enabled = 1
selected = 0
default = 0
cancel = 1
