Types/SpriteFlags: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(so more info)
(0.17.47)
Line 21: Line 21:


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


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


== "light" ==
== "light" ==

Revision as of 09:24, 10 June 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"
  • "no-scale"
  • "mipmap"
  • "linear-minification"
  • "linear-magnification"
  • "linear-mip-level"
  • "not-compressed"

"gui"

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

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

"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"}