Trim redundant 'bgcolor[]' elements from everywhere
now there's only one, in mods/dreambuilder_extras/init.lua
This commit is contained in:
parent
e3286b55f1
commit
2f27f9fbcc
@ -13,7 +13,7 @@ beds.get_translator = S
|
||||
|
||||
beds.formspec = "size[8,11;true]" ..
|
||||
"no_prepend[]" ..
|
||||
"bgcolor[#080808BB;true]" ..
|
||||
"" ..
|
||||
"button_exit[2,10;4,0.75;leave;" .. esc(S("Leave Bed")) .. "]"
|
||||
|
||||
local modpath = minetest.get_modpath("beds")
|
||||
|
@ -16,9 +16,8 @@ default.get_translator = S
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
-- Set formspec prepend
|
||||
local formspec = [[
|
||||
bgcolor[#080808BB;true]
|
||||
|
||||
listcolors[#FFFFFF30;#B0B0B0;#606060;#A0A0A0;#FFF]
|
||||
bgcolor[#F0F0F0FF;false]
|
||||
style_type[button;bgcolor=#B0B0B0FF]
|
||||
style_type[button_exit;bgcolor=#B0B0B0FF]
|
||||
style_type[image_button;bgcolor=#B0B0B0FF;border=false]
|
||||
|
@ -245,8 +245,16 @@ sed -i 's/"field\[.*")/ \
|
||||
\t\t\t\t\t)/' \
|
||||
$workdir"/mods/technic/machines/register/battery_box.lua"
|
||||
|
||||
sed -i 's/INSERT_BGCOLOR/default.gui_bg = "bgcolor['"$form_bgcolor"';false]"/' \
|
||||
$workdir"/mods/dreambuilder_extras/init.lua"
|
||||
|
||||
sed -i "s/bgcolor\[.*\]//" \
|
||||
$workdir"/mods/default/init.lua"
|
||||
|
||||
sed -i "s/bgcolor\[.*\]//" \
|
||||
$workdir"/mods/beds/init.lua"
|
||||
|
||||
sed -i "s/listcolors\[.*\]/listcolors[#FFFFFF30;#B0B0B0;#606060;#A0A0A0;#FFF] \
|
||||
\n\t\t\tbgcolor["$form_bgcolor";false] \
|
||||
\n\t\t\tstyle_type[button;bgcolor="$btn_color"] \
|
||||
\n\t\t\tstyle_type[button_exit;bgcolor="$btn_color"] \
|
||||
\n\t\t\tstyle_type[image_button;bgcolor="$btn_color";border=false] \
|
||||
@ -257,8 +265,7 @@ sed -i "s/listcolors\[.*\]/listcolors[#FFFFFF30;#B0B0B0;#606060;#A0A0A0;#FFF] \
|
||||
$workdir"/mods/default/init.lua"
|
||||
|
||||
sed -i 's/"style_type\[.*\]"/"style_type[label,textarea;font=mono]" \
|
||||
\t\t.."style_type[textarea;textcolor='"$editor_text_color"';border=false]" \
|
||||
\t\t.."bgcolor['"$form_bgcolor"';false]"/' \
|
||||
\t\t.."style_type[textarea;textcolor='"$editor_text_color"';border=false]"/' \
|
||||
$workdir"/mods/mesecons_luacontroller/init.lua"
|
||||
|
||||
sed -i 's/"size\[8,9\]" \.\./"size[8,9]" .. \
|
||||
@ -272,7 +279,6 @@ sed -i 's/"size\[8,8.5\]"\.\./"size[8,8.5]".. \
|
||||
$workdir"/mods/pipeworks/compat-furnaces.lua"
|
||||
|
||||
sed -i 's/"size\[8,7;\]" ../"size[8,7]" .. \
|
||||
\t"bgcolor['"$form_bgcolor"';false]" .. \
|
||||
\t"image[-0.39,-0.4;10.7,9.1;vessels_inv_bg.png]" .. \
|
||||
\t'"$inv_slot_colors"'/' \
|
||||
$workdir"/mods/vessels/init.lua"
|
||||
|
@ -3,7 +3,7 @@
|
||||
--
|
||||
-- by Vanessa Dannenberg
|
||||
|
||||
default.gui_bg = "bgcolor[#08080899;false]"
|
||||
default.gui_bg = "bgcolor[#F0F0F0FF;false]"
|
||||
|
||||
default.gui_survival_form = "size[8,8.5]"..
|
||||
default.gui_bg..
|
||||
|
@ -665,8 +665,7 @@ local function reset_formspec(meta, code, errmsg)
|
||||
errmsg = minetest.formspec_escape(tostring(errmsg or ""))
|
||||
meta:set_string("formspec", "size[12,10]"
|
||||
.."style_type[label,textarea;font=mono]"
|
||||
.."style_type[textarea;textcolor=#000000FF;border=false]"
|
||||
.."bgcolor[#F0F0F0FF;false]"
|
||||
.."style_type[textarea;textcolor=#000000FF;border=false]"
|
||||
.."background[-0.2,-0.25;12.4,10.75;jeija_luac_background.png]"
|
||||
.."label[0.1,8.3;"..errmsg.."]"
|
||||
.."textarea[0.2,0.2;12.2,9.5;code;;"..code.."]"
|
||||
|
@ -9,7 +9,6 @@ local S = minetest.get_translator("vessels")
|
||||
|
||||
local vessels_shelf_formspec =
|
||||
"size[8,7]" ..
|
||||
"bgcolor[#F0F0F0FF;false]" ..
|
||||
"image[-0.39,-0.4;10.7,9.1;vessels_inv_bg.png]" ..
|
||||
"listcolors[#00000000;#00000000;#00000000;#A0A0A0;#FFF]" ..
|
||||
"list[context;vessels;0,0.3;8,2;]" ..
|
||||
|
Loading…
x
Reference in New Issue
Block a user