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 arc.graphics.g2d.TextureRegion heat
    • light

      public arc.graphics.g2d.TextureRegion light
    • regions

      public arc.graphics.g2d.TextureRegion[] regions
    • outlines

      public arc.graphics.g2d.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.
    • replaceOutline

      public boolean replaceOutline
      If true, this part has an outline created 'in-place'. Currently vanilla only, do not use this!
    • 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.
    • clampProgress

      public boolean clampProgress
      Whether to clamp progress to (0-1). If false, allows usage of interps that go past the range, but may have unwanted visual bugs depending on values.
    • 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 arc.graphics.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
    • originX

      public float originX
    • originY

      public float originY
    • 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 arc.graphics.Color color
    • colorTo

      @Nullable public arc.graphics.Color colorTo
    • mixColor

      @Nullable public arc.graphics.Color mixColor
    • mixColorTo

      @Nullable public arc.graphics.Color mixColorTo
    • heatColor

      public arc.graphics.Color heatColor
    • children

      public arc.struct.Seq<DrawPart> children
    • moves

      public arc.struct.Seq<DrawPart.PartMove> moves
  • Constructor Details

    • RegionPart

      public RegionPart(String region)
    • RegionPart

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

      public RegionPart()
  • Method Details