The International Simutrans Forum

 

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

0 Members and 1 Guest are viewing this topic.

Offline Ranran

  • Devotee
  • *
  • Posts: 1704
  • 今日は兎汁よー
  • Languages: ja
[GUI] Fare graph
« on: Today at 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.