From afcd16c56e30fcb3bc3bd3bf7935c4fc9b952ce4 Mon Sep 17 00:00:00 2001 From: badgamernl Date: Tue, 8 Sep 2020 16:20:02 +0200 Subject: [PATCH] Fixed table center Fixed locale --- locale/en/gui.cfg | 2 +- modules/gui/autofill.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/locale/en/gui.cfg b/locale/en/gui.cfg index 83416ba1..e4fa8611 100644 --- a/locale/en/gui.cfg +++ b/locale/en/gui.cfg @@ -86,7 +86,7 @@ main-tooltip=Autofill settings toggle-section-caption=__1__ __2__ toggle-section-tooltip=Expand Section toggle-section-collapse-tooltip=Collapse Section -toggle-entity-tooltip=Toggle the autofill of __1__s +toggle-entity-tooltip=Toggle the autofill of __1__ toggle-tooltip=Toggle the autofill of __1__ into __2__ slots amount-tooltip=Amount of items to insert into the __1__ slots invalid=Autofill set to maximum amount: __1__ __2__ for __3__ diff --git a/modules/gui/autofill.lua b/modules/gui/autofill.lua index 20d2ef49..37146dea 100644 --- a/modules/gui/autofill.lua +++ b/modules/gui/autofill.lua @@ -233,6 +233,8 @@ Gui.element(function(event_trigger, parent) scroll_table.parent.style.padding = 0 -- Remove the default gap that is added in a table between elements scroll_table.style.vertical_spacing = 0 + -- Center the first collumn in the table + scroll_table.style.column_alignments[1] = 'center' -- Loop over each default entity config for _, setting in pairs(config.default_entities) do local table_sizes = {}