-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTruckSimulatorPluginSettingsControl.xaml
52 lines (46 loc) · 3.29 KB
/
TruckSimulatorPluginSettingsControl.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<UserControl x:Class="sjdawson.TruckSimulatorPlugin.TruckSimulatorPluginSettingsControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:sjdawson.TruckSimulatorPlugin"
xmlns:styles="clr-namespace:SimHub.Plugins.Styles;assembly=SimHub.Plugins"
xmlns:ui="clr-namespace:SimHub.Plugins.UI;assembly=SimHub.Plugins"
xmlns:Custom="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:system="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="46"/>
<RowDefinition Height="36"/>
<RowDefinition Height="46"/>
<RowDefinition Height="36"/>
<RowDefinition Height="36"/>
<RowDefinition Height="36"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="300"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="LOCALISATION" FontSize="16" FontWeight="Bold" Grid.ColumnSpan="2" Margin="20,20,0,0"/>
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30,0,0,0" Text="Localisation language" Grid.Row="1" Width="180" />
<ComboBox x:Name="LocalisationLanguage" SelectionChanged="LocalisationLanguageChanged" Margin="5" Grid.Column="1" Grid.Row="1"
Width="300" HorizontalAlignment="Right"
ItemsSource="{Binding}" DisplayMemberPath="Display" SelectedValuePath="Value"/>
<TextBlock Text="SETTINGS" FontSize="16" FontWeight="Bold" Grid.ColumnSpan="2" Grid.Row="2" Margin="20,20,0,0"/>
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30,0,0,0" Text="Over speed margin" Grid.Row="3" />
<Custom:NumericUpDown x:Name="OverSpeedMargin" HasDecimals="False" Margin="5" ValueChanged="OverSpeedMarginChanged" Grid.Row="3"
ToolTip="The value at which the plugin will start calculating speeding properties"
Width="300" HorizontalAlignment="Right"
Grid.Column="1" Minimum="-10" Maximum="10"/>
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30,0,0,0" Text="Wear warning value" Grid.Row="4" />
<Custom:NumericUpDown x:Name="WearWarning" HasDecimals="False" Margin="5" ValueChanged="WearWarningChanged" Grid.Row="4"
Width="300" HorizontalAlignment="Right"
Grid.Column="1" Minimum="0" Maximum="100"/>
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30,0,0,0" Text="Display dash units in metric?" Grid.Row="5" />
<CheckBox x:Name="DashUnitMetric" Click="DashSpeedUnitMetric_Click" Grid.Column="1" HorizontalAlignment="Right" Grid.Row="5"
Width="300"
Height="25" Margin="5" VerticalAlignment="Top"/>
</Grid>
</UserControl>