projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef8b7e2
)
Default/book: textarea -> table
author
Rui
<Rui914@users.noreply.github.com>
Sun, 4 Oct 2015 09:36:58 +0000
(18:36 +0900)
committer
paramat
<mat.gregory@virginmedia.com>
Sun, 18 Oct 2015 17:02:27 +0000
(18:02 +0100)
mods/default/craftitems.lua
patch
|
blob
|
history
diff --git
a/mods/default/craftitems.lua
b/mods/default/craftitems.lua
index facff57e7b749e2c1b506befdc1c2bdc1043cb51..c41129d33bd953413a782d9ee66d254c5ecb07ab 100644
(file)
--- 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