Types/ModuleSpecification: Difference between revisions
Jump to navigation
Jump to search
(Changed links going to the redirect Types/uint to go to Types/uint32.) |
(0.16) |
||
Line 2: | Line 2: | ||
The number of module slots in this entity, and their icon positions. | The number of module slots in this entity, and their icon positions. | ||
== | == Optional properties == | ||
=== module_slots === | === module_slots === | ||
'''Type''': [[Types/ | '''Type''': [[Types/ItemStackIndex]] | ||
'''Default''': 0 | |||
The number of module slots in this entity. | The number of module slots in this entity. | ||
== | |||
==== module_info_icon_shift | === module_info_max_icons_per_row === | ||
'''Type''': [[Types/uint8]] | |||
'''Default''': width of entity selection box / 0.75 | |||
=== module_info_max_icon_rows === | |||
'''Type''': [[Types/uint8]] | |||
'''Default''': width of entity selection box / 1.5 | |||
=== module_info_icon_shift === | |||
'''Type''': [[Types/vector]] | '''Type''': [[Types/vector]] | ||
==== module_info_multi_row_initial_height_modifier | '''Default''': {0, 0.7} | ||
'''Type''': [[Types/ | |||
=== module_info_icon_scale === | |||
'''Type''': [[Types/float]] | |||
'''Default''': 0.5 | |||
=== module_info_separation_multiplier === | |||
'''Type''': [[Types/float]] | |||
'''Default''': 1.1 | |||
=== module_info_multi_row_initial_height_modifier === | |||
'''Type''': [[Types/float]] | |||
'''Default''': -0.1 | |||
==Example== | ==Example== |
Latest revision as of 09:41, 11 February 2019
Basics
The number of module slots in this entity, and their icon positions.
Optional properties
module_slots
Type: Types/ItemStackIndex
Default: 0
The number of module slots in this entity.
module_info_max_icons_per_row
Type: Types/uint8
Default: width of entity selection box / 0.75
module_info_max_icon_rows
Type: Types/uint8
Default: width of entity selection box / 1.5
module_info_icon_shift
Type: Types/vector
Default: {0, 0.7}
module_info_icon_scale
Type: Types/float
Default: 0.5
module_info_separation_multiplier
Type: Types/float
Default: 1.1
module_info_multi_row_initial_height_modifier
Type: Types/float
Default: -0.1
Example
module_specification =
{
module_slots = 2,
module_info_icon_shift = {0, 0.5},
module_info_multi_row_initial_height_modifier = -0.3
}