Hi therock180 and raiguard
I've been reading the code of ltnm and the official documentation. Maybe you can help me make it happen. Seems like the only way to trigger your gui is to either press the shortcut or press the custom-input "ltnm-toggle-gui". I don't have access to your script "scripts.gui.main.toggle" and there's no function to trigger the custom input from GuiElement button or sprite-button. So I want to add a function that listens to my button press and triggers the custom-input "ltnm-toggle-gui" (preferably the custom input itself, not the default value ctrl+T), and so far, I can't find anything in the official documentation about how to trigger one without actually pressing the keys.
https://wiki.factorio.com/Tutorial:Script_interfaces#Custom_input (only shows how to listen to one)
https://wiki.factorio.com/Prototype/CustomInput
If you have the answer or an easier solution, I'll add that with an optional setting attached !
(funny you mentioned the icon, I did contribute graphically to LTN recently. https://github.com/Yousei9/Logistic-Train-Network/pull/266, I didn't touch this icon but most of the rest)