Types/ImageStyleSpecification

From Official Factorio Wiki
Revision as of 13:54, 11 November 2020 by DaveMcW (talk | contribs) (Add example)
Jump to navigation Jump to search

Extension of Types/StyleSpecification.
Style specification type: image_style

Optional properties

Inherits all properties from Types/StyleSpecification.

graphical_set

Type: ElementImageSet

stretch_image_to_widget_size

Type: bool

Example

 data.raw["gui-style"]["default"]["stretchy-sprite"] = {
   type = "image_style",
   vertically_stretchable = "on",
   horizontally_stretchable = "on",
   stretch_image_to_widget_size = true,
 }