Skip to content

Commit

Permalink
changed default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
daerup committed Apr 19, 2024
1 parent 68d965b commit b124465
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
38 changes: 20 additions & 18 deletions Schnacc.UserInterface/PlayAreaView/PlayAreaPageView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,26 @@
<Grid Loaded="GridLoaded">
<DockPanel Height="Auto" Width="Auto" LastChildFill="True">
<Grid VerticalAlignment="Center" HorizontalAlignment="Center" DockPanel.Dock="Left">
<ItemsControl ItemsSource="{Binding ItemsOnPlayArea, IsAsync=True}" Name="GameStartOverlay">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Rows="{Binding NumberOfRows}" Columns="{Binding NumberOfColumns}"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border>
<Grid>
<Viewbox Stretch="Uniform">
<Rectangle Fill="{Binding}" Height="100" Width="100" Stroke="Black" StrokeThickness="1"/>
</Viewbox>
</Grid>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<Grid>
<ItemsControl ItemsSource="{Binding ItemsOnPlayArea, IsAsync=True}" Name="GameStartOverlay">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Rows="{Binding NumberOfRows}" Columns="{Binding NumberOfColumns}"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border>
<Grid>
<Viewbox Stretch="Uniform">
<Rectangle Fill="{Binding}" Height="100" Width="100" Stroke="Black" StrokeThickness="1"/>
</Viewbox>
</Grid>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
<Grid Visibility="{Binding Path=GameIsOver, Converter={StaticResource BoolToVisibilityConverter}}" DockPanel.Dock="Left">
<Rectangle Fill="IndianRed" Opacity="0.5" Name="GameOverOverlay"/>
<Viewbox StretchDirection="DownOnly" Height="{Binding ElementName=GameOverOverlay,Path=ActualHeight}" Width="{Binding ElementName=GameOverOverlay,Path=ActualWidth}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ private void OnRenderUpdate(object newGameState)
{
this.ItemsOnPlayArea[index] = this.SnakeColor;
}

this.ItemsOnPlayArea.SuppressNotification = false;
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class PlayAreaSettingsPageViewModel : ViewModelBase, INavigableViewModel

public int DifficultyLevel { get; set; } = 9;

public string NumberOfRows { get; set; } = "10";
public string NumberOfColumns { get; set; } = "10";
public string NumberOfRows { get; set; } = "50";
public string NumberOfColumns { get; set; } = "50";

public PlayAreaSettingsPageViewModel(INavigationService navigationService)
{
Expand Down
2 changes: 1 addition & 1 deletion Schnacc.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/FilterSettingsManager/CoverageFilterXml/@EntryValue">&lt;data&gt;&lt;IncludeFilters /&gt;&lt;ExcludeFilters&gt;&lt;Filter ModuleMask="SkillBill.Persistence" ModuleVersionMask="*" ClassMask="SkillBill.Persistence.Migrations.*" FunctionMask="*" IsEnabled="True" /&gt;&lt;Filter ModuleMask="Schnacc.Domain.UnitTests" ModuleVersionMask="*" ClassMask="AutoGeneratedProgram" FunctionMask="*" IsEnabled="True" /&gt;&lt;Filter ModuleMask="Schnacc.Domain.IntegrationTests" ModuleVersionMask="*" ClassMask="AutoGeneratedProgram" FunctionMask="*" IsEnabled="True" /&gt;&lt;/ExcludeFilters&gt;&lt;/data&gt;</s:String>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Highscore/@EntryIndexedValue">True</s:Boolean>

Expand Down

0 comments on commit b124465

Please sign in to comment.