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