fixed ui desyncs

This commit is contained in:
WeeXnes 2025-04-26 17:33:46 +02:00
parent 717fa6e111
commit 977f80f5b4
2 changed files with 30 additions and 22 deletions

View file

@ -115,7 +115,11 @@
</Border> </Border>
<Border Grid.Column="4" Background="#35313d" CornerRadius="10" Name="InfoWindow" Margin="10"> <Border Grid.Column="4" Background="#35313d" CornerRadius="10" Name="InfoWindow" Margin="10">
<Grid RowDefinitions="*, 350, 20, 20, 20, 20, *"> <Grid>
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" Name="GameInfoPlaceholder">
<TextBlock Text="Select a Game"/>
</StackPanel>
<Grid RowDefinitions="*, 350, 20, 20, 20, 20, *" Name="GameInfo" IsVisible="False">
<Grid Grid.Row="1" ColumnDefinitions="*, 205, *"> <Grid Grid.Row="1" ColumnDefinitions="*, 205, *">
<Button Foreground="White" Grid.Column="0" Content="←" HorizontalAlignment="Center" VerticalAlignment="Center" Click="PrevButton"/> <Button Foreground="White" Grid.Column="0" Content="←" HorizontalAlignment="Center" VerticalAlignment="Center" Click="PrevButton"/>
@ -138,6 +142,7 @@
<TextBlock Foreground="White" Grid.Row="5" Text="" HorizontalAlignment="Center" <TextBlock Foreground="White" Grid.Row="5" Text="" HorizontalAlignment="Center"
Name="GameDateTextBlock"/> Name="GameDateTextBlock"/>
</Grid> </Grid>
</Grid>
</Border> </Border>
</Grid> </Grid>
</Window> </Window>

View file

@ -57,10 +57,13 @@ public partial class MainWindow : Window
} }
} }
private void SwitchView(bool welcome) private void SwitchView(bool placeholder)
{ {
GameEdit.IsVisible = !welcome; GameEdit.IsVisible = !placeholder;
WelcomePanel.IsVisible = welcome; WelcomePanel.IsVisible = placeholder;
GameInfo.IsVisible = !placeholder;
GameInfoPlaceholder.IsVisible = placeholder;
} }
private void SetShowcaseArea() private void SetShowcaseArea()