Merge branch 'master' of https://github.com/Anuken/Mindustry into 7.0-features

 Conflicts:
	core/assets/bundles/bundle_fil.properties
This commit is contained in:
Anuken
2022-02-14 23:34:54 -05:00
8 changed files with 335 additions and 332 deletions

View File

@@ -2257,6 +2257,7 @@ public class UnitTypes{
backColor = Pal.heal;
frontColor = Color.white;
width = height = 12f;
shrinkY = 0f;
speed = 5f;
trailLength = 20;
trailWidth = 6f;

View File

@@ -79,9 +79,10 @@ public interface Platform{
}
default Context getScriptContext(){
Context c = Context.enter();
c.setOptimizationLevel(9);
return c;
Context context = Context.getCurrentContext();
if(context == null) context = Context.enter();
context.setOptimizationLevel(9);
return context;
}
/** Update discord RPC. */

View File

@@ -35,7 +35,7 @@ public class TractorBeamTurret extends BaseTurret{
public Sound shootSound = Sounds.tractorbeam;
public float shootSoundVolume = 0.9f;
public @Load("block-@size") TextureRegion baseRegion;
public @Load(value = "@-base", fallback = "block-@size") TextureRegion baseRegion;
public @Load("@-laser") TextureRegion laser;
public @Load(value = "@-laser-start", fallback = "@-laser-end") TextureRegion laserStart;
public @Load("@-laser-end") TextureRegion laserEnd;

View File

@@ -31,6 +31,7 @@ public class LogicDisplay extends Block{
public int maxSides = 25;
public int displaySize = 64;
public float scaleFactor = 1f;
public LogicDisplay(String name){
super(name);
@@ -104,7 +105,7 @@ public class LogicDisplay extends Block{
Draw.blend(Blending.disabled);
Draw.draw(Draw.z(), () -> {
if(buffer != null){
Draw.rect(Draw.wrap(buffer.getTexture()), x, y, buffer.getWidth() * Draw.scl, -buffer.getHeight() * Draw.scl);
Draw.rect(Draw.wrap(buffer.getTexture()), x, y, buffer.getWidth() * scaleFactor * Draw.scl, -buffer.getHeight() * scaleFactor * Draw.scl);
}
});
Draw.blend();