Package mindustry.entities.part
Class RegionPart
java.lang.Object
mindustry.entities.part.DrawPart
mindustry.entities.part.RegionPart
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.entities.part.DrawPart
DrawPart.PartFunc, DrawPart.PartMove, DrawPart.PartParams, DrawPart.PartProgress
-
Field Summary
FieldsModifier and TypeFieldDescriptionarc.graphics.Blending
protected DrawPart.PartParams
arc.struct.Seq<DrawPart>
boolean
Whether to clamp progress to (0-1).arc.graphics.Color
arc.graphics.Color
boolean
If true, the base + outline regions are drawn.Progress function for scaling.float
float
arc.graphics.g2d.TextureRegion
arc.graphics.Color
float
boolean
If true, the heat region produces light.float
Progress function for heat alpha.float
float
arc.graphics.g2d.TextureRegion
boolean
If true, parts are mirrored across the turret.arc.graphics.Color
arc.graphics.Color
float
arc.struct.Seq<DrawPart.PartMove>
float
float
Overrides suffix if set.float
float
boolean
If true, an outline is drawn under the part.float
arc.graphics.g2d.TextureRegion[]
Progress function for determining position/rotation.arc.graphics.g2d.TextureRegion[]
boolean
If true, this part has an outline created 'in-place'.float
Appended to unit/weapon/block name and drawn.float
float
float
float
float
Fields inherited from class mindustry.entities.part.DrawPart
params, recoilIndex, turretShading, under, weaponIndex
-
Constructor Summary
ConstructorsConstructorDescriptionRegionPart
(String region) RegionPart
(String region, arc.graphics.Blending blending, arc.graphics.Color color) -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(DrawPart.PartParams params) void
getOutlines
(arc.struct.Seq<arc.graphics.g2d.TextureRegion> out) void
-
Field Details
-
childParam
-
suffix
Appended to unit/weapon/block name and drawn. -
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 mirrorIf true, parts are mirrored across the turret. Requires -1 and -2 regions. -
outline
public boolean outlineIf true, an outline is drawn under the part. -
replaceOutline
public boolean replaceOutlineIf true, this part has an outline created 'in-place'. Currently vanilla only, do not use this! -
drawRegion
public boolean drawRegionIf true, the base + outline regions are drawn. Set to false for heat-only regions. -
heatLight
public boolean heatLightIf true, the heat region produces light. -
clampProgress
public boolean clampProgressWhether 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
Progress function for determining position/rotation. -
growProgress
Progress function for scaling. -
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
-
moves
-
-
Constructor Details
-
RegionPart
-
RegionPart
-
RegionPart
public RegionPart()
-
-
Method Details