From 140113cbaaaf492c7b44352fb768beb6f98e9937 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 10 Mar 2020 08:26:42 +0100 Subject: [PATCH] Add tableoptions into formspec_prepend --- mods/achievements/init.lua | 1 - mods/crafting/api.lua | 1 - mods/default/formspec.lua | 5 +++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mods/achievements/init.lua b/mods/achievements/init.lua index 88f60c4..042b2ab 100644 --- a/mods/achievements/init.lua +++ b/mods/achievements/init.lua @@ -195,7 +195,6 @@ crafting.register_on_craft(on_craft) local form = default.ui.get_page("default:default") -form = form .. "tableoptions[background=#DDDDDD30]" form = form .. "tablecolumns[color;text,align=left,width=11;text,align=left,width=28;" .. "text,align=left,width=5]" diff --git a/mods/crafting/api.lua b/mods/crafting/api.lua index a7eb1f1..c30e51b 100644 --- a/mods/crafting/api.lua +++ b/mods/crafting/api.lua @@ -284,7 +284,6 @@ form = form .. default.ui.get_output_itemslot_bg(7.25, 3.25, 1, 1) form = form .. default.ui.button(7.25, 1.25, 1, 1, "do_craft_1", "1", nil, S("Craft once")) form = form .. default.ui.button(7.25, 2.25, 1, 1, "do_craft_10", "10", nil, S("Craft 10 times")) -form = form .. "tableoptions[background=#DDDDDD30]" form = form .. "tablecolumns[text,align=left,width=2;text,align=left,width=40]" default.ui.register_page("crafting:crafting", form) diff --git a/mods/default/formspec.lua b/mods/default/formspec.lua index 7dee7bc..6a4c024 100644 --- a/mods/default/formspec.lua +++ b/mods/default/formspec.lua @@ -16,11 +16,12 @@ default.ui.current_page = {} -- Colors -local listcolors = "listcolors[#00000000;#00000010;#00000000;#68B259;#FFF]" +local prepend = "listcolors[#00000000;#00000010;#00000000;#68B259;#FFF]" .. + "tableoptions[background=#DDDDDD30;highlight=#539646]" default.ui.default.bg = "bgcolor[#00000000]" -- bgcolor intentionally not included because it would make pause menu transparent, too :( -local formspec_prepend = listcolors +local formspec_prepend = prepend -- Group default items