mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-11 16:57:11 +01:00
The simulator writes a black box of each run to physicslog/*.blackbox (blackbox_doc.md in the maszyna repository). Three new projects read and show it: - Eu07.BlackBox: the reader of the records, the recording as a whole (the user's vehicle and consist at a time, the timetable shown, the progress along it with arrival and departure delays, whether the train stood at the platform), the light patterns Pc 1, Pc 2, Pc 5 and Tb 1 with the ones the run asks for, and a summary of the driving. - Eu07.BlackBox.Views: the player window, with the scenery map (tracks, signals, W4 stop points with their heading and W32, the train, the cameras), the cab, the timeline of speed against the AI's reference, the events, the timetable and the summary. - Eu07.BlackBox.Viewer: the window on its own, with options for the time, following the train and screenshots. The tapes window of the starter lists the black boxes of each session beside the Hasler tapes and opens them in the player.
22 lines
620 B
C#
22 lines
620 B
C#
using Eu07.BlackBox.Views;
|
|
|
|
namespace StarterNG.Views.Tapes;
|
|
|
|
/// <summary>
|
|
/// The texts of the black box window in the starter's language: a translation may give any of
|
|
/// them as BlackBox + its key; the rest are the window's own, in Polish or else in English.
|
|
/// </summary>
|
|
internal sealed class StarterBlackBoxStrings : IBlackBoxStrings
|
|
{
|
|
private readonly DefaultBlackBoxStrings _own = new(App.Loc.CurrentLangCode);
|
|
|
|
public string this[string key]
|
|
{
|
|
get
|
|
{
|
|
string text = App.Loc.Opt("BlackBox" + key);
|
|
return text.Length > 0 ? text : _own[key];
|
|
}
|
|
}
|
|
}
|