Skip to content

Commit

Permalink
Default/book: textarea -> table
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui authored and paramat committed Oct 18, 2015
1 parent ef8b7e2 commit 3fb6ee5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mods/default/craftitems.lua
Expand Up @@ -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
Expand Down

0 comments on commit 3fb6ee5

Please sign in to comment.