Types/ImageStyleSpecification: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "Extension of Types/StyleSpecification.<br> Style specification type: '''image_style''' == Optional properties == Inherits all properties from Types/StyleSpecification...")
 
(Add example)
Line 10: Line 10:
=== stretch_image_to_widget_size ===
=== stretch_image_to_widget_size ===
'''Type''': [[Types/bool|bool]]
'''Type''': [[Types/bool|bool]]
== Example ==
  data.raw["gui-style"]["default"]["stretchy-sprite"] = {
    type = "image_style",
    vertically_stretchable = "on",
    horizontally_stretchable = "on",
    stretch_image_to_widget_size = true,
  }

Revision as of 13:54, 11 November 2020

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