Types/SpriteFlags: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(no crop description)
(Updated SpriteFlags; Added new flags as game state v0.17.42; Updated layout and added example as is with Types/EntityPrototypeFlags)
Line 1: Line 1:
A [[types/string]]. Possible values:
Array ([[Types/table]]) of strings. The possible strings are listed below.


* "none"
== "none" ==
* "no-crop" - The sprite won't be automatically cropped.
When no flags, or when an invalid flag (such as "compressed") is set.
* "compressed"
 
* "trilinear-filtering"
== "no-crop" ==
The sprite won't be automatically cropped.
 
== "not-compressed" ==
 
== "always-compressed" ==
 
== "mipmap" ==
 
== "linear-minification" ==
 
== "linear-magnification" ==
 
== "linear-mip-level" ==
 
== "alpha-mask" ==
 
== "no-scale" ==
 
== "mask" ==
 
== "icon" ==
When this flag is set, it will automaticaly set these flags:
* "no-crop"
* "not-compressed"
* "mipmap"
* "linear-minification"
* "linear-minification"
* "linear-magnification"
* "linear-magnification"
* "mipmap"
* "linear-mip-level"
* "mask"
* "no-scale"
* "alpha-mask"
 
* "icon"
== "light" ==
* "light"
 
* "terrain"
== "terrain" ==
* "shadow"
 
* "smoke"
== "shadow" ==
* "decal"
 
* "low-object"
== "smoke" ==
 
== "decal" ==
 
== "low-object" ==
 
== "trilinear-filtering" ==
 
== Example ==
    flags = {"icon", "no-crop"}

Revision as of 12:30, 23 May 2019

Array (Types/table) of strings. The possible strings are listed below.

"none"

When no flags, or when an invalid flag (such as "compressed") is set.

"no-crop"

The sprite won't be automatically cropped.

"not-compressed"

"always-compressed"

"mipmap"

"linear-minification"

"linear-magnification"

"linear-mip-level"

"alpha-mask"

"no-scale"

"mask"

"icon"

When this flag is set, it will automaticaly set these flags:

  • "no-crop"
  • "not-compressed"
  • "mipmap"
  • "linear-minification"
  • "linear-magnification"
  • "linear-mip-level"
  • "no-scale"

"light"

"terrain"

"shadow"

"smoke"

"decal"

"low-object"

"trilinear-filtering"

Example

   flags = {"icon", "no-crop"}