Page 1 of 1

localised description for shortcuts

Posted: Mon Jan 27, 2025 10:32 am
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.

Re: localised description for shortcuts

Posted: Tue Jan 28, 2025 6:06 am
by picklock
You can give your shortcut a description by assigning the description to your shortcut via "localised_name".

Re: localised description for shortcuts

Posted: Tue Jan 28, 2025 9:16 am
by Quezler
Isn't that just the name? i am referring to what comes after the horizontal line under it.

Re: localised description for shortcuts

Posted: Tue Jan 28, 2025 10:37 am
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?

Re: localised description for shortcuts

Posted: Tue Jan 28, 2025 11:11 am
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:

Re: localised description for shortcuts

Posted: Tue Jan 28, 2025 11:54 am
by picklock
OK. Then I misunderstood you.

Re: localised description for shortcuts

Posted: Tue Jan 28, 2025 12:07 pm
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`)

Re: localised description for shortcuts

Posted: Tue Feb 04, 2025 5:07 pm
by protocol_1903
+1