|
|
|
@ -20,13 +20,16 @@ MechanismOverlay.ATTRS{
|
|
|
|
|
|
|
|
|
|
function MechanismOverlay:init()
|
|
|
|
|
self:addviews{
|
|
|
|
|
widgets.BannerPanel{
|
|
|
|
|
frame={t=4, l=1, r=1, h=1},
|
|
|
|
|
subviews={
|
|
|
|
|
widgets.Label{
|
|
|
|
|
frame={t=4, l=2},
|
|
|
|
|
frame={t=0, l=1},
|
|
|
|
|
text='Mechanism safety:'
|
|
|
|
|
},
|
|
|
|
|
widgets.CycleHotkeyLabel{
|
|
|
|
|
view_id='safety_lever',
|
|
|
|
|
frame={t=4, l=21, w=15},
|
|
|
|
|
frame={t=0, l=20, w=15},
|
|
|
|
|
key='CUSTOM_G',
|
|
|
|
|
label='Lever:',
|
|
|
|
|
options={
|
|
|
|
@ -39,7 +42,7 @@ function MechanismOverlay:init()
|
|
|
|
|
},
|
|
|
|
|
widgets.CycleHotkeyLabel{
|
|
|
|
|
view_id='safety_target',
|
|
|
|
|
frame={t=4, l=38, w=16},
|
|
|
|
|
frame={t=0, l=38, w=16},
|
|
|
|
|
key='CUSTOM_SHIFT_G',
|
|
|
|
|
label='Target:',
|
|
|
|
|
options={
|
|
|
|
@ -50,6 +53,8 @@ function MechanismOverlay:init()
|
|
|
|
|
initial_option=0,
|
|
|
|
|
on_change=self:callback('choose_mechanism', 'target', true),
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
widgets.HotkeyLabel{
|
|
|
|
|
frame={t=7, l=8, w=49, h=2},
|
|
|
|
|
key='CUSTOM_M',
|
|
|
|
|