daid / EmptyEpsilon

Open source bridge simulator. Build with the SeriousProton engine.
https://daid.github.io/EmptyEpsilon/
GNU General Public License v2.0
522 stars 173 forks source link

Enable auto connect for ship window #1989

Closed aBlueShadow closed 1 year ago

aBlueShadow commented 1 year ago

This let you setup auto connect for ship windows. It reserves the 'autoconnect' values from 1000 to 1360 for ship windows with angles between 0° and 360°.

I opted for this way rather than adding a new ECrewPosition value, as ship windows are, like main screen, a special case and handled differently. Also we don't need an extra option just for the angle that way, and it is unlikely that we'll ever get to more than 1000 different stations :-)

daid commented 1 year ago

Yeah, I like this more then the crewposition method, not sure if that pull request is still open...

aBlueShadow commented 1 year ago

oh.. I actually missed or forgot about #1837, and #1816 for that matter - so that one would be fixed now. I just mentioned ECrewPosition to address the obvious question why I have not done it that way.

kpanic23 commented 1 year ago

That's perfect! And even more elegant! Thanks!