From: Rui Date: Sun, 4 Oct 2015 09:36:58 +0000 (+0900) Subject: Default/book: textarea -> table X-Git-Tag: 0.4.14~200 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3fb6ee5bdf7a8940d7e25c96f41436a49fea32fc;p=oweals%2Fminetest_game.git Default/book: textarea -> table --- diff --git a/mods/default/craftitems.lua b/mods/default/craftitems.lua index facff57e..c41129d3 100644 --- a/mods/default/craftitems.lua +++ b/mods/default/craftitems.lua @@ -30,7 +30,8 @@ local function book_on_use(itemstack, user, pointed_thing) formspec = "size[8,8]"..default.gui_bg.. "label[0.5,0.5;by "..owner.."]".. "label[0.5,0;"..minetest.formspec_escape(title).."]".. - "textarea[0.5,1.5;7.5,7;;"..minetest.formspec_escape(text)..";]" + "tableoptions[background=#00000000;highlight=#00000000;border=false]".. + "table[0.5,1.5;7.5,7;;"..minetest.formspec_escape(text):gsub("\n", ",")..";1]" end minetest.show_formspec(user:get_player_name(), "default:book", formspec) end