mirror of
				https://github.com/mt-mods/signs_lib.git
				synced 2025-11-04 05:15:30 +01:00 
			
		
		
		
	Use sign formspec to switch between wide/narrow font
if available on a given sign. The sign must have a "foo:bar_widefont" variant, with the horizontal scaling set appropriately (about half of the normal value for the narrow-font sign) Add new corresponding API to anto-generate those signs where desired; use this feature in default wood and steel signs
This commit is contained in:
		@@ -9,6 +9,7 @@ signs_lib.register_sign("default:sign_wall_wood", {
 | 
			
		||||
	},
 | 
			
		||||
	entity_info = "standard",
 | 
			
		||||
	allow_hanging = true,
 | 
			
		||||
	allow_widefont = true
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
signs_lib.register_sign("default:sign_wall_steel", {
 | 
			
		||||
@@ -23,6 +24,7 @@ signs_lib.register_sign("default:sign_wall_steel", {
 | 
			
		||||
	locked = true,
 | 
			
		||||
	entity_info = "standard",
 | 
			
		||||
	allow_hanging = true,
 | 
			
		||||
	allow_widefont = true
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("signs:sign_hanging", "default:sign_wall_wood_hanging")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user