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
Modifier and TypeFieldDescriptionprotected DrawPart.PartParams
boolean
If true, the base + outline regions are drawn.Progress function for scaling.float
float
float
boolean
If true, the heat region produces light.float
Progress function for heat alpha.float
float
boolean
If true, parts are mirrored across the turret.float
float
float
Overrides suffix if set.boolean
If true, an outline is drawn under the part.float
Progress function for determining position/rotation.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
ConstructorDescriptionRegionPart
(String region) RegionPart
(String region, Blending blending, Color color) -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(DrawPart.PartParams params) void
getOutlines
(Seq<TextureRegion> out) void
-
Field Details
-
childParam
-
suffix
Appended to unit/weapon/block name and drawn. -
name
Overrides suffix if set. -
heat
-
regions
-
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. -
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. -
progress
Progress function for determining position/rotation. -
growProgress
Progress function for scaling. -
heatProgress
Progress function for heat alpha. -
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
-
colorTo
-
mixColor
-
mixColorTo
-
heatColor
-
children
-
moves
-
-
Constructor Details
-
RegionPart
-
RegionPart
-
RegionPart
public RegionPart()
-
-
Method Details