Skip to content

ADD: average transport density chart to line list screen#580

Open
kanyao1230 wants to merge 1 commit into
teamhimeh:OTRP-KUTAv6from
kanyao1230:feature/transport-density-chart
Open

ADD: average transport density chart to line list screen#580
kanyao1230 wants to merge 1 commit into
teamhimeh:OTRP-KUTAv6from
kanyao1230:feature/transport-density-chart

Conversation

@kanyao1230

Copy link
Copy Markdown

概要

路線一覧画面の右上グラフに、平均輸送密度Avg. density)を追加します。

変更内容

  • グラフに11番目の曲線として「平均輸送密度」を追加(紫色)
  • 計算式:Freight ton-kilo ÷ 走行距離
  • セーブデータには保存しない(UIで動的に計算)
  • simcolor.hCOL_TRANSPORT_DENSITY を定義
  • ja.OTRP.tab に日本語訳を追加

実装の詳細

financial_historyLINE_TONKILOLINE_DISTANCE から毎回計算するため、MAX_LINE_COST は変更しておらず、既存のセーブデータとの互換性を維持しています。フィルタボタンの状態もセーブ対象外です。

Computes ton-kilo / distance dynamically in the UI; not saved to save data.
Adds COL_TRANSPORT_DENSITY (purple) to simcolor.h for the curve color.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant