mirror of
https://github.com/mt-mods/signs_lib.git
synced 2024-12-24 16:20:17 +01:00
Add standard wood and steel signs sound defs
use them in standard signs.
This commit is contained in:
parent
94745e123e
commit
fe57c23132
3
api.lua
3
api.lua
@ -24,6 +24,9 @@ signs_lib.standard_wood_groups.sign = 1
|
||||
signs_lib.standard_steel_groups = table.copy(minetest.registered_items["default:sign_wall_steel"].groups)
|
||||
signs_lib.standard_steel_groups.sign = 1
|
||||
|
||||
signs_lib.standard_wood_sign_sounds = table.copy(minetest.registered_items["default:sign_wall_wood"].sounds)
|
||||
signs_lib.standard_steel_sign_sounds = table.copy(minetest.registered_items["default:sign_wall_steel"].sounds)
|
||||
|
||||
signs_lib.standard_yaw = {
|
||||
0,
|
||||
math.pi / -2,
|
||||
|
@ -36,6 +36,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
||||
inventory_image = "signs_lib_sign_wall_wooden_inv.png",
|
||||
wield_image = "signs_lib_sign_wall_wooden_inv.png",
|
||||
groups = wood_groups,
|
||||
sounds = signs_lib.standard_wood_sign_sounds,
|
||||
default_color = "0",
|
||||
on_rightclick = signs_lib.construct_sign,
|
||||
on_construct = signs_lib.construct_sign,
|
||||
@ -76,6 +77,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
||||
inventory_image = "signs_lib_sign_wall_steel_inv.png",
|
||||
wield_image = "signs_lib_sign_wall_steel_inv.png",
|
||||
groups = wood_groups,
|
||||
sounds = signs_lib.standard_steel_sign_sounds,
|
||||
default_color = "0",
|
||||
on_rightclick = signs_lib.construct_sign,
|
||||
on_construct = signs_lib.construct_sign,
|
||||
|
Loading…
Reference in New Issue
Block a user