Types/ElementImageSetLayer: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "A table. == Optional properties == === draw_type === '''Type''': string '''Default'': "inner" Either "inner" or "outer". === type === '''...")
 
(Removed old prototype docs)
Tag: Replaced
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A [[types/table|table]].
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/ElementImageSetLayer.html https://lua-api.factorio.com/latest/types/ElementImageSetLayer.html]


== Optional properties ==
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
 
=== draw_type ===
'''Type''': [[Types/string|string]]
 
'''Default'': "inner"
 
Either "inner" or "outer".
 
=== type ===
'''Type''': [[Types/string|string]]
 
Either "composition" or "none".
 
=== tint ===
'''Type''': [[Types/Color|Color]]
 
'''Default''': {r=1, g=1, b=1} (white)
 
Only loaded if <code>type</code> is "composition".
 
=== center ===
'''Type''': [[Types/Sprite|Sprite]]
 
If none of "center", "left", "left_top", "left_bottom", "right", "right_top", "right_bottom", "top" or "bottom" exist, the entire ElementImageSetLayer is loaded as a [[Types/Sprite|Sprite]] which then gets used as "center".
 
Only loaded if <code>type</code> is "composition".
 
=== left ===
'''Type''': [[Types/Sprite|Sprite]]
 
Only loaded if <code>type</code> is "composition".
 
=== left_top ===
'''Type''': [[Types/Sprite|Sprite]]
 
Only loaded if <code>type</code> is "composition".
 
=== left_bottom ===
'''Type''': [[Types/Sprite|Sprite]]
 
Only loaded if <code>type</code> is "composition".
 
=== right ===
'''Type''': [[Types/Sprite|Sprite]]
 
Only loaded if <code>type</code> is "composition".
 
=== right_top ===
'''Type''': [[Types/Sprite|Sprite]]
 
Only loaded if <code>type</code> is "composition".
 
=== right_bottom ===
'''Type''': [[Types/Sprite|Sprite]]
 
Only loaded if <code>type</code> is "composition".
 
=== top ===
'''Type''': [[Types/Sprite|Sprite]]
 
Only loaded if <code>type</code> is "composition".
 
=== bottom ===
'''Type''': [[Types/Sprite|Sprite]]
 
Only loaded if <code>type</code> is "composition".
 
=== corner_size ===
'''Type''': [[Types/uint16|uint16]] or [[Types/table|table]] of [[Types/uint16|uint16]]
 
If this is an array, the first member of the array is width and the second is height. Otherwise the size is both width and  height.
 
Only loaded if <code>type</code> is "composition".
 
=== filename ===
'''Type''': [[Types/FileName|FileName]]
 
Only loaded if <code>corner_size</code> exists. Only loaded if <code>type</code> is "composition".
 
=== position ===
'''Type''': [[Types/Position|Position]]
 
Mandatory if <code>corner_size</code> exists. Only loaded if <code>type</code> is "composition".
 
=== load_in_minimal_mode ===
'''Type''': [[Types/bool|bool]]
 
'''Default''': true
 
Only loaded if <code>corner_size</code> exists. Only loaded if <code>type</code> is "composition".
 
=== top_width ===
'''Type''': [[Types/SpriteSizeType|SpriteSizeType]]
 
'''Default''': 1
 
Only loaded if <code>corner_size</code> exists. Only loaded if <code>type</code> is "composition".
 
=== bottom_width ===
'''Type''': [[Types/SpriteSizeType|SpriteSizeType]]
 
'''Default''': 1
 
Only loaded if <code>corner_size</code> exists. Only loaded if <code>type</code> is "composition".
 
=== left_height ===
'''Type''': [[Types/SpriteSizeType|SpriteSizeType]]
 
'''Default''': 1
 
Only loaded if <code>corner_size</code> exists. Only loaded if <code>type</code> is "composition".
 
=== right_height ===
'''Type''': [[Types/SpriteSizeType|SpriteSizeType]]
 
'''Default''': 1
 
Only loaded if <code>corner_size</code> exists. Only loaded if <code>type</code> is "composition".
 
=== center_width ===
'''Type''': [[Types/SpriteSizeType|SpriteSizeType]]
 
'''Default''': 1
 
Only loaded if <code>corner_size</code> exists. Only loaded if <code>type</code> is "composition".
 
=== center_height ===
'''Type''': [[Types/SpriteSizeType|SpriteSizeType]]
 
'''Default''': 1
 
Only loaded if <code>corner_size</code> exists. Only loaded if <code>type</code> is "composition".
 
=== scale ===
'''Type''': [[Types/double|double]]
 
'''Default''': 1
 
Only loaded if <code>corner_size</code> exists. Only loaded if <code>type</code> is "composition".
 
=== top_border ===
'''Type''': [[Types/int32|int32]]
 
Only loaded if <code>type</code> is "composition".
 
=== right_border ===
'''Type''': [[Types/int32|int32]]
 
Only loaded if <code>type</code> is "composition".
 
=== bottom_border ===
'''Type''': [[Types/int32|int32]]
 
Only loaded if <code>type</code> is "composition".
 
=== left_border ===
'''Type''': [[Types/int32|int32]]
 
Only loaded if <code>type</code> is "composition".
 
=== border ===
'''Type''': [[Types/int32|int32]]
 
Sets <code>top_border</code>, <code>right_border</code>, <code>bottom_border</code> and <code>left_border</code>.
 
Only loaded if <code>corner_size</code> doesn't exists. Only loaded if <code>type</code> is "composition".
 
=== stretch_monolith_image_to_size ===
'''Type''': [[Types/bool|bool]]
 
'''Default''': true
 
=== left_tiling ===
'''Type''': [[Types/bool|bool]]
 
'''Default''': false
 
=== right_tiling ===
'''Type''': [[Types/bool|bool]]
 
'''Default''': false
 
=== top_tiling ===
'''Type''': [[Types/bool|bool]]
 
'''Default''': false
 
=== bottom_tiling ===
'''Type''': [[Types/bool|bool]]
 
'''Default''': false
 
=== center_tiling_vertical ===
'''Type''': [[Types/bool|bool]]
 
'''Default''': false
 
=== center_tiling_horizontal ===
'''Type''': [[Types/bool|bool]]
 
'''Default''': false
 
=== overall_tiling_horizontal_size ===
'''Type''': [[Types/uint16|uint16]]
 
'''Default''': 0
 
=== overall_tiling_horizontal_spacing ===
'''Type''': [[Types/uint16|uint16]]
 
'''Default''': 0
 
=== overall_tiling_horizontal_padding ===
'''Type''': [[Types/uint16|uint16]]
 
'''Default''': 0
 
=== overall_tiling_vertical_size ===
'''Type''': [[Types/uint16|uint16]]
 
'''Default''': 0
 
=== overall_tiling_vertical_spacing ===
'''Type''': [[Types/uint16|uint16]]
 
'''Default''': 0
 
=== overall_tiling_vertical_padding ===
'''Type''': [[Types/uint16|uint16]]
 
'''Default''': 0
 
=== custom_horizontal_tiling_sizes ===
'''Type''': [[Types/table|table]] of [[Types/uint16|uint16]]
 
=== opacity ===
'''Type''': [[Types/double|double]]
 
'''Default''': 1
 
=== background_blur ===
'''Type''': [[Types/bool|bool]]
 
'''Default''': false
 
=== background_blur_sigma ===
'''Type''': [[Types/float|float]]
 
'''Default''': 4 if <code>background_blur</code> is true
 
=== top_outer_border_shift ===
'''Type''': [[Types/int32|int32]]
 
'''Default''': 0
 
=== bottom_outer_border_shift ===
'''Type''': [[Types/int32|int32]]
 
'''Default''': 0
 
=== right_outer_border_shift ===
'''Type''': [[Types/int32|int32]]
 
'''Default''': 0
 
=== left_outer_border_shift ===
'''Type''': [[Types/int32|int32]]
 
'''Default''': 0

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/ElementImageSetLayer.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.