Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# CustomTooltipField - Prototype Docs

## CustomTooltipField :: struct

Allows to add extra description items to the tooltip.

## Properties

- default
- sorted

name | :: LocalisedString |
value | :: LocalisedString |
quality_header optional | :: string |
quality_values optional | :: dictionary[QualityID → LocalisedString] | Custom values per quality level. [...]
Custom values per quality level. [...]
order optional | :: uint8 | Ordering within all description items (modded and un-modded). [...]
Ordering within all description items (modded and un-modded). [...]
show_in_factoriopedia optional | :: boolean |
show_in_tooltip optional | :: boolean |

name | :: LocalisedString |
value | :: LocalisedString |
order optional | :: uint8 | Ordering within all description items (modded and un-modded). [...]
Ordering within all description items (modded and un-modded). [...]
quality_header optional | :: string |
quality_values optional | :: dictionary[QualityID → LocalisedString] | Custom values per quality level. [...]
Custom values per quality level. [...]
show_in_factoriopedia optional | :: boolean |
show_in_tooltip optional | :: boolean |

## Properties

### name :: LocalisedString

### value :: LocalisedString

### quality_header :: string optional

Default: `"quality-tooltip.increases"`

### quality_values :: dictionary[QualityID → LocalisedString] optional

Custom values per quality level. If a value is not provided for a specific quality, CustomTooltipField::value will be used instead.

### order :: uint8 optional

Default: `100`

Ordering within all description items (modded and un-modded). Items with smaller order values are shown above items with larger values.

### show_in_factoriopedia :: boolean optional

Default: `true`

### show_in_tooltip :: boolean optional

Default: `true`

Type used in

- Prototype::custom_tooltip_fields