Skip to content
Snippets Groups Projects
Commit 8b4a92ef authored by tenplus1's avatar tenplus1 Committed by est31
Browse files

word-wrap book text

This change word-wraps text when reading a book.
parent f92d49fe
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,9 @@ local function book_on_use(itemstack, user, pointed_thing)
"button_exit[2.5,7.5;3,1;save;Save]"
else
formspec = "size[8,8]"..default.gui_bg..
"label[1,0.5;"..minetest.formspec_escape(title).."]"..
"label[0.5,1.5;"..minetest.formspec_escape(text).."]"
"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)..";]"
end
minetest.show_formspec(user:get_player_name(), "default:book", formspec)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment