diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-12 18:50:50 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-12 18:50:50 -0400 |
commit | 170d3e09c55cf982a6ed180b4bdf755cabbe864c (patch) | |
tree | b8c746221798756a8f8ff0e47552001292acbb0f | |
parent | 970f6080789d7c4aa7a97412146834945f05d8d7 (diff) |
clean-up battery box images, make more consistent
added tube or cable entry overlays as appropriate.
deleted a couple of obsolete textures
15 files changed, 11 insertions, 5 deletions
diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua index 7238d6d..bb9c29d 100644 --- a/technic/machines/register/battery_box.lua +++ b/technic/machines/register/battery_box.lua @@ -3,6 +3,7 @@ local digilines_path = minetest.get_modpath("digilines") local S = technic.getter local tube_entry = "^pipeworks_tube_connection_metallic.png" +local cable_entry = "^technic_cable_connection_overlay.png" local fs_helpers = pipeworks.fs_helpers @@ -208,20 +209,25 @@ function technic.register_battery_box(data) groups.tubedevice_receiver = 1 end + local front_tex = "technic_"..ltier.."_battery_box_front.png^technic_power_meter"..i..".png" local tentry = tube_entry + local bentry = tube_entry + if ltier == "lv" then + front_tex = "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png" tentry = "" + bentry = cable_entry end minetest.register_node("technic:"..ltier.."_battery_box"..i, { description = S("%s Battery Box"):format(tier), tiles = { "technic_"..ltier.."_battery_box_top.png"..tentry, - "technic_"..ltier.."_battery_box_bottom.png"..tentry, - "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png", - "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png", - "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png", - "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png"}, + "technic_"..ltier.."_battery_box_bottom.png"..bentry, + "technic_"..ltier.."_battery_box_side.png"..tentry, + "technic_"..ltier.."_battery_box_side.png"..tentry, + "technic_"..ltier.."_battery_box_side.png"..tentry, + front_tex}, groups = groups, connect_sides = {"bottom"}, tube = data.tube and tube or nil, diff --git a/technic/textures/technic_battery_box_side.png b/technic/textures/technic_battery_box_side.png Binary files differdeleted file mode 100644 index 98a22d6..0000000 --- a/technic/textures/technic_battery_box_side.png +++ /dev/null diff --git a/technic/textures/technic_battery_box_side8.png b/technic/textures/technic_battery_box_side8.png Binary files differdeleted file mode 100644 index 65806f4..0000000 --- a/technic/textures/technic_battery_box_side8.png +++ /dev/null diff --git a/technic/textures/technic_battery_box_side_mv.png b/technic/textures/technic_battery_box_side_mv.png Binary files differdeleted file mode 100644 index 06a4be5..0000000 --- a/technic/textures/technic_battery_box_side_mv.png +++ /dev/null diff --git a/technic/textures/technic_hv_battery_box_bottom.png b/technic/textures/technic_hv_battery_box_bottom.png Binary files differindex 996b2d4..940dcdb 100644 --- a/technic/textures/technic_hv_battery_box_bottom.png +++ b/technic/textures/technic_hv_battery_box_bottom.png diff --git a/technic/textures/technic_hv_battery_box_front.png b/technic/textures/technic_hv_battery_box_front.png Binary files differnew file mode 100644 index 0000000..6f23439 --- /dev/null +++ b/technic/textures/technic_hv_battery_box_front.png diff --git a/technic/textures/technic_hv_battery_box_side.png b/technic/textures/technic_hv_battery_box_side.png Binary files differindex fffd8ea..3e99d8c 100644 --- a/technic/textures/technic_hv_battery_box_side.png +++ b/technic/textures/technic_hv_battery_box_side.png diff --git a/technic/textures/technic_hv_battery_box_top.png b/technic/textures/technic_hv_battery_box_top.png Binary files differindex 49dee71..aa6fdb6 100644 --- a/technic/textures/technic_hv_battery_box_top.png +++ b/technic/textures/technic_hv_battery_box_top.png diff --git a/technic/textures/technic_lv_battery_box_bottom.png b/technic/textures/technic_lv_battery_box_bottom.png Binary files differindex a6124e6..0894d5f 100644 --- a/technic/textures/technic_lv_battery_box_bottom.png +++ b/technic/textures/technic_lv_battery_box_bottom.png diff --git a/technic/textures/technic_lv_battery_box_side.png b/technic/textures/technic_lv_battery_box_side.png Binary files differindex 24d4e4e..4d435ac 100644 --- a/technic/textures/technic_lv_battery_box_side.png +++ b/technic/textures/technic_lv_battery_box_side.png diff --git a/technic/textures/technic_lv_battery_box_top.png b/technic/textures/technic_lv_battery_box_top.png Binary files differindex b32100f..6050ad0 100644 --- a/technic/textures/technic_lv_battery_box_top.png +++ b/technic/textures/technic_lv_battery_box_top.png diff --git a/technic/textures/technic_mv_battery_box_bottom.png b/technic/textures/technic_mv_battery_box_bottom.png Binary files differindex a610660..0894d5f 100644 --- a/technic/textures/technic_mv_battery_box_bottom.png +++ b/technic/textures/technic_mv_battery_box_bottom.png diff --git a/technic/textures/technic_mv_battery_box_front.png b/technic/textures/technic_mv_battery_box_front.png Binary files differnew file mode 100644 index 0000000..63ed41c --- /dev/null +++ b/technic/textures/technic_mv_battery_box_front.png diff --git a/technic/textures/technic_mv_battery_box_side.png b/technic/textures/technic_mv_battery_box_side.png Binary files differindex 06a4be5..2528ff8 100644 --- a/technic/textures/technic_mv_battery_box_side.png +++ b/technic/textures/technic_mv_battery_box_side.png diff --git a/technic/textures/technic_mv_battery_box_top.png b/technic/textures/technic_mv_battery_box_top.png Binary files differindex b32100f..6050ad0 100644 --- a/technic/textures/technic_mv_battery_box_top.png +++ b/technic/textures/technic_mv_battery_box_top.png |