Class RegionPart

java.lang.Object
mindustry.entities.part.DrawPart
mindustry.entities.part.RegionPart

public class RegionPart extends DrawPart
  • Field Details

    • childParam

      protected DrawPart.PartParams childParam
    • suffix

      public String suffix
      Appended to unit/weapon/block name and drawn.
    • name

      @Nullable public String name
      Overrides suffix if set.
    • heat

      public TextureRegion heat
    • regions

      public TextureRegion[] regions
    • outlines

      public TextureRegion[] outlines
    • mirror

      public boolean mirror
      If true, parts are mirrored across the turret. Requires -1 and -2 regions.
    • outline

      public boolean outline
      If true, an outline is drawn under the part.
    • drawRegion

      public boolean drawRegion
      If true, the base + outline regions are drawn. Set to false for heat-only regions.
    • heatLight

      public boolean heatLight
      If true, the heat region produces light.
    • progress

      public DrawPart.PartProgress progress
      Progress function for determining position/rotation.
    • growProgress

      public DrawPart.PartProgress growProgress
      Progress function for scaling.
    • heatProgress

      public DrawPart.PartProgress heatProgress
      Progress function for heat alpha.
    • blending

      public Blending blending
    • layer

      public float layer
    • layerOffset

      public float layerOffset
    • heatLayerOffset

      public float heatLayerOffset
    • turretHeatLayer

      public float turretHeatLayer
    • outlineLayerOffset

      public float outlineLayerOffset
    • x

      public float x
    • y

      public float y
    • xScl

      public float xScl
    • yScl

      public float yScl
    • rotation

      public float rotation
    • moveX

      public float moveX
    • moveY

      public float moveY
    • growX

      public float growX
    • growY

      public float growY
    • moveRot

      public float moveRot
    • heatLightOpacity

      public float heatLightOpacity
    • color

      @Nullable public Color color
    • colorTo

      @Nullable public Color colorTo
    • mixColor

      @Nullable public Color mixColor
    • mixColorTo

      @Nullable public Color mixColorTo
    • heatColor

      public Color heatColor
    • children

      public Seq<DrawPart> children
    • moves

      public Seq<DrawPart.PartMove> moves
  • Constructor Details

    • RegionPart

      public RegionPart(String region)
    • RegionPart

      public RegionPart(String region, Blending blending, Color color)
    • RegionPart

      public RegionPart()
  • Method Details