ADD: average transport density chart to line list screen#580
Merged
simupoppo merged 3 commits intoJun 12, 2026
Merged
Conversation
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>
simupoppo
reviewed
Jun 11, 2026
| COL_TOLL, | ||
| COL_TONKILO | ||
| COL_TONKILO, | ||
| COL_TRANSPORT_DENSITY |
Collaborator
There was a problem hiding this comment.
この値は記録されておらず、MAX_LINE_COSTの外であることをコメントで追記してください(後に記録値を追加する際、混同する原因になります)
| gui_label_t lbl_filter, lbl_memo, lbl_name, lbl_colour; | ||
| gui_chart_t chart; | ||
| button_t filterButtons[MAX_LINE_COST]; | ||
| button_t filterButtons[MAX_LINE_COST + 1]; |
Collaborator
There was a problem hiding this comment.
MAX_LINE_COST_GUIをschedule_list.h内でstaticに定義し、filterButtons[MAX_LINE_COST_GUI]でボタン一覧を定義してください
|
|
||
|
|
||
| static const char *cost_type[MAX_LINE_COST] = | ||
| #define MAX_LINE_COST_GUI (MAX_LINE_COST + 1) |
Collaborator
There was a problem hiding this comment.
schedule_list.h内で定義・使用してください
…t density Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rays Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
simupoppo
approved these changes
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
路線一覧画面の右上グラフに、平均輸送密度(
Avg. density)を追加します。変更内容
Freight ton-kilo ÷ 走行距離simcolor.hにCOL_TRANSPORT_DENSITYを定義ja.OTRP.tabに日本語訳を追加実装の詳細
financial_historyのLINE_TONKILOとLINE_DISTANCEから毎回計算するため、MAX_LINE_COSTは変更しておらず、既存のセーブデータとの互換性を維持しています。フィルタボタンの状態もセーブ対象外です。