Types/SpriteFlags: Difference between revisions
Jump to navigation
Jump to search
(no crop description) |
Lovely santa (talk | contribs) (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: | ||
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. | |||
* "compressed" | |||
* " | == "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" | ||
* " | * "linear-mip-level" | ||
* " | * "no-scale" | ||
== "light" == | |||
== "terrain" == | |||
== "shadow" == | |||
== "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"}