Types/RotatedSprite: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "Specifies series of sprites used to visualise different rotations of the object. pictures = { filename = "__base__/graphics/entity/radar/radar.png", prior...")
 
No edit summary
Line 1: Line 1:
== Basics ==
Specifies series of sprites used to visualise different rotations of the object.
Specifies series of sprites used to visualise different rotations of the object.


== Properties ==
=== filename ===
'''Type''':[[Types/FileName]]
=== priority ===
'''Type''':[[Types/string]]
Possible values:
*extra-high
*high
*medium
*low
*very low
=== frame_width ===
'''Type''': [[Types/unsigned]]
Width of single frame in pixels.
=== frame_height ===
'''Type''': [[Types/unsigned]]
Height of single frame in pixels
=== x ===
'''Type''': [[Types/unsigned]]
'''Default''': 0
Horizontal position of the animation in the source file in pixels.
=== y ===
'''Type''': [[Types/unsigned]]
'''Default''': 0
Vertical position of the animation in the source file in pixels.
=== shift ===
'''Type''': [[Types/Vector]]
'''Default''': 0
=== scale ===
'''Type''': [[Types/double]]
'''Default''': 1
Values different than 1 specify the scale of the picture on default zoom.
Scale 2 means that the picture will be 2 times bigger on screen (and more pixelated).
== Example ==
     pictures =
     pictures =
     {
     {

Revision as of 12:59, 19 March 2014

Basics

Specifies series of sprites used to visualise different rotations of the object.

Properties

filename

Type:Types/FileName

priority

Type:Types/string

Possible values:

  • extra-high
  • high
  • medium
  • low
  • very low

frame_width

Type: Types/unsigned

Width of single frame in pixels.

frame_height

Type: Types/unsigned

Height of single frame in pixels

x

Type: Types/unsigned

Default: 0

Horizontal position of the animation in the source file in pixels.

y

Type: Types/unsigned

Default: 0

Vertical position of the animation in the source file in pixels.

shift

Type: Types/Vector

Default: 0

scale

Type: Types/double

Default: 1

Values different than 1 specify the scale of the picture on default zoom. Scale 2 means that the picture will be 2 times bigger on screen (and more pixelated).

Example

   pictures =
   {
     filename = "__base__/graphics/entity/radar/radar.png",
     priority = "low",
     frame_width = 169,
     frame_height = 140,
     axially_symmetrical = false,
     apply_proejction = false,
     direction_count = 64,
     line_length = 8,
     shift = {1.15, 0.75}
   }