|
|
@ -20,35 +20,40 @@ MechanismOverlay.ATTRS{
|
|
|
|
|
|
|
|
|
|
|
|
function MechanismOverlay:init()
|
|
|
|
function MechanismOverlay:init()
|
|
|
|
self:addviews{
|
|
|
|
self:addviews{
|
|
|
|
widgets.Label{
|
|
|
|
widgets.BannerPanel{
|
|
|
|
frame={t=4, l=2},
|
|
|
|
frame={t=4, l=1, r=1, h=1},
|
|
|
|
text='Mechanism safety:'
|
|
|
|
subviews={
|
|
|
|
},
|
|
|
|
widgets.Label{
|
|
|
|
widgets.CycleHotkeyLabel{
|
|
|
|
frame={t=0, l=1},
|
|
|
|
view_id='safety_lever',
|
|
|
|
text='Mechanism safety:'
|
|
|
|
frame={t=4, l=21, w=15},
|
|
|
|
},
|
|
|
|
key='CUSTOM_G',
|
|
|
|
widgets.CycleHotkeyLabel{
|
|
|
|
label='Lever:',
|
|
|
|
view_id='safety_lever',
|
|
|
|
options={
|
|
|
|
frame={t=0, l=20, w=15},
|
|
|
|
{label='Any', value=0},
|
|
|
|
key='CUSTOM_G',
|
|
|
|
{label='Magma', value=2, pen=COLOR_RED},
|
|
|
|
label='Lever:',
|
|
|
|
{label='Fire', value=1, pen=COLOR_LIGHTRED},
|
|
|
|
options={
|
|
|
|
},
|
|
|
|
{label='Any', value=0},
|
|
|
|
initial_option=0,
|
|
|
|
{label='Magma', value=2, pen=COLOR_RED},
|
|
|
|
on_change=self:callback('choose_mechanism', 'lever', true),
|
|
|
|
{label='Fire', value=1, pen=COLOR_LIGHTRED},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
widgets.CycleHotkeyLabel{
|
|
|
|
initial_option=0,
|
|
|
|
view_id='safety_target',
|
|
|
|
on_change=self:callback('choose_mechanism', 'lever', true),
|
|
|
|
frame={t=4, l=38, w=16},
|
|
|
|
},
|
|
|
|
key='CUSTOM_SHIFT_G',
|
|
|
|
widgets.CycleHotkeyLabel{
|
|
|
|
label='Target:',
|
|
|
|
view_id='safety_target',
|
|
|
|
options={
|
|
|
|
frame={t=0, l=38, w=16},
|
|
|
|
{label='Any', value=0},
|
|
|
|
key='CUSTOM_SHIFT_G',
|
|
|
|
{label='Magma', value=2, pen=COLOR_RED},
|
|
|
|
label='Target:',
|
|
|
|
{label='Fire', value=1, pen=COLOR_LIGHTRED},
|
|
|
|
options={
|
|
|
|
},
|
|
|
|
{label='Any', value=0},
|
|
|
|
initial_option=0,
|
|
|
|
{label='Magma', value=2, pen=COLOR_RED},
|
|
|
|
on_change=self:callback('choose_mechanism', 'target', true),
|
|
|
|
{label='Fire', value=1, pen=COLOR_LIGHTRED},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
initial_option=0,
|
|
|
|
|
|
|
|
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},
|
|
|
|