Add background image to book formspec

This commit is contained in:
MT-Modder 2016-02-13 17:19:38 -05:00 committed by paramat
parent 5569950b26
commit 1ab0fc12a7

@ -21,6 +21,7 @@ local function book_on_use(itemstack, user, pointed_thing)
local formspec local formspec
if owner == player_name then if owner == player_name then
formspec = "size[8,8]"..default.gui_bg.. formspec = "size[8,8]"..default.gui_bg..
default.gui_bg_img..
"field[0.5,1;7.5,0;title;Title:;".. "field[0.5,1;7.5,0;title;Title:;"..
minetest.formspec_escape(title).."]".. minetest.formspec_escape(title).."]"..
"textarea[0.5,1.5;7.5,7;text;Contents:;".. "textarea[0.5,1.5;7.5,7;text;Contents:;"..
@ -28,6 +29,7 @@ local function book_on_use(itemstack, user, pointed_thing)
"button_exit[2.5,7.5;3,1;save;Save]" "button_exit[2.5,7.5;3,1;save;Save]"
else else
formspec = "size[8,8]"..default.gui_bg.. formspec = "size[8,8]"..default.gui_bg..
default.gui_bg_img..
"label[0.5,0.5;by "..owner.."]".. "label[0.5,0.5;by "..owner.."]"..
"label[0.5,0;"..minetest.formspec_escape(title).."]".. "label[0.5,0;"..minetest.formspec_escape(title).."]"..
"tableoptions[background=#00000000;highlight=#00000000;border=false]".. "tableoptions[background=#00000000;highlight=#00000000;border=false]"..