From 1cced6fb370c902c6396a3ee13032451286f5217 Mon Sep 17 00:00:00 2001 From: cheapie Date: Thu, 12 May 2016 15:01:25 -0500 Subject: Improve inventory images --- trafficlight/init.lua | 12 ++++-------- trafficlight/textures/streets_pedlight_inv.png | Bin 0 -> 2921 bytes .../textures/streets_trafficlight_inv_extender_left.png | Bin 0 -> 2990 bytes .../textures/streets_trafficlight_inv_extender_right.png | Bin 0 -> 3004 bytes trafficlight/textures/streets_trafficlight_inv_left.png | Bin 0 -> 3007 bytes trafficlight/textures/streets_trafficlight_inv_right.png | Bin 0 -> 3032 bytes .../textures/streets_trafficlight_inv_straight.png | Bin 0 -> 2938 bytes 7 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 trafficlight/textures/streets_pedlight_inv.png create mode 100644 trafficlight/textures/streets_trafficlight_inv_extender_left.png create mode 100644 trafficlight/textures/streets_trafficlight_inv_extender_right.png create mode 100644 trafficlight/textures/streets_trafficlight_inv_left.png create mode 100644 trafficlight/textures/streets_trafficlight_inv_right.png create mode 100644 trafficlight/textures/streets_trafficlight_inv_straight.png diff --git a/trafficlight/init.lua b/trafficlight/init.lua index 4985a17..a3d0660 100644 --- a/trafficlight/init.lua +++ b/trafficlight/init.lua @@ -203,7 +203,7 @@ minetest.register_node(":streets:trafficlight_top_extender_left_off",{ paramtype = "light", paramtype2 = "facedir", groups = {cracky = 1, level = 2}, - inventory_image = "streets_trafficlight_inv.png", + inventory_image = "streets_trafficlight_inv_extender_left.png", light_source = 11, sunlight_propagates = true, node_box = { @@ -239,7 +239,6 @@ minetest.register_node(":streets:trafficlight_top_extender_left_yellow",{ paramtype = "light", paramtype2 = "facedir", groups = {cracky = 1, level = 2, not_in_creative_inventory = 1}, - inventory_image = "streets_trafficlight_inv.png", light_source = 11, sunlight_propagates = true, node_box = { @@ -275,7 +274,6 @@ minetest.register_node(":streets:trafficlight_top_extender_left_green",{ paramtype = "light", paramtype2 = "facedir", groups = {cracky = 1, level = 2, not_in_creative_inventory = 1}, - inventory_image = "streets_trafficlight_inv.png", light_source = 11, sunlight_propagates = true, node_box = { @@ -310,7 +308,7 @@ minetest.register_node(":streets:trafficlight_top_extender_right_off",{ paramtype = "light", paramtype2 = "facedir", groups = {cracky = 1, level = 2}, - inventory_image = "streets_trafficlight_inv.png", + inventory_image = "streets_trafficlight_inv_extender_right.png", light_source = 11, sunlight_propagates = true, node_box = { @@ -346,7 +344,6 @@ minetest.register_node(":streets:trafficlight_top_extender_right_yellow",{ paramtype = "light", paramtype2 = "facedir", groups = {cracky = 1, level = 2, not_in_creative_inventory = 1}, - inventory_image = "streets_trafficlight_inv.png", light_source = 11, sunlight_propagates = true, node_box = { @@ -382,7 +379,6 @@ minetest.register_node(":streets:trafficlight_top_extender_right_green",{ paramtype = "light", paramtype2 = "facedir", groups = {cracky = 1, level = 2, not_in_creative_inventory = 1}, - inventory_image = "streets_trafficlight_inv.png", light_source = 11, sunlight_propagates = true, node_box = { @@ -417,7 +413,7 @@ minetest.register_node(":streets:pedlight_top_off",{ paramtype = "light", paramtype2 = "facedir", groups = {cracky = 1, level = 2}, - inventory_image = "streets_trafficlight_inv.png", + inventory_image = "streets_pedlight_inv.png", light_source = 11, sunlight_propagates = true, node_box = { @@ -529,7 +525,7 @@ for _,i in pairs({"","_left","_right"}) do paramtype = "light", paramtype2 = "facedir", groups = {cracky = 1, level = 2}, - inventory_image = "streets_trafficlight_inv.png", + inventory_image = ((i == "") and "streets_trafficlight_inv_straight.png") or ((i == "_left") and "streets_trafficlight_inv_left.png") or ((i == "_right") and "streets_trafficlight_inv_right.png"), light_source = 11, sunlight_propagates = true, node_box = { diff --git a/trafficlight/textures/streets_pedlight_inv.png b/trafficlight/textures/streets_pedlight_inv.png new file mode 100644 index 0000000..c4520f1 Binary files /dev/null and b/trafficlight/textures/streets_pedlight_inv.png differ diff --git a/trafficlight/textures/streets_trafficlight_inv_extender_left.png b/trafficlight/textures/streets_trafficlight_inv_extender_left.png new file mode 100644 index 0000000..d28a437 Binary files /dev/null and b/trafficlight/textures/streets_trafficlight_inv_extender_left.png differ diff --git a/trafficlight/textures/streets_trafficlight_inv_extender_right.png b/trafficlight/textures/streets_trafficlight_inv_extender_right.png new file mode 100644 index 0000000..bf4cdb6 Binary files /dev/null and b/trafficlight/textures/streets_trafficlight_inv_extender_right.png differ diff --git a/trafficlight/textures/streets_trafficlight_inv_left.png b/trafficlight/textures/streets_trafficlight_inv_left.png new file mode 100644 index 0000000..04530aa Binary files /dev/null and b/trafficlight/textures/streets_trafficlight_inv_left.png differ diff --git a/trafficlight/textures/streets_trafficlight_inv_right.png b/trafficlight/textures/streets_trafficlight_inv_right.png new file mode 100644 index 0000000..5a73942 Binary files /dev/null and b/trafficlight/textures/streets_trafficlight_inv_right.png differ diff --git a/trafficlight/textures/streets_trafficlight_inv_straight.png b/trafficlight/textures/streets_trafficlight_inv_straight.png new file mode 100644 index 0000000..ac3e7aa Binary files /dev/null and b/trafficlight/textures/streets_trafficlight_inv_straight.png differ -- cgit v1.2.3