mod参数/graphics
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 |