DanielKote / Foreman2

Visual planning tool for Factorio
Other
162 stars 16 forks source link

implement alt-mode #9

Closed OmarTawfik closed 2 years ago

OmarTawfik commented 2 years ago

This PR implements alt-mode (as used in the game). The Alt keyboard key toggles it on/off. it will display an overlay icon on the zoomed out nodes, to easily visualize large graphs. This makes it easy for planning mega-bases, as the entire production graph is understandable when viewing the entire base.

image

DanielKote commented 2 years ago

Sounds like a decent idea, but it wouldnt work as it is - there are a couple of conflicts with the current draw operations plus ALT is currently used for the selection (as in - ctrl select will add to selection and alt select will remove from selection). I made a variation of this idea which works a bit more seamlessly and added it to the current repository, with some ideas taken from this pull request. Check it out.