localised description for shortcuts

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 124
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

localised description for shortcuts

Post by Quezler »

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.
User avatar
picklock
Fast Inserter
Fast Inserter
Posts: 237
Joined: Sat Nov 09, 2019 6:49 am
Contact:

Re: localised description for shortcuts

Post by picklock »

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
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 124
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

Re: localised description for shortcuts

Post by Quezler »

Isn't that just the name? i am referring to what comes after the horizontal line under it.
User avatar
picklock
Fast Inserter
Fast Inserter
Posts: 237
Joined: Sat Nov 09, 2019 6:49 am
Contact:

Re: localised description for shortcuts

Post by picklock »

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
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 124
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

Re: localised description for shortcuts

Post by Quezler »

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
01-28-2025, 12-10-24.png (21.68 KiB) Viewed 62 times
User avatar
picklock
Fast Inserter
Fast Inserter
Posts: 237
Joined: Sat Nov 09, 2019 6:49 am
Contact:

Re: localised description for shortcuts

Post by picklock »

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
Xorimuth
Filter Inserter
Filter Inserter
Posts: 719
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: localised description for shortcuts

Post by Xorimuth »

+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`)
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Post Reply

Return to “Modding interface requests”