Skip to content

Commit

Permalink
Show launcher version in the main window (#179)
Browse files Browse the repository at this point in the history
* Show launcher version in the main window

Now comes with coding warcrimes (in my opinion)

* Better

---------

Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
  • Loading branch information
VasilisThePikachu and PJB3005 committed Sep 9, 2024
1 parent b967f2b commit 1623260
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions SS14.Launcher/ViewModels/MainWindowLoginViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ public MainWindowLoginViewModel()
SwitchToLogin();
}

public string Version => $"v{LauncherVersion.Version}";

public void SwitchToLogin()
{
Screen = new LoginViewModel(this, _authApi, _loginMgr, _cfg);
Expand Down
1 change: 1 addition & 0 deletions SS14.Launcher/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ private void RunSelectedOnTab()
}

public ICVarEntry<bool> HasDismissedEarlyAccessWarning => Cfg.GetCVarEntry(CVars.HasDismissedEarlyAccessWarning);
public string Version => $"v{LauncherVersion.Version}";

public async void OnWindowInitialized()
{
Expand Down
3 changes: 3 additions & 0 deletions SS14.Launcher/Views/MainWindowContent.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,8 @@
<ContentControl Classes="OverlayBox" Name="DragDropOverlay" IsVisible="False">
<TextBlock Text="{loc:Loc main-window-drag-drop-prompt}" />
</ContentControl>

<TextBlock Text="{Binding Version}" HorizontalAlignment="Right"
VerticalAlignment="Bottom" Classes="SubText" Margin="6"/>
</Panel>
</UserControl>
3 changes: 0 additions & 3 deletions SS14.Launcher/Views/MainWindowLogin.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
<views:LanguageSelector DockPanel.Dock="Left" VerticalAlignment="Center" Margin="4" DataContext="{Binding LanguageSelector}" />

<CheckBox DockPanel.Dock="Left" VerticalAlignment="Center" Margin="4" IsChecked="{Binding LogLauncher}" Content="{loc:Loc login-log-launcher}" />

<TextBlock Text="{Binding Version}" DockPanel.Dock="Right" VerticalAlignment="Center" Margin="4"
Classes="SubText" />
</DockPanel>
<Panel Background="{DynamicResource ThemeStripebackEdgeBrush}" MinHeight="2" DockPanel.Dock="Bottom" />

Expand Down
1 change: 0 additions & 1 deletion SS14.Launcher/Views/MainWindowTabs/OptionsTabView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,5 @@
Margin="8" />
</StackPanel>
</DockPanel>

</ScrollViewer>
</UserControl>

0 comments on commit 1623260

Please sign in to comment.