mod参数/graphics

来自RustedWarfare Wiki
image:
file (image)
描述File path to png image.
image_back:
file (image)
描述An optional image drawn behind other units. Useful for factories that units exit
image_shield
file (image)
描述Image to show as a custom shield
image_wreak:
file (image)
描述Image to use when unit dies. Can be NONE to leave no wreak
image_offsetX:
int
描述Use this to adjust the graphics of a unit if it is too far off one side
image_offsetY:
int
描述Use this to adjust the graphics of a unit if it is too far off one side
image_offsetH:
int
描述"Use this to adjust the height of the graphic, especially when using decals"
image_floatingPointSize
int
描述Fixes of by 1 pixel sizing for images with widths and/or height that has odd value
isVisible
logic
描述If false will hide the unit.
isVisibleToEnemies
bool
描述Only visible to player and allies when false. Recommend with showOnMinimapToEnemies. Useful for stealth units.
teamColoringMode
描述"How pixels are used for team coloring, options: pureGreen (default), hueAdd, hueShift, disabled"
scaleImagesTo:
float
描述"Resize image to fit this value in pixels. Effects leg, and shadow images as well."
imageScale:
float
描述"Resize image. Defaults to 1. Effects leg, and shadow images as well."
drawLayer:
string
描述"Land units normally default to ground or ground2 if transport. Options: wreaks, underwater, bottom, ground, ground2, experimentals, air, top"
whenBeingBuiltMakeTransparentTill
float
描述"How long the transparent effect is applied to incomplete units, set to 0 to disable completely. Default: 1"
icon_zoomed_out
file (image)
描述Sets the custom image of the unit icon on the zoomed out battle map
icon_zoomed_out_neverShow
bool
描述Sets wheather show the unit icon or not on the zoomed out battle map
icon_build
file (image)
描述Displays icon of the unit on Build Panel
image_turret:
file (image)
描述"Default image for all turrets, can also be set per turret"
teamColorsOnTurret:
bool
描述Defaults false. Apply team colours on turret as well. Also effects pre-turret images
scaleTurretImagesTo:
float
描述"Will cause crash if image_turret is not specified, even if image is set per turret"
lock_body_rotation_with_main_turret:
bool
描述Locks body image locked to first turret's direction
lock_leg_rotation_with_main_turret
bool
描述Locks legs and arms to first turret's direction
image_shadow:
file (image)
描述"Image file, NONE, AUTO or AUTO_ANIMATED. (AUTO will use image and make it transparent black only.)"
shadowOffsetX:
float
描述Adjusts shadow horizontally
shadowOffsetY:
float
描述Adjusts shadow vertically
image_shadow_frames
bool
描述If shadow image should use frame animation of main image. .Alternative to AUTO_ANIMATED shadow value.
lock_shadow_rotation_with_main_turret:
bool
描述Locks body image shadow locked to first turret's direction
total_frames
int
描述Defaults to 1. Animations require this.
frame_width:
int
描述"Calculated for you if total frames is set, but can be overridden"
frame_height:
int
描述Defaults to image height
default_frame
int
描述Default frame when not playing an animation. First frame is 0
splastEffect:
bool
描述True to create a water wave effect when over water. Default false
dustEffect:
bool
描述True to create a dust effect when over land. Default false
splastEffectReverse:
bool
描述True to also create effect when unit is reversing
dustEffectReverse:
bool
描述True to also create effect when unit is reversing
movementEffect
effect
描述"Custom movement effect, can be anything"
movementEffectReverse
effect
描述Reversed version of movementEffect: key
movementEffectRate
float
描述Sets the frequency of effects being spawned while moving
movementEffectReverseFlipEffects
bool
描述Create effect as if unit has rotated 180 when reversing
repairEffect
effect ref
描述"Custom repair effect, can be anything. Replaces default effect from builders"
repairEffectAtTarget
effect
描述Custom repair effect towards the repaired target
repairEffectRate
int
描述"Sets the frequency of effects being spawned while repairing. Defaults to 5, affects both sides."
reclaimEffect
effect
描述"Custom reclaim effect, can be anything. Replaces default effect from builders"
reclaimEffectAtTarget
effect
描述Custom reclaim effect towards the reclaimed target
reclaimEffectRate
int
描述"Sets the frequency of effects being spawned while reclaiming. Defaults to 5, affects both sides."
rotate_with_direction:
bool
描述Defaults to true. Makes unit body image locked to 0 degrees when false. Often used with animation_direction_*
animation_direction_units:
float
描述"45 for 8 directions, 90 for 4 direction animation. Used with rotate_with_direction:false"
animation_direction_strideX:
int
描述Animation frames to offset on direction change.
animation_direction_strideY:
int
描述Animation frames to offset on direction change. Used with frame_height.
animation_direction_starting:
float
描述Direction for first frame
disableLowHpFire
bool
描述"Defaults to false. When true, removes the flames on severely damaged unit/structure."
disableLowHpSmoke
bool
描述"Defaults to false. When true, removes the smokes on severely damaged unit/structure."
showTransportBar:
bool
描述Defaults to true. Shows the transport bar for transport units.
showHealthBar
bool
描述"Defaults to true. Shows the health bar of a unit. (Still hidden even if true when ""Always show unit health"" setting is disabled.)"
showEnergyBar
bool
描述Defaults to true. Shows the energy bar of a unit.
showShieldBar
bool
描述Defaults to true. Shows the shield bar of a unit. Also affects the presence of set custom shield sprite.
showQueueBar
bool
描述Defaults to true. Shows the bar for build or action queue of a unit.
showShotDelayBar
bool
描述Defaults to true. Shows the shot delay/warmup of a unit before firing.
showSelectionIndicator
bool
描述Defaults to true. Shows select circle/box if true
teamColorsUseHue:
bool
描述False: Green pixels on unit gets converted to team color. True: Whole unit is tinted the team colour. Defaults to false
animation_TYPE_start:
int
描述"TYPE can be set to: attack, moving, idle. Use [animation] section instead for more control"
animation_TYPE_end:
int
描述"End frame, must be larger then start"
animation_TYPE_scale_start:
float
描述Scale unit image. Defaults to 1. Useful for bio units or breathing effects.
animation_TYPE_scale_end:
float
描述Scale unit image. Defaults to 1. Useful for bio units or breathing effects.
animation_TYPE_speed:
float
描述Delay for each frame of animation. Larger values cause slower animation
animation_TYPE_pingPong:
bool
描述Play animation in reverse before repeating. Useful with scale_start/scale_end