Allow to specify textfield decoration

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
curiosity
Filter Inserter
Filter Inserter
Posts: 326
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Allow to specify textfield decoration

Post by curiosity »

What is textfield decoration? Additional text around the value of the textfield. Most prominently visible in the train GUI and Sounds and Interface game settings.

The most practical way to do this, in my opinion, would be to let the user specify a LocalisedString. Then, when it's time to display text with decoration, one of the localised string's arguments (either first or last) gets set to the value of the textfield and the resulting localised string is displayed in place of the value.

For players it shall function exactly like the native textfield with decoration.

Post Reply

Return to “Modding interface requests”