add autobutcher link to pasture screen

develop
Myk Taylor 2023-07-21 14:35:59 -07:00
parent d95ba2f93a
commit ac8211a9c7
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 8 additions and 2 deletions

@ -687,7 +687,7 @@ PastureOverlay.ATTRS{
default_pos={x=7,y=13}, default_pos={x=7,y=13},
default_enabled=true, default_enabled=true,
viewscreens='dwarfmode/Zone/Some/Pen', viewscreens='dwarfmode/Zone/Some/Pen',
frame={w=32, h=1}, frame={w=31, h=3},
frame_background=gui.CLEAR_PEN, frame_background=gui.CLEAR_PEN,
} }
@ -695,10 +695,16 @@ function PastureOverlay:init()
self:addviews{ self:addviews{
widgets.TextButton{ widgets.TextButton{
frame={t=0, l=0}, frame={t=0, l=0},
label='DFHack search and sort', label='DFHack manage pasture',
key='CUSTOM_CTRL_T', key='CUSTOM_CTRL_T',
on_activate=function() view = view and view:raise() or PastureScreen{}:show() end, on_activate=function() view = view and view:raise() or PastureScreen{}:show() end,
}, },
widgets.TextButton{
frame={t=2, l=0},
label='DFHack autobutcher',
key='CUSTOM_CTRL_B',
on_activate=function() dfhack.run_script('gui/autobutcher') end,
},
} }
end end