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.Blendingprotected DrawPart.PartParamsarc.struct.Seq<DrawPart>booleanWhether to clamp progress to (0-1).arc.graphics.Colorarc.graphics.ColorbooleanIf true, the base + outline regions are drawn.Progress function for scaling.floatfloatarc.graphics.g2d.TextureRegionarc.graphics.ColorfloatbooleanIf true, the heat region produces light.floatProgress function for heat alpha.floatfloatarc.graphics.g2d.TextureRegionbooleanIf true, parts are mirrored across the turret.arc.graphics.Colorarc.graphics.Colorfloatarc.struct.Seq<DrawPart.PartMove>floatfloatOverrides suffix if set.floatfloatbooleanIf true, an outline is drawn under the part.floatarc.graphics.g2d.TextureRegion[]Progress function for determining position/rotation.arc.graphics.g2d.TextureRegion[]booleanIf true, this part has an outline created 'in-place'.floatAppended to unit/weapon/block name and drawn.floatfloatfloatfloatfloatFields 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 TypeMethodDescriptionvoiddraw(DrawPart.PartParams params) voidgetOutlines(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