clean-up battery box images, make more consistent

added tube or cable entry overlays as appropriate.
deleted a couple of obsolete textures
This commit is contained in:
Vanessa Ezekowitz 2017-04-12 18:50:50 -04:00
parent 970f608078
commit 170d3e09c5
15 changed files with 11 additions and 5 deletions

View File

@ -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,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 639 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 587 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 653 B

After

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 777 B

After

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 792 B

After

Width:  |  Height:  |  Size: 575 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 738 B

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 594 B

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 337 B

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 738 B

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 587 B

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 337 B

After

Width:  |  Height:  |  Size: 197 B