clean-up battery box images, make more consistent
added tube or cable entry overlays as appropriate. deleted a couple of obsolete textures
@ -3,6 +3,7 @@ local digilines_path = minetest.get_modpath("digilines")
|
|||||||
|
|
||||||
local S = technic.getter
|
local S = technic.getter
|
||||||
local tube_entry = "^pipeworks_tube_connection_metallic.png"
|
local tube_entry = "^pipeworks_tube_connection_metallic.png"
|
||||||
|
local cable_entry = "^technic_cable_connection_overlay.png"
|
||||||
|
|
||||||
local fs_helpers = pipeworks.fs_helpers
|
local fs_helpers = pipeworks.fs_helpers
|
||||||
|
|
||||||
@ -208,20 +209,25 @@ function technic.register_battery_box(data)
|
|||||||
groups.tubedevice_receiver = 1
|
groups.tubedevice_receiver = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local front_tex = "technic_"..ltier.."_battery_box_front.png^technic_power_meter"..i..".png"
|
||||||
local tentry = tube_entry
|
local tentry = tube_entry
|
||||||
|
local bentry = tube_entry
|
||||||
|
|
||||||
if ltier == "lv" then
|
if ltier == "lv" then
|
||||||
|
front_tex = "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png"
|
||||||
tentry = ""
|
tentry = ""
|
||||||
|
bentry = cable_entry
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("technic:"..ltier.."_battery_box"..i, {
|
minetest.register_node("technic:"..ltier.."_battery_box"..i, {
|
||||||
description = S("%s Battery Box"):format(tier),
|
description = S("%s Battery Box"):format(tier),
|
||||||
tiles = {
|
tiles = {
|
||||||
"technic_"..ltier.."_battery_box_top.png"..tentry,
|
"technic_"..ltier.."_battery_box_top.png"..tentry,
|
||||||
"technic_"..ltier.."_battery_box_bottom.png"..tentry,
|
"technic_"..ltier.."_battery_box_bottom.png"..bentry,
|
||||||
"technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png",
|
"technic_"..ltier.."_battery_box_side.png"..tentry,
|
||||||
"technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png",
|
"technic_"..ltier.."_battery_box_side.png"..tentry,
|
||||||
"technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png",
|
"technic_"..ltier.."_battery_box_side.png"..tentry,
|
||||||
"technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png"},
|
front_tex},
|
||||||
groups = groups,
|
groups = groups,
|
||||||
connect_sides = {"bottom"},
|
connect_sides = {"bottom"},
|
||||||
tube = data.tube and tube or nil,
|
tube = data.tube and tube or nil,
|
||||||
|
Before Width: | Height: | Size: 576 B |
Before Width: | Height: | Size: 639 B |
Before Width: | Height: | Size: 587 B |
Before Width: | Height: | Size: 653 B After Width: | Height: | Size: 338 B |
BIN
technic/textures/technic_hv_battery_box_front.png
Normal file
After Width: | Height: | Size: 452 B |
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 575 B |
Before Width: | Height: | Size: 738 B After Width: | Height: | Size: 591 B |
Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 236 B |
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 738 B After Width: | Height: | Size: 591 B |
BIN
technic/textures/technic_mv_battery_box_front.png
Normal file
After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 587 B After Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 197 B |