better pipe end textures, made 'cut' ends also display them.
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sun, 19 Aug 2012 02:12:29 +0000 (22:12 -0400)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sun, 19 Aug 2012 02:12:29 +0000 (22:12 -0400)
init.lua
textures/pipeworks_pipe_end_empty.png [new file with mode: 0644]
textures/pipeworks_pipe_end_loaded.png [new file with mode: 0644]

index 3f477f9229a25bd3fe8eed629880ed2d2ec7b3c9..f941d654c3d6a93259485458a61636b21a9ee7f7 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -239,6 +239,33 @@ for zp = 0, 1 do
        jy = yp+ym
        jz = zp+zm
 
+       if (jx+jy+jz) == 1 then
+               if xm == 1 then 
+                       table.remove(outimgs, 3)
+                       table.insert(outimgs, 3, "pipeworks_pipe_end_XXXXX.png")
+               end
+               if xp == 1 then 
+                       table.remove(outimgs, 4)
+                       table.insert(outimgs, 4, "pipeworks_pipe_end_XXXXX.png")
+               end
+               if ym == 1 then 
+                       table.remove(outimgs, 1)
+                       table.insert(outimgs, 1, "pipeworks_pipe_end_XXXXX.png")
+               end
+               if xp == 1 then 
+                       table.remove(outimgs, 2)
+                       table.insert(outimgs, 2, "pipeworks_pipe_end_XXXXX.png")
+               end
+               if zm == 1 then 
+                       table.remove(outimgs, 5)
+                       table.insert(outimgs, 5, "pipeworks_pipe_end_XXXXX.png")
+               end
+               if zp == 1 then 
+                       table.remove(outimgs, 6)
+                       table.insert(outimgs, 6, "pipeworks_pipe_end_XXXXX.png")
+               end
+       end
+
        if (jx==1 and jy==1 and jz~=1) or (jx==1 and jy~=1 and jz==1) or (jx~= 1 and jy==1 and jz==1) then
                addbox(outboxes, bendsphere)
        end
diff --git a/textures/pipeworks_pipe_end_empty.png b/textures/pipeworks_pipe_end_empty.png
new file mode 100644 (file)
index 0000000..400a85b
Binary files /dev/null and b/textures/pipeworks_pipe_end_empty.png differ
diff --git a/textures/pipeworks_pipe_end_loaded.png b/textures/pipeworks_pipe_end_loaded.png
new file mode 100644 (file)
index 0000000..5624b83
Binary files /dev/null and b/textures/pipeworks_pipe_end_loaded.png differ