Skip to content

Commit

Permalink
add help button for idle-crafting overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Sep 13, 2024
1 parent 263377b commit c16b466
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions idle-crafting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -356,18 +356,20 @@ end
IdleCraftingOverlay = defclass(IdleCraftingOverlay, overlay.OverlayWidget)
IdleCraftingOverlay.ATTRS {
desc = "Adds a toggle for recreational crafting to Craftdwarf's workshops.",
default_pos = { x = -42, y = 41 },
default_pos = { x = -39, y = 41 },
version = 2,
default_enabled = true,
viewscreens = {
'dwarfmode/ViewSheets/BUILDING/Workshop/Craftsdwarfs/Workers',
},
frame = { w = 54, h = 1 },
frame = { w = 58, h = 1 },
visible = orders.can_set_labors
}

function IdleCraftingOverlay:init()
self:addviews {
widgets.BannerPanel{
frame={l=0, w=54},
subviews={
widgets.CycleHotkeyLabel {
view_id = 'leisure_toggle',
Expand All @@ -388,6 +390,10 @@ function IdleCraftingOverlay:init()
}
},
},
widgets.HelpButton{
frame={r=0},
command='idle-crafting',
},
}
end

Expand Down

0 comments on commit c16b466

Please sign in to comment.