Types/BeaconModuleVisualizations: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.18.32: hr beacon)
 
(Removed old prototype docs)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Used by [[Types/BeaconGraphicsSet]] ([[Prototype/Beacon]]). This is a [[Types/table]] with the below properties.
<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/BeaconModuleVisualizations.html https://lua-api.factorio.com/latest/types/BeaconModuleVisualizations.html]


== Mandatory 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>
 
=== art_style ===
'''Type''': [[Types/string|string]]
The visualization is chosen based on the [[Prototype/Module#art_style]], meaning if module art style == beacon module visualization art style then this visualization is chosen. Vanilla uses "vanilla" here.
 
== Optional properties ==
 
=== use_for_empty_slots ===
'''Type''': [[Types/bool|bool]]
 
'''Default''': false
 
=== tier_offset ===
'''Type''': [[Types/int32|int32]]
 
'''Default''': 0
 
=== slots ===
'''Type''': [[Types/table|table]] (array) of [[Types/table|table]] (array) of [[Types/BeaconModuleVisualization|BeaconModuleVisualization]]
 
The outer array contains the different slots, the inner array contains the different layers for those slots (with different tints etc). Example:
<syntaxhighlight lang="lua">
slots =
{
  { --slot 1
    { --layer 1 of slot 1
      BeaconModuleVisualization data
    },
    { --layer 2 of slot 1
      BeaconModuleVisualization data
    }
  },
  { --slot 2
    { --layer 1 of slot 2
      BeaconModuleVisualization data
    },
    { --layer 2 of slot 2
      BeaconModuleVisualization data
    },
    { --layer 3 of slot 2
      BeaconModuleVisualization data
    }
  }
}</syntaxhighlight>

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/BeaconModuleVisualizations.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.