localised description for shortcuts
localised description for shortcuts
Currently shortcuts either have the spawned item's description or nothing at all, it would be nice if you could add a description for lua shortcuts and such.
Re: localised description for shortcuts
You can give your shortcut a description by assigning the description to your shortcut via "localised_name".
My Mods: Picklocks Fusion Power | Picklocks Inserter | Picklocks Lithium Polymer Accumulator | Picklocks rocket silo stats | Picklocks Set Inventory Filters | Picklocks QuickBar Import/Export | Picklocks Nauvis Cliff-Explosives
Re: localised description for shortcuts
Isn't that just the name? i am referring to what comes after the horizontal line under it.
Re: localised description for shortcuts
No, this is the text that is displayed as a tooltip when you hover over the shortcut icon in the shortcut bar. Do you mean something else?
My Mods: Picklocks Fusion Power | Picklocks Inserter | Picklocks Lithium Polymer Accumulator | Picklocks rocket silo stats | Picklocks Set Inventory Filters | Picklocks QuickBar Import/Export | Picklocks Nauvis Cliff-Explosives
Re: localised description for shortcuts
You can currently only set the name, the description is only there when the shortcut spawns an item, otherwise it is always blank:
- Attachments
-
- 01-28-2025, 12-10-24.png (21.68 KiB) Viewed 1807 times
Re: localised description for shortcuts
OK. Then I misunderstood you.
My Mods: Picklocks Fusion Power | Picklocks Inserter | Picklocks Lithium Polymer Accumulator | Picklocks rocket silo stats | Picklocks Set Inventory Filters | Picklocks QuickBar Import/Export | Picklocks Nauvis Cliff-Explosives
Re: localised description for shortcuts
+1
Specifically I'd like to be able to alter the description of the Spidertron Remote shortcut. Currently it is hardcoded, and I can sort of override it by re-defining the locale key of one of the bullet points but
a) that looks a bit weird as I can only alter text of existing bullet points, not add more
b) I can't do that dynamically depending on mod settings, existence of other mods, etc, which I would like to be able to do (so I need `localised_description`)
Specifically I'd like to be able to alter the description of the Spidertron Remote shortcut. Currently it is hardcoded, and I can sort of override it by re-defining the locale key of one of the bullet points but
a) that looks a bit weird as I can only alter text of existing bullet points, not add more
b) I can't do that dynamically depending on mod settings, existence of other mods, etc, which I would like to be able to do (so I need `localised_description`)
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
- protocol_1903
- Filter Inserter

- Posts: 490
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: localised description for shortcuts
+1
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
Buy me a coffee
https://mods.factorio.com/user/protocol_1903
Buy me a coffee
Re: localised description for shortcuts
+1
Just to clarify, if you define a "spawn-item" shortcut, and both that item and the shortcut have a localised_description, what should happen?
Just to clarify, if you define a "spawn-item" shortcut, and both that item and the shortcut have a localised_description, what should happen?
Re: localised description for shortcuts
Shortcuts already support localised_description. The only issue I found is the spawn-item type would always force-take the description from the spawned item if it existed and was valid. I've fixed that for 2.1 so it will take the description if no other description was set yet (if the shortcut didn't have a valid one).
Code: Select all
{
type = "shortcut",
name = "lua-shortcut",
order = "b[blueprints]-g[blueprint]",
action = "lua",
localised_name = {"shortcut.make-blueprint"},
localised_description = {"", "This is my custom description on a lua shortcut."};
style = "blue",
icon = "__base__/graphics/icons/shortcut-toolbar/mip/new-blueprint-x56.png",
icon_size = 56,
small_icon = "__base__/graphics/icons/shortcut-toolbar/mip/new-blueprint-x24.png",
small_icon_size = 24
}If you want to get ahold of me I'm almost always on Discord.
Re: localised description for shortcuts
> Shortcuts already support localised_description.
looks like that is new in 2.1 then, in 2.0 the localised_description on shortcuts is completely ignored.
glad to hear that in addition to that fix the localised_description will override the description of whatever item the shortcut might spawn.
looks like that is new in 2.1 then, in 2.0 the localised_description on shortcuts is completely ignored.
glad to hear that in addition to that fix the localised_description will override the description of whatever item the shortcut might spawn.
Re: localised description for shortcuts
Ah, my mistake - I only tested in 2.1 under the assumption nobody was changing this logic (since I didn't remember anything around it). It looks like it was fixed as a side effect of the fix for this report 131555
So, both issues are fixed in 2.1.
So, both issues are fixed in 2.1.
If you want to get ahold of me I'm almost always on Discord.

