From aef086e9f059ab5d7eeeb1c81725f978f0adb608 Mon Sep 17 00:00:00 2001 From: maj00r Date: Fri, 4 Sep 2026 20:40:47 +0200 Subject: [PATCH] WIP: settings sections, shortcuts window, depot tweaks --- .vscode/launch.json | 2 +- StarterNG/App.axaml | 1 + StarterNG/Classes/Physics.cs | 22 +- StarterNG/Classes/Settings.cs | 50 +- StarterNG/Classes/Trainset.cs | 72 +- StarterNG/Controls/SettingRow.cs | 71 ++ StarterNG/Controls/SettingsSection.cs | 21 + StarterNG/Infrastructure/Shortcuts.cs | 102 +++ StarterNG/Infrastructure/StatsBar.cs | 7 +- StarterNG/Infrastructure/TextMatch.cs | 44 + StarterNG/MainWindow.axaml | 11 +- StarterNG/MainWindow.axaml.cs | 91 ++ StarterNG/Properties/launchSettings.json | 2 +- StarterNG/Services/LocalizationService.cs | 18 + StarterNG/Styles/Carbon.axaml | 278 +++++- StarterNG/Styles/Settings.axaml | 262 ++++++ StarterNG/Views/Depot.axaml | 178 ++-- StarterNG/Views/Depot.axaml.cs | 38 +- StarterNG/Views/Depot/MiniTextures.cs | 25 +- StarterNG/Views/Depot/VehicleBrowser.cs | 6 +- StarterNG/Views/Depot/VehicleCardStyle.cs | 3 + StarterNG/Views/Depot/VehicleCards.cs | 281 +++++-- StarterNG/Views/Depot/VehicleDetails.cs | 565 ++++++++----- StarterNG/Views/Scenarios.axaml | 23 +- StarterNG/Views/Scenarios.axaml.cs | 4 +- StarterNG/Views/Settings.axaml | 978 +++++++++++----------- StarterNG/Views/Settings.axaml.cs | 311 +++++-- StarterNG/Views/ShortcutsWindow.cs | 103 +++ StarterNG/Views/TextureBaseWindow.axaml | 2 +- StarterNG/Views/UartWindow.cs | 2 +- StarterNG/startercfg/lang/cz.xml | 64 +- StarterNG/startercfg/lang/en.xml | 138 ++- StarterNG/startercfg/lang/hu.xml | 64 +- StarterNG/startercfg/lang/pl.xml | 146 +++- StarterNG/startercfg/lang/ru.xml | 64 +- 35 files changed, 2945 insertions(+), 1104 deletions(-) create mode 100644 StarterNG/Controls/SettingRow.cs create mode 100644 StarterNG/Controls/SettingsSection.cs create mode 100644 StarterNG/Infrastructure/Shortcuts.cs create mode 100644 StarterNG/Infrastructure/TextMatch.cs create mode 100644 StarterNG/Styles/Settings.axaml create mode 100644 StarterNG/Views/ShortcutsWindow.cs diff --git a/.vscode/launch.json b/.vscode/launch.json index 6a46171..f17707b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,7 @@ { "name": "C#: Launch Startup Project", "type": "dotnet", - "request": "launch" + "request": "launch", } ] } \ No newline at end of file diff --git a/StarterNG/App.axaml b/StarterNG/App.axaml index 25e004a..99f30bc 100644 --- a/StarterNG/App.axaml +++ b/StarterNG/App.axaml @@ -10,6 +10,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -80,9 +236,9 @@ - - - + + + @@ -128,7 +284,7 @@ - + - + + - - + - + @@ -235,6 +384,33 @@ + + + + + + + @@ -244,8 +420,10 @@ + + + + + + + + + + + diff --git a/StarterNG/Styles/Settings.axaml b/StarterNG/Styles/Settings.axaml new file mode 100644 index 0000000..49615b5 --- /dev/null +++ b/StarterNG/Styles/Settings.axaml @@ -0,0 +1,262 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/StarterNG/Views/Depot.axaml b/StarterNG/Views/Depot.axaml index a282d65..552ab03 100644 --- a/StarterNG/Views/Depot.axaml +++ b/StarterNG/Views/Depot.axaml @@ -3,27 +3,35 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:starterNg="clr-namespace:StarterNG" + xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia" xmlns:views="clr-namespace:StarterNG.Views" x:CompileBindings="True" mc:Ignorable="d" d:DesignWidth="1000" d:DesignHeight="700" x:Class="StarterNG.Views.Depot"> + + + - - - + + + - + CornerRadius="2" Padding="6"> - @@ -34,10 +42,12 @@ - - + + - +