From 8cfbbab9f3403a878c7e6afd33e5e09a66b6bde3 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Thu, 13 Jun 2024 21:26:17 -0700 Subject: [PATCH] Item Liquid Junction sprite --- .../hybrid/item-liquid-junction-item.png | Bin 0 -> 123 bytes .../hybrid/item-liquid-junction-liquid.png | Bin 0 -> 123 bytes .../blocks/hybrid/item-liquid-junction.png | Bin 0 -> 403 bytes .../blocks/hybrid/ItemLiquidJunction.java | 42 +++++++++++++++++- 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 assets/sprites/blocks/hybrid/item-liquid-junction-item.png create mode 100644 assets/sprites/blocks/hybrid/item-liquid-junction-liquid.png create mode 100644 assets/sprites/blocks/hybrid/item-liquid-junction.png diff --git a/assets/sprites/blocks/hybrid/item-liquid-junction-item.png b/assets/sprites/blocks/hybrid/item-liquid-junction-item.png new file mode 100644 index 0000000000000000000000000000000000000000..6b25a548f9c75fb3d5e902ae841e0ca224a1ad3d GIT binary patch literal 123 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}rk*a2ArY-_ z&lw6bDDbcxYP)Px$O-V#SR9J=WmOBo@Fbsy>sE0s^fq?;f1SUWXh{GU8Mvj4)IYY&Opc6+Z3=9ki zA2AvIo;0 zlm)@cHkTn{n|Zgr_cFR1%@9m~3{a`pyv#8%v;ZN@F|m{YAN?Yz)6z)MwR z)Xs4R=nXsCGYSML10nSXa0cMpQWm8XNEuK;P=*x%VGfue0KRhqD{BT!ZKu;a6PUI{ zT>%9GI}^|~-~!?DZZw-O?($|4KO_L^E>UKH`eAW3*8+rwFvT*~KnMt1jM&z list){ + super.drawPlanRegion(plan, list); + + for(int i = 0; i < 4; i++){ + Draw.rect(directionRegions[i > 1 ? 1 : 0][(plan.rotation + i) % 2], plan.drawx(), plan.drawy(), i * 90f); + } + } + + @Override + public TextureRegion[] icons(){ + return new TextureRegion[]{region}; + } + @Override public void setStats(){ super.setStats(); @@ -45,6 +76,15 @@ public boolean outputsItems(){ public class ItemLiquidJunctionBuild extends LiquidBuild{ public DirectionalItemBuffer buffer = new DirectionalItemBuffer(capacity); + @Override + public void draw(){ + Draw.rect(region, x, y); + + for(int i = 0; i < 4; i++){ + Draw.rect(directionRegions[i > 1 ? 1 : 0][(rotation + i) % 2], x, y, i * 90f); + } + } + @Override public Building getLiquidDestination(Building source, Liquid liquid){ if(!enabled || relativeSelf(source) % 2 == 0) return this;