Skip to content

Commit

Permalink
move overlay two workers tab
Browse files Browse the repository at this point in the history
  • Loading branch information
chdoc committed Aug 12, 2024
1 parent a1e01c3 commit b4a5e38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/idle-crafting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Examples
Overlay
-------

This script provides an overlay on the "Tasks" tab of Craftsdwarf's workshops,
This script provides an overlay on the "Workers" tab of Craftsdwarf's workshops,
allowing you to designate that workshop for use by idle dwarves to satisfy their
needs to craft objects. Workshops that have a master assigned cannot be used in
this way.
Expand Down
10 changes: 4 additions & 6 deletions idle-crafting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,11 @@ IdleCraftingOverlay.ATTRS {
default_pos = { x = -42, y = 41 },
default_enabled = true,
viewscreens = {
'dwarfmode/ViewSheets/BUILDING/Workshop/Craftsdwarfs/Tasks',
'dwarfmode/ViewSheets/BUILDING/Workshop/Craftsdwarfs/Workers',
},
frame = { w = 55, h = 1 },
visible = function ()
return
#df.global.game.main_interface.building.button == 0 and
df.global.game.main_interface.stockpile_link.adding_new_link == false
return not df.global.game.main_interface.stockpile_link.adding_new_link
end
}

Expand All @@ -374,8 +372,8 @@ function IdleCraftingOverlay:init()
widgets.CycleHotkeyLabel {
view_id = 'leisure_toggle',
frame = { l = 0, t = 0 },
label = 'Allow idle dwarfs to satisfy crafting needs:',
key = 'CUSTOM_L',
label = 'Allow idle dwarves to satisfy crafting needs:',
key = 'CUSTOM_I',
options = {
{ label = 'yes', value = true, pen = COLOR_GREEN },
{ label = 'no', value = false },
Expand Down

0 comments on commit b4a5e38

Please sign in to comment.