Open Backpacks Minimised
#21
local openMin = addSwitch("openMin", "Open Minimised", function(widget)
widget:setOn(not widget:isOn())
storage.openMin = widget:isOn()
end, parent)
openMin:setOn(storage.openMin)
onContainerOpen(function(container, previousContainer)
if openMin:isOn() then
if not previousContainer then
local containerPanel = modules.game_interface.getContainerPanel()
local containerWindow = containerPanel:getChildById('container' .. container:getId())
if containerWindow then
if containerWindow:getId() == "container0" then
containerWindow:setContentHeight(34)
else
containerWindow:minimize()
end
end
end
end
end)
- remove | + add
01 May 2021