Page 1 of 1
Middle-mouse-clicking on anything
Posted: Sun Apr 12, 2020 11:41 am
by ixu
TL;DR
Fire an event when the user clicks in a special way (for instance by middle-mouse-clicking) on any entity or item - anywhere in the game
What ?
When the user clicks in a special way (instance by middle-mouse-clicking) on any entity or item anywhere in the game a special-click-event shall be fired.
This can be used for mod developers to jump into a help system like for example "Where is it made?"
You can see this in Evospace:

- Evospace.help.system.png (1.54 MiB) Viewed 1643 times
Or from crafting options:

- Evospace.help.system.2.png (1.21 MiB) Viewed 1643 times
Or even from help window itself:

- Evospace.help.system.3.png (370.47 KiB) Viewed 1643 times

- Evospace.help.system.4.png (386.75 KiB) Viewed 1643 times
Re: Middle-mouse-clicking on anything
Posted: Mon Mar 22, 2021 1:22 pm
by Bilka
This was implemented with
https://wiki.factorio.com/Prototype/Cus ... _prototype so it can be used with any custom keybinding.
Modding interface request thread:
96125
Re: Middle-mouse-clicking on anything
Posted: Mon Mar 22, 2021 5:39 pm
by ixu
Amazing!
Thank you Devs!