forked from mtcontrib/signs_lib
Add necessary bits to allow signs to be placed onto horizontal poles
(both wooden and steel signs)
only streets mod's "bigpole" supported for now.
Model changes:
To make a sign support horizontal mounting, make a single "_onpole"
model, with two copies of the pole mount, one rotated by 90°. Make sure
the second copy appears has its own material entry, and that it is last
in the materials list in the exported .obj (`grep "g " file.obj` to
check).
When registered, signs_lib will set the "_onpole" and "_onpole_horiz"
tiles{} to reveal one mount or the other: entry 3 will expose the
vertical mount, entry 4 is the horizontal copy, with the opposite entry
being set to the "blank" image.
This commit is contained in:
@@ -9,7 +9,8 @@ signs_lib.register_sign("default:sign_wall_wood", {
|
||||
},
|
||||
entity_info = "standard",
|
||||
allow_hanging = true,
|
||||
allow_widefont = true
|
||||
allow_widefont = true,
|
||||
allow_onpole_horizontal = true
|
||||
})
|
||||
|
||||
signs_lib.register_sign("default:sign_wall_steel", {
|
||||
@@ -24,7 +25,8 @@ signs_lib.register_sign("default:sign_wall_steel", {
|
||||
locked = true,
|
||||
entity_info = "standard",
|
||||
allow_hanging = true,
|
||||
allow_widefont = true
|
||||
allow_widefont = true,
|
||||
allow_onpole_horizontal = true
|
||||
})
|
||||
|
||||
minetest.register_alias("signs:sign_hanging", "default:sign_wall_wood_hanging")
|
||||
|
||||
Reference in New Issue
Block a user