[2.0.68] CustomTooltipField doesn't show up on Recipes
Posted: Fri Sep 26, 2025 12:21 am
As the title states, we cannot do custom tooltips on recipes when we can still do localized descriptions (the old method of custom tooltips)
Since it's on the Prototype I would've expected it to work on at least the major four (Items, Entities, Recipes, and Technologies).
I can concede it maybe not showing up on Technologies, but Recipes seems like an oversight.
Sample code snippet:
Results:
Since it's on the Prototype I would've expected it to work on at least the major four (Items, Entities, Recipes, and Technologies).
I can concede it maybe not showing up on Technologies, but Recipes seems like an oversight.
Sample code snippet:
Code: Select all
local custom_tooltips = {
{
name = "TEST TOOLTIP",
value = "SHOULD SHOW UP"
}
}
data.raw["item"]["iron-plate"].custom_tooltip_fields = custom_tooltips
data.raw["recipe"]["basic-oil-processing"].custom_tooltip_fields = custom_tooltips
data.raw["technology"]["oil-processing"].custom_tooltip_fields = custom_tooltips
local custom_description = "TEST DESCRIPTION: SHOULD SHOW UP"
data.raw["item"]["iron-plate"].localised_description = custom_description
data.raw["recipe"]["basic-oil-processing"].localised_description = custom_description
data.raw["technology"]["oil-processing"].localised_description = custom_description