The International Simutrans Forum

 

Author Topic: [GUI] Fare graph  (Read 401 times)

0 Members and 1 Guest are viewing this topic.

Offline Ranran

  • Devotee
  • *
  • Posts: 1723
  • 今日は兎汁よー
  • Languages: ja
[GUI] Fare graph
« on: December 07, 2021, 10:29:04 AM »
A question from a newbie inspired me.
Extended has a rather complicated fare system, so visualizing it would be very helpful to players. (´・ω・`)ウンチィ...ン
The patch adds two graphs to the goods list dialog that show the relationship between distance and freight for each cargo item.

The two graphs are different distance scales. The graphs are linked to the existing input options.

I had to make some changes to the chart code in order to draw a clear curve (to reflect the decimal point).
Also this patch fixes a bug that prevented the existing mode switch button from appearing in the intended position.

The following translatable words will be added by this patch.
Code: [Select]
fare_chart
fare_short
fare_long
no_speed_bonus
has_no_class

You can sample it with pull request #465.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 21030
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [GUI] Fare graph
« Reply #1 on: December 23, 2021, 03:31:37 PM »
Thank you for your work on this and apologies for the delay in replying. Attempting to merge this produces conflicts in the Japanese translation texts; I should be grateful if you could resolve these so that I can test this, as I would not be sure how to resolve conflicts in a Japanese translation file.

Thank you again.

Offline Ranran

  • Devotee
  • *
  • Posts: 1723
  • 今日は兎汁よー
  • Languages: ja
Re: [GUI] Fare graph
« Reply #2 on: December 31, 2021, 03:03:49 PM »
Attempting to merge this produces conflicts in the Japanese translation texts; I should be grateful if you could resolve these so that I can test this, as I would not be sure how to resolve conflicts in a Japanese translation file.
I think I have fixed it.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 21030
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [GUI] Fare graph
« Reply #3 on: December 31, 2021, 04:31:40 PM »
I think I have fixed it.

Excellent, thank you for that; that does indeed now work. I have incorporated this.