Skip to content

Commit

Permalink
Added current aircraft / unit to the main screen
Browse files Browse the repository at this point in the history
Added chinese translation (hopefully)
  • Loading branch information
ciribob committed Feb 25, 2024
1 parent 888bb9b commit 0cccd59
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
9 changes: 9 additions & 0 deletions DCS-SR-Client/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions DCS-SR-Client/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@
<data name="CurrentPositionLabel" xml:space="preserve">
<value>Current Position:</value>
</data>
<data name="CurrentUnitLabel" xml:space="preserve">
<value>Unit:</value>
</data>
<data name="CurrentProfile" xml:space="preserve">
<value>Current Profile:</value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions DCS-SR-Client/Properties/Resources.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@
<data name="CurrentProfileNone" xml:space="preserve">
<value>无</value>
</data>
<data name="CurrentUnitLabel" xml:space="preserve">
<value>飞机</value>
</data>
<data name="DefaultMicrophone" xml:space="preserve">
<value>默认麦克风</value>
</data>
Expand Down
4 changes: 4 additions & 0 deletions DCS-SR-Client/UI/ClientWindow/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="0,0,0,0">
<Label Content="{x:Static p:Resources.CurrentProfile}" />
<Label Name="CurrentProfile" Content="{x:Static p:Resources.CurrentProfileNone}" />
<Label Content="{x:Static p:Resources.CurrentUnitLabel}" />
<Label>
<TextBlock Name="CurrentUnit" Text=""/>
</Label>
</StackPanel>
<StackPanel Margin="0"
HorizontalAlignment="Center"
Expand Down
3 changes: 2 additions & 1 deletion DCS-SR-Client/UI/ClientWindow/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,8 @@ private void UpdatePlayerLocationAndVUMeters(object sender, EventArgs e)
try
{
var pos = ClientState.PlayerCoaltionLocationMetadata.LngLngPosition;
CurrentPosition.Text = $"Lat/Lng: {pos.lat:0.###},{pos.lng:0.###} - Alt: {pos.alt:0} {ClientState?.DcsPlayerRadioInfo?.unit}";
CurrentPosition.Text = $"Lat/Lng: {pos.lat:0.###},{pos.lng:0.###} - Alt: {pos.alt:0}";
CurrentUnit.Text = $"{ClientState?.DcsPlayerRadioInfo?.unit}";
}
catch { }

Expand Down

0 comments on commit 0cccd59

Please sign in to comment.