[Solved] Rich text input assistant GUI
Posted: Thu Jul 25, 2019 10:13 pm
My main use would be using icons in station names (e.g., "Copper ore unload", "Copper ore load 1", etc.). Replacing those text with icons (as rich text) would be nice and quick to look up. Another use could be typing those rich text into chat.
I expect the following features to be in the mod (main directions, but can be adjusted if needed):
PS: I am a modder myself, but I am very unfamiliar with GUI in Factorio. And I don't know how to handle potential out of sync problem (caused by GUI) in multiplayer game. So I would leave this whole idea to expert modder(s).
Solution:
LuziferSenpai has kindly created mod Rich Text Helper. Check it out!
I expect the following features to be in the mod (main directions, but can be adjusted if needed):
- A small main GUI on the side (or movable), with clickable icon categories (item, fluid, signal) buttons/checkboxes.
- When an icon category is selected, a new panel (either new pop-up or just within main GUI) having all available icons shown as buttons. Somehow look like the player crafting menu, or chart tag icon selection.
- A text field in the main GUI. When one of the above icon button is pressed, the mod generates the corresponding rich text in this text field.
- If possible, clicking those icon buttons will "automatically" copy the rich text to clipboard directly. (Does this operation exist in Factorio?)
- The generated text can then be pasted by player, into the station name input field or chat.

PS: I am a modder myself, but I am very unfamiliar with GUI in Factorio. And I don't know how to handle potential out of sync problem (caused by GUI) in multiplayer game. So I would leave this whole idea to expert modder(s).
Solution:
LuziferSenpai has kindly created mod Rich Text Helper. Check it out!