Custom Launch Pad Pod Textures (#4203)

* Custom Launch Pad Pod Textures

* Facepalm

* Fix

* Fix

* Fix

Co-authored-by: Anuken <arnukren@gmail.com>

* Fix

Anuke!

Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
VozDuh 2021-01-05 23:17:18 +03:00 committed by GitHub
parent 5c24254d84
commit 5516435619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ public class LaunchPad extends Block{
public Sound launchSound = Sounds.none; public Sound launchSound = Sounds.none;
public @Load("@-light") TextureRegion lightRegion; public @Load("@-light") TextureRegion lightRegion;
public @Load("launchpod") TextureRegion podRegion; public @Load(value = "@-pod", fallback = "launchpod") TextureRegion podRegion;
public Color lightColor = Color.valueOf("eab678"); public Color lightColor = Color.valueOf("eab678");
public LaunchPad(String name){ public LaunchPad(String name){
@ -200,7 +200,7 @@ public class LaunchPad extends Block{
Draw.z(Layer.weather - 1); Draw.z(Layer.weather - 1);
TextureRegion region = Core.atlas.find("launchpod"); TextureRegion region = blockOn() instanceof mindustry.world.blocks.campaign.LaunchPad p ? p.podRegion : Core.atlas.find("launchpod");
float rw = region.width * Draw.scl * scale, rh = region.height * Draw.scl * scale; float rw = region.width * Draw.scl * scale, rh = region.height * Draw.scl * scale;
Draw.alpha(alpha); Draw.alpha(alpha);