Add tableoptions into formspec_prepend
This commit is contained in:
parent
8bd61ba9a8
commit
140113cbaa
@ -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]"
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user