From b4a5e38498bf96e4aa8d112cfe6d9d5bb5cf4b6c Mon Sep 17 00:00:00 2001 From: Christian Doczkal <20443222+chdoc@users.noreply.github.com> Date: Mon, 12 Aug 2024 22:20:32 +0200 Subject: [PATCH] move overlay two workers tab --- docs/idle-crafting.rst | 2 +- idle-crafting.lua | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/idle-crafting.rst b/docs/idle-crafting.rst index 68cc7f1bf..2b3bbc451 100644 --- a/docs/idle-crafting.rst +++ b/docs/idle-crafting.rst @@ -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. diff --git a/idle-crafting.lua b/idle-crafting.lua index 1dded2cb2..4e8acc7c2 100644 --- a/idle-crafting.lua +++ b/idle-crafting.lua @@ -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 } @@ -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 },