Types/SpriteFlags: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Updated SpriteFlags; Added new flags as game state v0.17.42; Updated layout and added example as is with Types/EntityPrototypeFlags)
(so more info)
Line 1: Line 1:
Array ([[Types/table]]) of strings. The possible strings are listed below.
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" ==
== "no-crop" ==
Line 24: Line 21:


== "mask" ==
== "mask" ==


== "icon" ==
== "icon" ==
When this flag is set, it will automaticaly set these flags:
When this flag is set, it will automatically set these flags:
* "no-crop"
* "no-crop"
* "not-compressed"
* "not-compressed"
Line 36: Line 34:


== "light" ==
== "light" ==
When this flag is set, it will automatically set these flags:
* "no-crop"
* "no-scale"
* "mipmap"
* "linear-minification"
* "linear-magnification"
* "linear-mip-level"


== "terrain" ==
== "terrain" ==
When this flag is set, it will automatically set these flags:
* "no-crop"
* "mipmap"
* "linear-minification"
* "linear-mip-level"


== "shadow" ==
== "shadow" ==
Line 48: Line 58:


== "trilinear-filtering" ==
== "trilinear-filtering" ==
== "compressed" ==
Deprecated flag that does nothing but is kept to prevent "unknown sprite flag" errors.


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

Revision as of 12:39, 23 May 2019

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

"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 automatically set these flags:

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

"light"

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

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

"terrain"

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

  • "no-crop"
  • "mipmap"
  • "linear-minification"
  • "linear-mip-level"

"shadow"

"smoke"

"decal"

"low-object"

"trilinear-filtering"

"compressed"

Deprecated flag that does nothing but is kept to prevent "unknown sprite flag" errors.

Example

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