Types/BeaconModuleVisualizations: Difference between revisions
(0.18.32: hr beacon) |
(Migrated prototype doc to separate website) |
||
Line 1: | Line 1: | ||
'''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] | |||
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]. | |||
Used by [[Types/BeaconGraphicsSet]] ([[Prototype/Beacon]]). This is a [[Types/table]] with the below properties. | Used by [[Types/BeaconGraphicsSet]] ([[Prototype/Beacon]]). This is a [[Types/table]] with the below properties. | ||
Revision as of 17:51, 16 August 2023
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.
Used by Types/BeaconGraphicsSet (Prototype/Beacon). This is a Types/table with the below properties.
Mandatory properties
art_style
Type: 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: bool
Default: false
tier_offset
Type: int32
Default: 0
slots
Type: table (array) of table (array) of BeaconModuleVisualization
The outer array contains the different slots, the inner array contains the different layers for those slots (with different tints etc). Example:
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
}
}
}