mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Default/book: textarea -> table
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user