Compare commits

...

12 Commits

Author SHA1 Message Date
maj00r 25e58fa8ae fix(editor): the editor opens without a question
The scenery editor starts straight away, as the simulation does; the question
that it works on the scenery file itself goes, with its texts in every language.
2026-12-04 23:27:16 +01:00
maj00r e0a0f46018 fix(editor): no warning that only some simulator builds have the editor
Every simulator build now opens the scenery editor (eu07 -edit), so the
question before it says only what still matters: the editor works on the
scenery file itself, not on the starter's copy. The tip of the new scenery
wizard no longer says the editor is missing from some builds either.
2026-12-04 23:25:20 +01:00
Hirek 98e67b6867 Merge pull request #74 from MaSzyna-EU07/feat/settings-basic-advanced
whole these
2026-12-04 21:44:48 +00:00
Hirek 9656b25532 Merge branch 'main' into feat/settings-basic-advanced 2026-12-04 22:43:14 +01:00
maj00r 381c815528 Merge pull request #69 from MaSzyna-EU07/fix/overcast-labels
fix(weather): the overcast list says what the simulator makes of it, rain and snow among it
2026-12-03 11:24:20 +01:00
maj00r 6d81ec700d Merge pull request #72 from MaSzyna-EU07/feat/standard-crew
feat: in the standard mode the crew of the player's consists can be changed
2026-12-03 11:23:42 +01:00
maj00r 705f2049fd Merge pull request #71 from MaSzyna-EU07/fix/software-render-windows
fix: on Windows the processor draws the starter's windows
2026-12-03 11:23:13 +01:00
maj00r 9583117eea feat: in the standard mode the crew of the player's consists can be changed
The crew button, the crew menu on a card and the crew list in the vehicle
details now work in the standard mode too, for every consist the player may
start in. The simulator's own consists and the decorations keep the crew the
scenario gave them; the advanced mode changes any crew, as before.
2026-12-02 20:33:50 +01:00
maj00r dc1f43d385 fix: on Windows the processor draws the starter's windows
Every way of the graphics card's failed on some machine. Avalonia's WinUI
composition visual left windows black on Windows 11 25H2, the Steam
overlay drew its frame counter over the swap chain of a window's own
surface, and with DirectComposition the starter vanished a few seconds
after its window came up on a Windows 10 machine with a GTX 1650, without
a word in its log, under Steam or started on its own. With
--software-render it stayed.

The processor now draws every window on Windows, and each frame is copied
into its window by GDI: no composition visual, no swap chain for an
overlay to hook. On X11 the graphics card still draws, and
--software-render still asks the processor there.
2026-12-02 18:54:12 +01:00
maj00r cb9c8cbb08 test(weather): a rain or snow option is themed in a window and names itself there too 2026-11-30 19:29:18 +01:00
maj00r a87c1ebc4c fix(weather): rain or snow is named by a control of its own, with no reflection binding
The two precipitation options were renamed by a Binding made in code,
which reads its path by reflection: unsafe for the NativeAOT starter
and flagged as such by the analysis. A PrecipitationItem now names
itself from the starter's texts and follows a change of language, and
the weather tab only tells it whether it snows.
2026-11-30 19:22:26 +01:00
maj00r 1aac7faae1 fix(weather): the overcast list says what the simulator makes of it, rain and snow among it
The simulator reads the overcast as clear up to 0.1, clouds up to 1 and
precipitation above it: rain above 1 °C, snow at or below, denser from
1.35 on. A negative value it draws anew from 0 up to its size. The list
named -1.5 "Clear", though it rained one run in three, 1.1 "Cloudy" and
1.5 "Storm", which the simulator has none of, so rain was nowhere to be
picked by name. The list is now clear, light, moderate clouds, cloudy,
light rain and rain, the last two named snow when the temperature set
makes it snow. Random draws only from these, and a negative overcast in
a scenery is shown as random rather than clear.
2026-11-30 19:14:15 +01:00
24 changed files with 272 additions and 150 deletions
+72
View File
@@ -0,0 +1,72 @@
using Avalonia.Controls;
using StarterNG.Controls;
namespace StarterNG.Tests;
[Collection(AvaloniaControls.Name)]
public class PrecipitationItemTests
{
// Shown in whatever language the tests run in: the key alone, or English once a test built the application.
private static void ShowsText(string key, PrecipitationItem item)
{
Assert.Equal(key, item.Key);
Assert.Equal(AppLanguage.Text(key), item.Content);
}
[Fact]
public void Light_precipitation_is_light_rain_until_told_it_snows()
{
var item = new PrecipitationItem();
ShowsText("OvercastRainLight", item);
item.Snow = true;
ShowsText("OvercastSnowLight", item);
}
[Fact]
public void Heavy_precipitation_is_rain_or_snow()
{
var item = new PrecipitationItem { Heavy = true };
ShowsText("OvercastRain", item);
item.Snow = true;
ShowsText("OvercastSnow", item);
}
[Fact]
public void The_option_keeps_its_name_in_a_dropdown_and_out_of_it()
{
var item = new PrecipitationItem { Heavy = true, Snow = true };
var combo = new ComboBox { Items = { item } };
ShowsText("OvercastSnow", item);
combo.Items.Remove(item);
item.Snow = false;
ShowsText("OvercastRain", item);
}
[Fact]
public void In_a_window_the_option_looks_like_any_other_and_still_follows_the_temperature()
{
var item = new PrecipitationItem { Heavy = true };
var combo = new ComboBox { Items = { new ComboBoxItem { Content = "Bezchmurnie" }, item } };
var window = Controls.Show(combo, themed: true);
combo.IsDropDownOpen = true;
window.UpdateLayout();
Assert.NotNull(item.Template);
item.Snow = true;
ShowsText("OvercastSnow", item);
window.Close();
item.Snow = false;
ShowsText("OvercastRain", item);
}
}
+27 -1
View File
@@ -78,10 +78,36 @@ public class SceneryWeatherTests
{
var weather = new SceneryWeather { Overcast = 0.42, OvercastRandom = true };
Assert.Equal(-1.5, weather.EffectiveOvercast(new StubRandom()));
Assert.Equal(0, weather.EffectiveOvercast(new StubRandom()));
Assert.Equal(0.42, new SceneryWeather { Overcast = 0.42 }.EffectiveOvercast(new StubRandom()));
}
[Fact]
public void No_random_overcast_preset_is_one_the_simulator_would_draw_again()
{
var weather = new SceneryWeather { OvercastRandom = true };
for (int i = 0; i < 10; i++)
Assert.InRange(weather.EffectiveOvercast(new StubRandom(i)), 0, 2);
}
[Fact]
public void A_negative_overcast_in_the_scenery_is_read_as_random()
{
var weather = TestScenery.Parser(new DateTime(2026, 1, 1))
.Parse("scenery/x.scn", "atmo 0 0 0 50 900 0 0 0 -1.5 endatmo").Weather;
Assert.True(weather.OvercastRandom);
Assert.False(weather.Changed);
}
[Theory]
[InlineData(2, false)]
[InlineData(1, true)]
[InlineData(-10, true)]
public void Precipitation_is_snow_at_or_below_one_degree(double temperature, bool snow) =>
Assert.Equal(snow, SceneryWeather.Snows(temperature));
private static string Rewritten(string scn) =>
SceneryWeatherWriter.Rewrite(scn, new SceneryWeather(), new StubRandom());
+9 -5
View File
@@ -14,7 +14,7 @@ public class SoftwareRenderTests
}
[Fact]
public void Without_the_switch_the_graphics_card_draws()
public void Without_the_switch_it_is_not_asked_for()
{
Assert.False(SoftwareRender.AskedIn(Array.Empty<string>()));
Assert.False(SoftwareRender.AskedIn(new[] { "--software" }));
@@ -25,21 +25,25 @@ public class SoftwareRenderTests
{
var options = SoftwareRender.Win32Options;
// No WinUI composition, DirectComposition or swap chain of the graphics card's.
Assert.Equal(new[] { Win32RenderingMode.Software }, options.RenderingMode);
Assert.Equal(new[] { Win32CompositionMode.RedirectionSurface }, options.CompositionMode);
}
[Fact]
public void X11_draws_on_the_processor()
public void X11_draws_on_the_processor_when_asked()
{
Assert.Equal(new[] { X11RenderingMode.Software }, SoftwareRender.X11Options.RenderingMode);
}
[Fact]
public void Both_platforms_options_go_to_the_same_builder()
[Theory]
[InlineData(false)]
[InlineData(true)]
public void The_options_go_to_the_same_builder_with_or_without_the_switch(bool asked)
{
var builder = AppBuilder.Configure<Avalonia.Application>();
string[] args = asked ? new[] { SoftwareRender.Switch } : Array.Empty<string>();
Assert.Same(builder, SoftwareRender.ApplyTo(builder));
Assert.Same(builder, SoftwareRender.ApplyTo(builder, args));
}
}
+14
View File
@@ -79,6 +79,20 @@ public class TrainsetDisplayTests
Assert.True(TrainsetDisplay.StartableIn(decor, Mode(advanced: true)));
}
[Fact]
public void The_standard_mode_changes_the_crew_but_not_in_the_simulators_own_consists()
{
var standard = Mode(advanced: false);
var decor = new Trainset("trainset a tor 0 0 //$decor\nnode -1 0 v1 dynamic d s m 0 headdriver 3 0 enddynamic\nendtrainset");
Assert.True(TrainsetDisplay.CrewEditableIn(Consist(), standard));
Assert.True(TrainsetDisplay.CrewEditableIn(Consist(driver: "nobody"), standard));
Assert.True(TrainsetDisplay.CrewEditableIn(null, standard));
Assert.False(TrainsetDisplay.CrewEditableIn(Consist(description: "-ai"), standard));
Assert.False(TrainsetDisplay.CrewEditableIn(decor, standard));
Assert.True(TrainsetDisplay.CrewEditableIn(Consist(description: "-ai"), Mode(advanced: true)));
}
[Fact]
public void The_filters_work_in_the_advanced_mode()
{
-46
View File
@@ -1,46 +0,0 @@
using Avalonia;
using StarterNG.Infrastructure;
namespace StarterNG.Tests;
public class WindowSurfacesTests
{
[Fact]
public void Windows_draws_into_a_directcomposition_surface_and_never_through_winui_composition()
{
var options = WindowSurfaces.Win32Options;
Assert.Equal(Win32CompositionMode.DirectComposition, options.CompositionMode.First());
Assert.DoesNotContain(Win32CompositionMode.WinUIComposition, options.CompositionMode);
}
[Fact]
public void The_window_surface_is_only_the_fallback()
{
// There ANGLE presents through a swap chain, and the Steam overlay draws over it.
Assert.Equal(Win32CompositionMode.RedirectionSurface, WindowSurfaces.Win32Options.CompositionMode.Last());
}
[Fact]
public void No_swap_chain_of_its_own_is_asked_for()
{
Assert.DoesNotContain(Win32CompositionMode.LowLatencyDxgiSwapChain, WindowSurfaces.Win32Options.CompositionMode);
}
[Fact]
public void The_graphics_card_still_draws()
{
Assert.Equal(new Win32PlatformOptions().RenderingMode, WindowSurfaces.Win32Options.RenderingMode);
Assert.Contains(Win32RenderingMode.AngleEgl, WindowSurfaces.Win32Options.RenderingMode);
}
[Theory]
[InlineData(false)]
[InlineData(true)]
public void The_options_go_to_the_same_builder_with_or_without_the_processor(bool softwareRender)
{
var builder = AppBuilder.Configure<Avalonia.Application>();
Assert.Same(builder, WindowSurfaces.ApplyTo(builder, softwareRender));
}
}
+61
View File
@@ -0,0 +1,61 @@
using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.LogicalTree;
namespace StarterNG.Controls;
/// <summary>
/// An overcast option above 1, where the simulator rains or, at 1 °C and below, snows:
/// named for what falls, light or not, in the starter's language.
/// </summary>
public class PrecipitationItem : ComboBoxItem
{
public static readonly StyledProperty<bool> HeavyProperty =
AvaloniaProperty.Register<PrecipitationItem, bool>(nameof(Heavy));
public static readonly StyledProperty<bool> SnowProperty =
AvaloniaProperty.Register<PrecipitationItem, bool>(nameof(Snow));
public PrecipitationItem() => UpdateText();
/// <summary>Rain or snow rather than light rain or light snow.</summary>
public bool Heavy
{
get => GetValue(HeavyProperty);
set => SetValue(HeavyProperty, value);
}
public bool Snow
{
get => GetValue(SnowProperty);
set => SetValue(SnowProperty, value);
}
protected override Type StyleKeyOverride => typeof(ComboBoxItem);
/// <summary>The key of the text the option is named by.</summary>
public string Key => (Snow ? "OvercastSnow" : "OvercastRain") + (Heavy ? "" : "Light");
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
{
base.OnPropertyChanged(change);
if (change.Property == HeavyProperty || change.Property == SnowProperty)
UpdateText();
}
protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
{
base.OnAttachedToLogicalTree(e);
AppLanguage.Changed += UpdateText;
UpdateText();
}
protected override void OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs e)
{
AppLanguage.Changed -= UpdateText;
base.OnDetachedFromLogicalTree(e);
}
private void UpdateText() => Content = AppLanguage.Text(Key);
}
+8 -1
View File
@@ -8,7 +8,14 @@ public sealed class SceneryWeather
public const int FogMin = 10;
public const int FogMax = 10000;
private static readonly double[] OvercastPresets = { -1.5, 0, 0.3, 0.7, 1, 1.1, 1.5 };
/// <summary>
/// What the simulator makes of each: up to 0.1 clear, 0.5 scattered, 0.9 broken,
/// 1 overcast; above 1 it rains or snows, the denser from 1.35 on.
/// </summary>
private static readonly double[] OvercastPresets = { 0, 0.3, 0.7, 1, 1.1, 1.5 };
/// <summary>The simulator rains above 1 °C and snows at that or below.</summary>
public static bool Snows(double temperature) => temperature <= 1;
private string _authoredTime = "10:30";
private string _authoredTimeOverride = "10:30";
+8
View File
@@ -52,6 +52,14 @@ public static class TrainsetDisplay
public static bool StartableIn(Trainset trainset, SimulatorSettings settings) =>
settings.AdvancedSettings || (!IsAi(trainset) && !trainset.Decor);
/// <summary>
/// Whether the crew of the consist being edited may be changed: in the standard mode
/// only in one the player may start in - the simulator's own consists and the
/// decorations keep the crew the scenario gave them.
/// </summary>
public static bool CrewEditableIn(Trainset? trainset, SimulatorSettings settings) =>
trainset is null || StartableIn(trainset, settings);
/// <summary>The consist's row in those lists: what it is made of, or the track of one with nothing on it.</summary>
public static string ListLabel(Trainset trainset) =>
CompositionText(trainset) ?? string.Format(App.Loc["EmptyTrainset"], trainset.Track ?? "");
@@ -286,7 +286,11 @@ public sealed class SceneryParser
if (numbers.Count >= 6 &&
double.TryParse(numbers[^1], NumberStyles.Float, CultureInfo.InvariantCulture, out double overcast))
weather.Overcast = overcast;
{
// The simulator draws a negative overcast anew each run, from 0 up to its size.
weather.OvercastRandom = overcast < 0;
weather.Overcast = Math.Max(overcast, 0);
}
}
private static string? MatchAllDirectives(string content, string letter)
+14 -4
View File
@@ -6,8 +6,15 @@ using Avalonia;
namespace StarterNG.Infrastructure;
/// <summary>
/// Drawn by the processor instead of the graphics card, for a machine on which the
/// window comes up empty. Each platform reads only its own options, so both are given.
/// On Windows the processor draws the starter's windows, and each frame is copied into its window
/// by GDI. Every way of the graphics card's failed on some machine: Avalonia's WinUI composition
/// visual left windows black on Windows 11 25H2, the Steam overlay drew its frame counter over a
/// window's own swap chain, and with DirectComposition the starter vanished a few seconds after its
/// window came up on a Windows 10 machine with a GTX 1650, without a word in its log. A frame copied
/// by GDI has no swap chain for an overlay to hook, and lists, text and pictures are no work for the
/// processor.
/// On X11 the graphics card draws, unless <see cref="Switch"/> asks the processor, for a machine on
/// which the window comes up empty. Each platform reads only its own options.
/// </summary>
public static class SoftwareRender
{
@@ -27,6 +34,9 @@ public static class SoftwareRender
RenderingMode = new[] { X11RenderingMode.Software }
};
public static AppBuilder ApplyTo(AppBuilder builder) =>
builder.With(Win32Options).With(X11Options);
public static AppBuilder ApplyTo(AppBuilder builder, IEnumerable<string> args)
{
builder.With(Win32Options);
return AskedIn(args) ? builder.With(X11Options) : builder;
}
}
@@ -1,32 +0,0 @@
using Avalonia;
namespace StarterNG.Infrastructure;
/// <summary>
/// On Windows the graphics card draws each window of the starter into a DirectComposition
/// surface, not into Avalonia's default WinUI composition visual. On Windows 11 25H2 that
/// visual was left empty on many starts: the main window, or a dialog opened later,
/// stayed black while the others drew, and came back only now and then.
/// The window's own redirection surface is only the fallback: there ANGLE draws through a
/// swap chain of the window, and the Steam overlay, which Steam puts into the starter as
/// the game it launches, hooks that swap chain's Present and draws its frame counter and
/// notifications over the starter. A composition surface is drawn without a Present.
/// </summary>
public static class WindowSurfaces
{
public static Win32PlatformOptions Win32Options => new()
{
CompositionMode = new[]
{
Win32CompositionMode.DirectComposition,
Win32CompositionMode.RedirectionSurface
}
};
/// <summary>
/// The options a platform reads are the last given, so the processor, when asked
/// for, draws with <see cref="SoftwareRender"/>'s own and these are left out.
/// </summary>
public static AppBuilder ApplyTo(AppBuilder builder, bool softwareRender) =>
softwareRender ? SoftwareRender.ApplyTo(builder) : builder.With(Win32Options);
}
+3 -13
View File
@@ -701,20 +701,10 @@ public partial class MainWindow : Window
}
/// <summary>
/// The scenery editor, which only some simulator builds have - said up front,
/// since one without it simply does not open it, and it writes to the scenery
/// itself. With none selected there is nothing to write to: the simulator's
/// wizard makes a new one.
/// The scenery editor on the selected scenery; with none selected, the
/// simulator's wizard makes a new one.
/// </summary>
private async Task LaunchEditorAsync()
{
if (AppServices.Current.State.CurrentScenery is { } scenery &&
!await MessageBox.Show(this, string.Format(App.Loc["StartEditorWarning"], Path.GetFileName(scenery.Path)),
App.Loc["StartEditor"], MessageBoxButtons.YesNo))
return;
await FollowStartAsync(AppServices.Current.StartSimulation.ExecuteEditor);
}
private Task LaunchEditorAsync() => FollowStartAsync(AppServices.Current.StartSimulation.ExecuteEditor);
/// <summary>Reports a start that failed, or steps aside for the simulator that started.</summary>
/// <param name="start">The start, run again once what stopped it is put right.</param>
+7 -6
View File
@@ -10,7 +10,8 @@ namespace StarterNG;
static class Program
{
private static bool _softwareRender;
// What --software-render is looked for in; none for the designer, which calls BuildAvaloniaApp itself.
private static string[] _args = Array.Empty<string>();
[STAThread]
public static void Main(string[] args)
@@ -19,7 +20,7 @@ static class Program
var graphics = SystemGraphicsLibraries.TakeOnWindows();
graphics?.ServeTo(typeof(Win32PlatformOptions).Assembly);
_softwareRender = SoftwareRender.AskedIn(args);
_args = args;
// Composition root first: everything below, including the crash handlers,
// resolves its collaborators from this graph.
@@ -73,14 +74,14 @@ static class Program
};
}
// Without the switch the graphics card draws, into the window surfaces.
private static AppBuilder WithSoftwareRenderIfAsked(this AppBuilder builder) =>
WindowSurfaces.ApplyTo(builder, _softwareRender);
// On Windows the processor draws; on X11 the graphics card, unless --software-render.
private static AppBuilder WithSoftwareRender(this AppBuilder builder) =>
SoftwareRender.ApplyTo(builder, _args);
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithSoftwareRenderIfAsked()
.WithSoftwareRender()
.WithInterFont()
.WithDiagnosticsLogging()
.AfterSetup(_ => LogUiExceptions());
+1 -1
View File
@@ -69,7 +69,7 @@ public partial class Depot : UserControl
if (Design.IsDesignMode)
return;
// The standard mode lists other consists and leaves the crew alone.
// The standard mode lists other consists and leaves the crew of the simulator's own alone.
Settings.AdvancedModeChanged += () =>
{
PopulateSceneryConsists();
+6 -3
View File
@@ -49,6 +49,9 @@ public sealed class VehicleCards
public Dynamic? PressedCar { get; set; }
private bool CrewEditable =>
TrainsetDisplay.CrewEditableIn(_consist.EditingTrainset, AppServices.Current.Settings);
public VehicleCards(Panel consistStack, VehicleCatalog db, Consist consist,
Cargo cargo, MiniTextures minis, Cursor hand,
Action redraw, Action refreshDetails, Action<Dynamic> selectInBrowser,
@@ -117,8 +120,8 @@ public sealed class VehicleCards
HorizontalAlignment = HorizontalAlignment.Center,
Margin = new Thickness(0, 1, 0, 2)
};
// Who sits in the cab - the player, the simulator, a passenger or nobody - is for the advanced mode.
if (AppServices.Current.Settings.AdvancedSettings)
// Who sits in the cab; in the standard mode not in the simulator's own consists.
if (CrewEditable)
controls.Children.Add(DriverButton(item));
controls.Children.Add(FlipButton(item));
@@ -695,7 +698,7 @@ public sealed class VehicleCards
else if (_consist.CanJoin(item, index))
menu.AddItem(App.Loc["TipJoin"], () => _consist.Join(item));
if (AppServices.Current.Settings.AdvancedSettings)
if (CrewEditable)
{
var crew = new MenuItem { Header = App.Loc["CrewLabel"] };
foreach (var (type, key) in CrewChoices.All)
+2 -2
View File
@@ -280,8 +280,8 @@ public sealed class VehicleDetails
};
driver.MinWidth = 0;
driver.HorizontalAlignment = HorizontalAlignment.Stretch;
// Shown but not changed in the standard mode: who drives is for the advanced one.
driver.IsEnabled = AppServices.Current.Settings.AdvancedSettings;
// Shown but not changed in the standard mode in the simulator's own consists.
driver.IsEnabled = TrainsetDisplay.CrewEditableIn(_consist.EditingTrainset, AppServices.Current.Settings);
var rows = new StackPanel();
rows.Children.Add(Row(App.Loc["CrewLabel"], driver));
+4 -5
View File
@@ -189,13 +189,12 @@
HorizontalAlignment="Stretch"
SelectionChanged="Weather_OnSelectionChanged">
<ComboBoxItem Tag="random" Content="{Binding [OvercastRandom], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="-1.5" Content="{Binding [OvercastClear], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="0" Content="{Binding [OvercastFair], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="0" Content="{Binding [OvercastClear], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="0.3" Content="{Binding [OvercastLight], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="0.7" Content="{Binding [OvercastModerate], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="1" Content="{Binding [OvercastHeavy], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="1.1" Content="{Binding [OvercastCloudy], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="1.5" Content="{Binding [OvercastStorm], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="1" Content="{Binding [OvercastCloudy], Source={x:Static starterNg:App.Loc}}" />
<ctl:PrecipitationItem Tag="1.1" Name="weatherPrecipitationLight" />
<ctl:PrecipitationItem Tag="1.5" Name="weatherPrecipitation" Heavy="True" />
</ComboBox>
<Border Grid.Row="11" Grid.Column="0" Grid.ColumnSpan="5"
+1
View File
@@ -831,6 +831,7 @@ public partial class Scenarios : UserControl
weatherTemp.ValueText = weatherTempLabel.Text;
weatherFog.ValueText = weatherFogLabel.Text;
weatherDayDate.Text = string.Format(LanguageCulture, App.Loc["DayOfYear"], SelectedDayOfYear());
weatherPrecipitationLight.Snow = weatherPrecipitation.Snow = SceneryWeather.Snows(weatherTemp.Value);
weatherRestore.IsEnabled = _currentScenery?.Weather.Changed ?? false;
}
+5 -5
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">Zima</String>
<String key="OvercastRandom">Náhodné</String>
<String key="OvercastClear">Jasno</String>
<String key="OvercastFair">Skoro jasno</String>
<String key="OvercastLight">Slabá oblačnost</String>
<String key="OvercastModerate">Mírná oblačnost</String>
<String key="OvercastHeavy">Silná oblačnost</String>
<String key="OvercastCloudy">Zataženo</String>
<String key="OvercastStorm">Bouřka</String>
<String key="OvercastRainLight">Slabý déšť</String>
<String key="OvercastRain">Déšť</String>
<String key="OvercastSnowLight">Slabé sněžení</String>
<String key="OvercastSnow">Sněžení</String>
<String key="WeatherDateTime">Datum a čas</String>
<String key="WeatherConditions">Povětrnostní podmínky</String>
<String key="Consist">Souprava</String>
@@ -696,9 +697,8 @@
<String key="StartFreeFly">Spustit bez vozidla</String>
<String key="StartEditorShort">Editor scenérie</String>
<String key="StartEditorWizard">Vytvořit novou scenérii</String>
<String key="StartEditorWizardTip">Průvodce novou scenérií v editoru simulátoru. Editor mají jen některé verze.</String>
<String key="StartEditorWizardTip">Průvodce novou scenérií v editoru simulátoru.</String>
<String key="StartEditor">Spustit editor scenérie</String>
<String key="StartEditorWarning">Editor scenérie (eu07 -edit) mají jen některé verze simulátoru. Pokud ho vybraný simulátor nepodporuje, editor se neotevře. Editor pracuje přímo se souborem {0}, ne s kopií od starteru, takže uložené změny se zapíší do scenérie. Spustit?</String>
<String key="DebugLogVisible">Zobrazovat průběh simulace</String>
<String key="PyScreenPriority">Frekvence obnovení doplňkových obrazovek</String>
<String key="PyPriorityNormal">Standardní</String>
+5 -5
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">Winter</String>
<String key="OvercastRandom">Random</String>
<String key="OvercastClear">Clear</String>
<String key="OvercastFair">Fair</String>
<String key="OvercastLight">Light clouds</String>
<String key="OvercastModerate">Moderate clouds</String>
<String key="OvercastHeavy">Heavy clouds</String>
<String key="OvercastCloudy">Cloudy</String>
<String key="OvercastStorm">Storm</String>
<String key="OvercastRainLight">Light rain</String>
<String key="OvercastRain">Rain</String>
<String key="OvercastSnowLight">Light snow</String>
<String key="OvercastSnow">Snow</String>
<String key="WeatherDateTime">Date and time</String>
<String key="WeatherConditions">Conditions</String>
<String key="Consist">Consist</String>
@@ -722,9 +723,8 @@
<String key="StartFreeFly">Start with no vehicle</String>
<String key="StartEditorShort">Scenery editor</String>
<String key="StartEditorWizard">Create a new scenery</String>
<String key="StartEditorWizardTip">The new scenery wizard in the simulator's editor. Only some builds have the editor.</String>
<String key="StartEditorWizardTip">The new scenery wizard in the simulator's editor.</String>
<String key="StartEditor">Open the scenery editor</String>
<String key="StartEditorWarning">Only some simulator builds have the scenery editor (eu07 -edit). If the selected simulator does not, the editor will not open. It works on {0} itself, not on the starter's copy, so what you save goes into the scenery. Start it?</String>
<String key="DebugLogVisible">Log in console</String>
<String key="PyScreenPriority">Extra screens refresh</String>
<String key="PyScreenPriorityDesc">How often cab screens refresh. Less often means more FPS.</String>
+5 -5
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">Tél</String>
<String key="OvercastRandom">Véletlenszerű</String>
<String key="OvercastClear">Derült</String>
<String key="OvercastFair">Gyengén felhős</String>
<String key="OvercastLight">Kevés felhő</String>
<String key="OvercastModerate">Közepes felhőzet</String>
<String key="OvercastHeavy">Erős felhőzet</String>
<String key="OvercastCloudy">Borult</String>
<String key="OvercastStorm">Vihar</String>
<String key="OvercastRainLight">Gyenge eső</String>
<String key="OvercastRain">Eső</String>
<String key="OvercastSnowLight">Gyenge havazás</String>
<String key="OvercastSnow">Havazás</String>
<String key="WeatherDateTime">Dátum és idő</String>
<String key="WeatherConditions">Időjárási viszonyok</String>
<String key="Consist">Szerelvény</String>
@@ -696,9 +697,8 @@
<String key="StartFreeFly">Indítás jármű nélkül</String>
<String key="StartEditorShort">Pályaszerkesztő</String>
<String key="StartEditorWizard">Új színtér létrehozása</String>
<String key="StartEditorWizardTip">Új színtér varázsló a szimulátor szerkesztőjében. A szerkesztő csak egyes verziókban van meg.</String>
<String key="StartEditorWizardTip">Új színtér varázsló a szimulátor szerkesztőjében.</String>
<String key="StartEditor">Pályaszerkesztő indítása</String>
<String key="StartEditorWarning">A pályaszerkesztő (eu07 -edit) csak a szimulátor egyes verzióiban érhető el. Ha a kiválasztott szimulátor nem támogatja, a szerkesztő nem nyílik meg. Közvetlenül a(z) {0} fájlon dolgozik, nem a starter másolatán, így a mentett változások a pályába kerülnek. Elindítod?</String>
<String key="DebugLogVisible">Szimuláció menetének megjelenítése</String>
<String key="PyScreenPriority">Kiegészítő képernyők frissítési gyakorisága</String>
<String key="PyPriorityNormal">Normál</String>
+5 -5
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">Zima</String>
<String key="OvercastRandom">Losowe</String>
<String key="OvercastClear">Bezchmurnie</String>
<String key="OvercastFair">Pogodnie</String>
<String key="OvercastLight">Lekkie zachmurzenie</String>
<String key="OvercastModerate">Umiarkowane zachmurzenie</String>
<String key="OvercastHeavy">Duże zachmurzenie</String>
<String key="OvercastCloudy">Pochmurno</String>
<String key="OvercastStorm">Burza</String>
<String key="OvercastRainLight">Lekki deszcz</String>
<String key="OvercastRain">Deszcz</String>
<String key="OvercastSnowLight">Lekki śnieg</String>
<String key="OvercastSnow">Śnieg</String>
<String key="WeatherDateTime">Data i godzina</String>
<String key="WeatherConditions">Warunki atmosferyczne</String>
<String key="Consist">Zestawienie</String>
@@ -722,9 +723,8 @@
<String key="StartFreeFly">Uruchom bez pojazdu</String>
<String key="StartEditorShort">Edytor scenerii</String>
<String key="StartEditorWizard">Utwórz nową scenerię</String>
<String key="StartEditorWizardTip">Kreator nowej scenerii w edytorze symulatora. Edytor mają tylko niektóre wersje.</String>
<String key="StartEditorWizardTip">Kreator nowej scenerii w edytorze symulatora.</String>
<String key="StartEditor">Uruchom edytor scenerii</String>
<String key="StartEditorWarning">Edytor scenerii (eu07 -edit) mają tylko niektóre wersje symulatora. Jeśli wybrany plik symulatora go nie obsługuje, edytor się nie otworzy. Edytor pracuje na samym pliku {0}, a nie na kopii przygotowanej przez starter, więc zapisane zmiany trafią do scenerii. Uruchomić?</String>
<String key="DebugLogVisible">Log w konsoli</String>
<String key="PyScreenPriority">Odświeżanie ekranów dodatkowych</String>
<String key="PyScreenPriorityDesc">Jak często odświeżać ekrany w kabinie. Rzadziej to więcej FPS.</String>
+5 -5
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">Зима</String>
<String key="OvercastRandom">Случайно</String>
<String key="OvercastClear">Ясно</String>
<String key="OvercastFair">Малооблачно</String>
<String key="OvercastLight">Лёгкая облачность</String>
<String key="OvercastModerate">Умеренная облачность</String>
<String key="OvercastHeavy">Сильная облачность</String>
<String key="OvercastCloudy">Пасмурно</String>
<String key="OvercastStorm">Гроза</String>
<String key="OvercastRainLight">Небольшой дождь</String>
<String key="OvercastRain">Дождь</String>
<String key="OvercastSnowLight">Небольшой снег</String>
<String key="OvercastSnow">Снег</String>
<String key="WeatherDateTime">Дата и время</String>
<String key="WeatherConditions">Погодные условия</String>
<String key="Consist">Состав</String>
@@ -696,9 +697,8 @@
<String key="StartFreeFly">Запустить без транспорта</String>
<String key="StartEditorShort">Редактор сценария</String>
<String key="StartEditorWizard">Создать новый сценарий</String>
<String key="StartEditorWizardTip">Мастер нового сценария в редакторе симулятора. Редактор есть только в некоторых версиях.</String>
<String key="StartEditorWizardTip">Мастер нового сценария в редакторе симулятора.</String>
<String key="StartEditor">Запустить редактор сценария</String>
<String key="StartEditorWarning">Редактор сценария (eu07 -edit) есть только в некоторых версиях симулятора. Если выбранный симулятор его не поддерживает, редактор не откроется. Он работает с самим файлом {0}, а не с копией стартера, поэтому сохранённые изменения попадут в сценарий. Запустить?</String>
<String key="DebugLogVisible">Показывать ход симуляции</String>
<String key="PyScreenPriority">Частота обновления дополнительных экранов</String>
<String key="PyPriorityNormal">Стандартная</String>
+5 -5
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">冬</String>
<String key="OvercastRandom">随机</String>
<String key="OvercastClear">晴</String>
<String key="OvercastFair">晴好</String>
<String key="OvercastLight">少云</String>
<String key="OvercastModerate">多云</String>
<String key="OvercastHeavy">阴</String>
<String key="OvercastCloudy">阴天</String>
<String key="OvercastStorm">雷暴</String>
<String key="OvercastRainLight">小雨</String>
<String key="OvercastRain">雨</String>
<String key="OvercastSnowLight">小雪</String>
<String key="OvercastSnow">雪</String>
<String key="WeatherDateTime">日期和时间</String>
<String key="WeatherConditions">天气状况</String>
<String key="Consist">编组</String>
@@ -716,9 +717,8 @@
<String key="StartFreeFly">不加载车辆直接开始</String>
<String key="StartEditorShort">线路编辑器</String>
<String key="StartEditorWizard">创建新线路</String>
<String key="StartEditorWizardTip">模拟器编辑器中的新线路向导。只有部分版本带有编辑器。</String>
<String key="StartEditorWizardTip">模拟器编辑器中的新线路向导。</String>
<String key="StartEditor">打开线路编辑器</String>
<String key="StartEditorWarning">只有部分模拟器版本带有线路编辑器(eu07 -edit)。如果所选模拟器没有,编辑器将不会打开。它直接在 {0} 上工作,而不是启动器的副本,因此保存的内容会写入线路。要启动吗?</String>
<String key="DebugLogVisible">在控制台显示日志</String>
<String key="PyScreenPriority">额外的屏幕刷新延迟</String>
<String key="PyScreenPriorityDesc">Python 驾驶室屏幕两次更新之间的最小时间(毫秒)。数值越大更新越少。</String>