mirror of
				https://github.com/mt-mods/signs_lib.git
				synced 2025-10-28 18:25:19 +01:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			f7a4fefd34
			...
			2021-01-30
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 8527f1d5b2 | ||
|  | 3c824aedf8 | ||
|  | fe72e32396 | 
							
								
								
									
										5
									
								
								api.lua
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								api.lua
									
									
									
									
									
								
							| @@ -1151,7 +1151,7 @@ function get_sign_formspec(pos, nodename) | ||||
|  | ||||
| 	local formspec = { | ||||
| 		"size[6,4]", | ||||
| 		"textarea[0,-0.3;6.5,3;text;;" .. txt .. "]", | ||||
| 		"textarea[0,-0.3;6.5,3;text;;" .. minetest.formspec_escape(txt) .. "]", | ||||
| 		"background[-0.5,-0.5;7,5;signs_lib_sign_bg.jpg]", | ||||
| 		"button_exit[2,3.4;2,1;ok;" .. S("Write") .. "]" | ||||
| 	} | ||||
| @@ -1195,14 +1195,15 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) | ||||
| 			meta:set_int("widefont", 1) | ||||
| 			change = true | ||||
| 		end | ||||
|  | ||||
| 		if change then | ||||
| 			minetest.log("action", S("@1 flipped the wide-font switch to \"@2\" at @3", | ||||
| 				(playername or ""), | ||||
| 				(fields.on and "off" or "on"), | ||||
| 				minetest.pos_to_string(pos) | ||||
| 			)) | ||||
| 			minetest.show_formspec(playername, "signs_lib:sign", get_sign_formspec(pos, node.name)) | ||||
| 			signs_lib.update_sign(pos, fields) | ||||
| 			minetest.show_formspec(playername, "signs_lib:sign", get_sign_formspec(pos, node.name)) | ||||
| 		end | ||||
| 	end | ||||
| end) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user