ZoeBijl / airlinesim-enhancement-suite

Enhancement suite for the popular airlinesim.aero game.
MIT License
3 stars 2 forks source link

feat: add AS Route Map link #35

Open ZoeBijl opened 3 weeks ago

ZoeBijl commented 3 weeks ago

A preconfigured link to the airlines AS Route Map would be helpful!

Baymax2909 commented 2 weeks ago

I thought a little bit about this feature and want to discuss a possible implementation.

The URL itself is built up the following way: https://www.asroutemap.com/rm.asp?w={world}&c={company}

The problem with that is there is no automatic creation if the airline was not created before. A possible solution is to always update the airline before redirecting to the AS route map site.

Airline creation works exactly like updating one by calling this URL: https://www.asroutemap.com/updatefpn.asp?w={world}&c={company}

I think the implementation could be useful in three locations:

  1. Right below the in-game map as a fourth option (like AS XTH Tools)
  2. On the dashboard (like AS XTH Tools)
  3. In the AES-menu

Apart from the implementation described above, the question arises as to what the future structure of the project should be. With the current structure, I would write it in the content_enterpriceOverview.js file. I look forward to your feedback.