Helmod: Assistant for planning your factory

by Helfima

Assistant for planning your factory. Can calculate required ingredients, products, machines, modules, and beacons. Can also calculate power production / consumption.

Utilities
3 days ago
0.14 - 1.1
367K

i Configurable button count per line

5 years ago
(updated 5 years ago)

The default for the amount of buttons for tabs with production chains is 10, i've been manually changing it to 30 (which is ok on fullhd) for a while, but I feel like it should be configurable.
What I'm changing is:
[code]-------------------------------------------------------------------------------
-- Get or create action panel
--
-- @function [parent=#MainTab] getActionPanel
--
function MainTab.methods:getActionPanel()
local parent_panel = self:getMenuPanel()
if parent_panel["action_panel"] ~= nil and parent_panel["action_panel"].valid then
return parent_panel["action_panel"]
end
local panel = ElementGui.addGuiTable(parent_panel, "action_panel", 30, helmod_table_style.list)
return panel
end


-- Get or create index panel

-- @function [parent=#MainTab] getIndexPanel

function MainTab.methods:getIndexPanel()
local parent_panel = self:getMenuPanel()
if parent_panel["index_panel"] ~= nil and parent_panel["index_panel"].valid then
return parent_panel["index_panel"]
end
local panel = ElementGui.addGuiTable(parent_panel, "index_panel", 30, helmod_table_style.list)
return panel
end[/code]

I'm not sure if this is fully correct, but works for me

5 years ago

yes i must change that

5 years ago

Fixed in Version 0.8.4

New response