fix 'dummy' formspec images (the hacky way)
This commit is contained in:
parent
95db0afb00
commit
9ae8e0f759
@ -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