mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-04 21:10:04 -04:00
Change written book formspec to wrap text
Books still don't wrap long lines of text properly so until this has been sorted out revert formspec back to a previous way that worked letting players read the book.
This commit is contained in:
parent
a4e144e4c8
commit
5c74d31b20
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +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).."]"..
|
||||
"tableoptions[background=#00000000;highlight=#00000000;border=false]"..
|
||||
"table[0.5,1.5;7.5,7;;"..minetest.formspec_escape(text):gsub("\n", ",")..";1]"
|
||||
"textarea[0.5,1.5;7.5,7;text;;"..
|
||||
minetest.formspec_escape(text).."]"
|
||||
end
|
||||
minetest.show_formspec(user:get_player_name(), "default:book", formspec)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue