update signs_lib, basic_signs, street_signs
This commit is contained in:
parent
b6216a96fa
commit
497fee872b
@ -96,6 +96,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "basic_signs_sign_wall_locked_inv.png",
|
wield_image = "basic_signs_sign_wall_locked_inv.png",
|
||||||
groups = wood_groups,
|
groups = wood_groups,
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
@ -145,6 +146,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "basic_signs_steel_"..color[1].."_inv.png",
|
wield_image = "basic_signs_steel_"..color[1].."_inv.png",
|
||||||
groups = steel_groups,
|
groups = steel_groups,
|
||||||
default_color = color[3],
|
default_color = color[3],
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -196,6 +198,7 @@ minetest.register_node("basic_signs:yard_sign", {
|
|||||||
wield_image = "default_sign_wood.png",
|
wield_image = "default_sign_wood.png",
|
||||||
groups = nci_wood_groups,
|
groups = nci_wood_groups,
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -240,6 +243,7 @@ minetest.register_node("basic_signs:hanging_sign", {
|
|||||||
wield_image = "default_sign_wood.png",
|
wield_image = "default_sign_wood.png",
|
||||||
groups = nci_wood_groups,
|
groups = nci_wood_groups,
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
|
@ -434,7 +434,10 @@ signs_lib.construct_sign = function(pos)
|
|||||||
"textarea[0,-0.3;6.5,3;text;;${text}]"..
|
"textarea[0,-0.3;6.5,3;text;;${text}]"..
|
||||||
"button_exit[2,3.4;2,1;ok;"..S("Write").."]"..
|
"button_exit[2,3.4;2,1;ok;"..S("Write").."]"..
|
||||||
"background[-0.5,-0.5;7,5;signs_lib_sign_bg.jpg]")
|
"background[-0.5,-0.5;7,5;signs_lib_sign_bg.jpg]")
|
||||||
|
local i = meta:get_string("infotext")
|
||||||
|
if i == "" then -- it wasn't even set, so set it.
|
||||||
meta:set_string("infotext", "")
|
meta:set_string("infotext", "")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function signs_lib.destruct_sign(pos)
|
function signs_lib.destruct_sign(pos)
|
||||||
|
@ -37,6 +37,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "signs_lib_sign_wall_wooden_inv.png",
|
wield_image = "signs_lib_sign_wall_wooden_inv.png",
|
||||||
groups = wood_groups,
|
groups = wood_groups,
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
on_receive_fields = signs_lib.receive_fields,
|
on_receive_fields = signs_lib.receive_fields,
|
||||||
@ -76,6 +77,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "signs_lib_sign_wall_steel_inv.png",
|
wield_image = "signs_lib_sign_wall_steel_inv.png",
|
||||||
groups = wood_groups,
|
groups = wood_groups,
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
|
@ -27,6 +27,7 @@ minetest.register_node("street_signs:sign_basic", {
|
|||||||
groups = {choppy=2, dig_immediate=2},
|
groups = {choppy=2, dig_immediate=2},
|
||||||
default_color = "f",
|
default_color = "f",
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
on_receive_fields = signs_lib.receive_fields,
|
on_receive_fields = signs_lib.receive_fields,
|
||||||
on_punch = signs_lib.update_sign,
|
on_punch = signs_lib.update_sign,
|
||||||
@ -69,6 +70,7 @@ minetest.register_node("street_signs:sign_basic_top_only", {
|
|||||||
tiles = { "street_signs_basic.png" },
|
tiles = { "street_signs_basic.png" },
|
||||||
groups = {choppy=2, dig_immediate=2},
|
groups = {choppy=2, dig_immediate=2},
|
||||||
default_color = "f",
|
default_color = "f",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
on_receive_fields = signs_lib.receive_fields,
|
on_receive_fields = signs_lib.receive_fields,
|
||||||
|
@ -34,6 +34,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_us_route_inv.png",
|
wield_image = "street_signs_us_route_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -72,6 +73,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_us_interstate_inv.png",
|
wield_image = "street_signs_us_interstate_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "f",
|
default_color = "f",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
|
@ -107,6 +107,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_speed_limit_inv.png",
|
wield_image = "street_signs_speed_limit_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -798,6 +799,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_ped_push_button_to_cross_r10_3i_inv.png",
|
wield_image = "street_signs_ped_push_button_to_cross_r10_3i_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -836,6 +838,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_ped_push_button_to_cross_r10_3i_left_inv.png",
|
wield_image = "street_signs_ped_push_button_to_cross_r10_3i_left_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
|
@ -742,6 +742,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_hill_with_grade_ahead_inv.png",
|
wield_image = "street_signs_hill_with_grade_ahead_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -782,6 +783,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_distance_2_lines_inv.png",
|
wield_image = "street_signs_distance_2_lines_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -820,6 +822,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_distance_2_lines_orange_inv.png",
|
wield_image = "street_signs_distance_2_lines_orange_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -931,6 +934,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_low_clearance_inv.png",
|
wield_image = "street_signs_low_clearance_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -971,6 +975,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_advisory_speed_mph_inv.png",
|
wield_image = "street_signs_advisory_speed_mph_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -1009,6 +1014,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_advisory_speed_kmh_inv.png",
|
wield_image = "street_signs_advisory_speed_kmh_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -1047,6 +1053,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_advisory_speed_ms_inv.png",
|
wield_image = "street_signs_advisory_speed_ms_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
|
@ -32,6 +32,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_warning_3_line_inv.png",
|
wield_image = "street_signs_warning_3_line_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -70,6 +71,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_warning_4_line_inv.png",
|
wield_image = "street_signs_warning_4_line_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -108,6 +110,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_warning_orange_3_line_inv.png",
|
wield_image = "street_signs_warning_orange_3_line_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -146,6 +149,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
|
|||||||
wield_image = "street_signs_warning_orange_4_line_inv.png",
|
wield_image = "street_signs_warning_orange_4_line_inv.png",
|
||||||
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
groups = {choppy=2, dig_immediate=2, not_in_creative_inventory = nci},
|
||||||
default_color = "0",
|
default_color = "0",
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
after_place_node = signs_lib.after_place_node,
|
after_place_node = signs_lib.after_place_node,
|
||||||
@ -211,6 +215,7 @@ for _, s in ipairs(street_signs.big_sign_sizes) do
|
|||||||
},
|
},
|
||||||
default_color = defc,
|
default_color = defc,
|
||||||
groups = {choppy=2, dig_immediate=2},
|
groups = {choppy=2, dig_immediate=2},
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
on_receive_fields = signs_lib.receive_fields,
|
on_receive_fields = signs_lib.receive_fields,
|
||||||
@ -248,6 +253,7 @@ for _, s in ipairs(street_signs.big_sign_sizes) do
|
|||||||
},
|
},
|
||||||
default_color = defc,
|
default_color = defc,
|
||||||
groups = {choppy=2, dig_immediate=2},
|
groups = {choppy=2, dig_immediate=2},
|
||||||
|
on_rightclick = signs_lib.construct_sign,
|
||||||
on_construct = signs_lib.construct_sign,
|
on_construct = signs_lib.construct_sign,
|
||||||
on_destruct = signs_lib.destruct_sign,
|
on_destruct = signs_lib.destruct_sign,
|
||||||
on_receive_fields = signs_lib.receive_fields,
|
on_receive_fields = signs_lib.receive_fields,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user