Added first pass of How to Play screens
This commit is contained in:
Родитель
d21caa8755
Коммит
66b00af9e9
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 31 KiB |
|
@ -9,10 +9,13 @@
|
||||||
gaze:GazeInput.Interaction="Enabled"
|
gaze:GazeInput.Interaction="Enabled"
|
||||||
gaze:GazeInput.IsCursorVisible="False"
|
gaze:GazeInput.IsCursorVisible="False"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
KeyUp="OnPageKeyUp" Loaded="Page_Loaded" FontFamily="Segoe UI">
|
KeyUp="OnPageKeyUp" Loaded="Page_Loaded" FontFamily="Segoe UI" MinWidth="700" MinHeight="700">
|
||||||
|
|
||||||
<Page.Resources>
|
<Page.Resources>
|
||||||
<Duration x:Key="DestructiveDwellDuration">00:00:01.0000000</Duration>
|
<Duration x:Key="DestructiveDwellDuration">00:00:01.0000000</Duration>
|
||||||
|
<Duration x:Key="RepeatDelayDuration">00:00:00.8000000</Duration>
|
||||||
|
<Duration x:Key="RepeatDuration">00:00:00.8000000</Duration>
|
||||||
|
<x:Double x:Key="HelpTextFontSize">30</x:Double>
|
||||||
<Style x:Key="ActionButtonStyle" TargetType="Button">
|
<Style x:Key="ActionButtonStyle" TargetType="Button">
|
||||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||||
|
@ -97,8 +100,8 @@
|
||||||
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Margin="150,-5,0,0" FontSize="36" FontWeight="SemiBold" Foreground="{StaticResource TileBackground}" FontFamily="Segoe UI">DOUBLE UP</TextBlock>
|
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Margin="150,-5,0,0" FontSize="36" FontWeight="SemiBold" Foreground="{StaticResource TileBackground}" FontFamily="Segoe UI">DOUBLE UP</TextBlock>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Grid.Column="2" Orientation="Vertical" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,100,0" Grid.ColumnSpan="2">
|
<StackPanel Grid.Column="1" Orientation="Vertical" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,150,0" Grid.ColumnSpan="3">
|
||||||
<Border Width="400" Margin="0,0,0,0" IsHitTestVisible="False" >
|
<Border Margin="0,0,0,0" IsHitTestVisible="False" >
|
||||||
<Grid IsHitTestVisible="False">
|
<Grid IsHitTestVisible="False">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="auto" />
|
<RowDefinition Height="auto" />
|
||||||
|
@ -186,6 +189,14 @@
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<Button Background="{x:Null}" Foreground="White" Margin="40,40,40,40" HorizontalAlignment="Left" VerticalAlignment="Bottom" Click="OnHowToPlayButton" FontSize="24" Height="100" FontWeight="SemiBold" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="0,0,0,0" FontFamily="Segoe UI" Grid.Column="1" FocusVisualPrimaryBrush="Transparent" Grid.Row="1">
|
||||||
|
<Border Background="{StaticResource ToolBarButtonBackground}" CornerRadius="10,10,10,10">
|
||||||
|
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Padding="20,0,20,0" FontFamily="Segoe UI">
|
||||||
|
How to Play
|
||||||
|
</TextBlock>
|
||||||
|
</Border>
|
||||||
|
</Button>
|
||||||
|
|
||||||
<Grid Grid.Row="1" Grid.Column="1">
|
<Grid Grid.Row="1" Grid.Column="1">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition />
|
<RowDefinition />
|
||||||
|
@ -223,5 +234,198 @@
|
||||||
</Grid>
|
</Grid>
|
||||||
<TextBlock x:Name="VersionTextBlock" HorizontalAlignment="Right" VerticalAlignment="Bottom" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Padding="0,0,10,10" FontFamily="Segoe UI" Grid.RowSpan="2"></TextBlock>
|
<TextBlock x:Name="VersionTextBlock" HorizontalAlignment="Right" VerticalAlignment="Bottom" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Padding="0,0,10,10" FontFamily="Segoe UI" Grid.RowSpan="2"></TextBlock>
|
||||||
<TextBlock Grid.Row="1" Grid.Column="1" Text="Game Over" Visibility="{x:Bind Path=Board.GameOver, Mode=OneWay}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="48" Foreground="{StaticResource ToolBarButtonBackground}" Grid.RowSpan="2" Grid.ColumnSpan="3" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,-20,0,0" />
|
<TextBlock Grid.Row="1" Grid.Column="1" Text="Game Over" Visibility="{x:Bind Path=Board.GameOver, Mode=OneWay}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="48" Foreground="{StaticResource ToolBarButtonBackground}" Grid.RowSpan="2" Grid.ColumnSpan="3" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,-20,0,0" />
|
||||||
|
|
||||||
|
<Grid Grid.Row="0" Grid.RowSpan="7" Grid.ColumnSpan="6" x:Name="HelpDialogGrid" Visibility="Collapsed" Background="#99FFFFFF" Margin="0,0,0,0" >
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="5*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="5*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Border BorderBrush="{ThemeResource AppBarItemForegroundThemeBrush}" BorderThickness="1" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Background="{StaticResource TileBackground}" CornerRadius="20,20,20,20" Margin="20,0,18,0">
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="5*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
|
||||||
|
<Button x:Name="HelpNavRightButton" Grid.Column="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="20,10,20,10" Foreground="{StaticResource ToolBarButtonBackground}" FontSize="24" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="0,0,0,0" Click="OnHelpNavRight" gaze:GazeInput.MaxDwellRepeatCount="5" gaze:GazeInput.RepeatDelayDuration="{StaticResource RepeatDelayDuration}" gaze:GazeInput.DwellRepeatDuration="{StaticResource RepeatDuration}">
|
||||||
|
<Border Background="White" CornerRadius="5" HorizontalAlignment="Stretch">
|
||||||
|
<TextBlock Text="" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="SemiBold" FontFamily="Segoe MDL2 Assets" FontSize="72"></TextBlock>
|
||||||
|
</Border>
|
||||||
|
</Button>
|
||||||
|
<Button x:Name="HelpNavLeftButton" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="{StaticResource ToolBarButtonBackground}" FontSize="24" Padding="0,0,0,0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="20,10,20,10" Click="OnHelpNavLeft" IsEnabled="False" gaze:GazeInput.MaxDwellRepeatCount="5" gaze:GazeInput.RepeatDelayDuration="{StaticResource RepeatDelayDuration}" gaze:GazeInput.DwellRepeatDuration="{StaticResource RepeatDuration}">
|
||||||
|
<Border Background="White" CornerRadius="5" HorizontalAlignment="Stretch">
|
||||||
|
<TextBlock Text="" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="SemiBold" FontFamily="Segoe MDL2 Assets" FontSize="72"></TextBlock>
|
||||||
|
</Border>
|
||||||
|
</Button>
|
||||||
|
<Grid x:Name="HelpScreen1" Grid.Column="1" Visibility="Visible" Margin="50,0,50,0" >
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="150px"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TextBlock Grid.Column="1" HorizontalAlignment="Center" TextWrapping="Wrap" Text="How to Play" VerticalAlignment="Center" FontSize="48" Foreground="White" FontFamily="Segoe UI"/>
|
||||||
|
<TextBlock Grid.Column="1" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Eyes First Double Up is a game played in a four by four grid.

A value of two or a four willl drop into an empty cell at the beginning of the game and after each move.

Moves are made by shifting cells in one of the four directions by triggering the corresponding button. When cells containing the same value collide they double and merge." VerticalAlignment="Top" FontSize="{StaticResource HelpTextFontSize}" Foreground="White" Grid.Row="1"/>
|
||||||
|
<TextBlock Text="1 of 5" Foreground="White" FontSize="24" HorizontalAlignment="Right" VerticalAlignment="Center"/>
|
||||||
|
</Grid>
|
||||||
|
<Grid x:Name="HelpScreen2" Grid.Column="1" Visibility="Collapsed" Margin="50,0,50,0" >
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="150px"/>
|
||||||
|
<RowDefinition Height="2*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock Grid.Column="0" HorizontalAlignment="Center" TextWrapping="Wrap" Text="How to Play" VerticalAlignment="Center" FontSize="48" Foreground="White" FontFamily="Segoe UI" Grid.ColumnSpan="2"/>
|
||||||
|
<TextBlock Text="2 of 5" Foreground="White" FontSize="24" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1"/>
|
||||||
|
<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="The goal of the game is continue shifting cells and doubling cells for as long as possible to eventually have a cell that contains 2048 or even higher. " VerticalAlignment="Top" FontSize="{StaticResource HelpTextFontSize}" Foreground="White" Grid.RowSpan="2" Grid.Row="1"/>
|
||||||
|
<Image Source="/Assets/2048NoMoreMoves.PNG" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Grid.Column="1" Grid.RowSpan="1" Grid.Row="1" Stretch="Uniform"/>
|
||||||
|
</Grid>
|
||||||
|
<Grid x:Name="HelpScreen3" Grid.Column="1" Visibility="Collapsed" Margin="50,0,50,0" >
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="150px"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="How to Play" VerticalAlignment="Center" FontSize="48" Foreground="White" FontFamily="Segoe UI"/>
|
||||||
|
<TextBlock Text="3 of 5" Foreground="White" FontSize="24" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1"/>
|
||||||
|
<Grid HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Top" Grid.Row="1">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="20px"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<!--<Button HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="Segoe MDL2 Assets" FontSize="26" Width="50" Height="50" Background="{x:Null}" FontWeight="SemiBold" Margin="0,0,0,0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="0,0,0,0">
|
||||||
|
<Border x:Name="PauseButtonBorder" Background="{StaticResource ToolBarButtonBackground}" CornerRadius="5" HorizontalAlignment="Stretch">
|
||||||
|
<TextBlock x:Name="PauseButtonText" Text="" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="SemiBold" FontFamily="Segoe MDL2 Assets" Foreground="White"></TextBlock>
|
||||||
|
</Border>
|
||||||
|
</Button>-->
|
||||||
|
<TextBlock Foreground="White" FontSize="{StaticResource HelpTextFontSize}" VerticalAlignment="Center" Margin="10,0,0,0" TextWrapping="Wrap" Grid.Column="0" Grid.ColumnSpan="2">When all of the cells on the board are filled with values and none of the adjacent values equal each other there will be no further doublings possible and the game will be over.</TextBlock>
|
||||||
|
|
||||||
|
<Button HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="Segoe" FontSize="16" Width="50" Height="50" Background="{x:Null}" FontWeight="SemiBold" Margin="0,0,0,0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="0,0,0,0" Grid.Row="2">
|
||||||
|
<Border Background="{StaticResource ToolBarButtonBackground}" CornerRadius="5" HorizontalAlignment="Stretch">
|
||||||
|
<TextBlock Text="New" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="SemiBold" Foreground="White"></TextBlock>
|
||||||
|
</Border>
|
||||||
|
</Button>
|
||||||
|
<TextBlock Foreground="White" FontSize="{StaticResource HelpTextFontSize}" VerticalAlignment="Center" Margin="10,0,0,0" TextWrapping="Wrap" Grid.Column="8" Grid.Row="2" FontFamily="Segoe MDL2 Assets">Press New to start again.</TextBlock>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
<Grid x:Name="HelpScreen4" Grid.Column="1" Visibility="Collapsed" Margin="50,0,50,0" >
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="150px"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="How to Play" VerticalAlignment="Center" FontSize="48" Foreground="White" FontFamily="Segoe UI"/>
|
||||||
|
<TextBlock Text="4 of 5" Foreground="White" FontSize="24" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1"/>
|
||||||
|
<Grid HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Top" Grid.Row="1">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBlock Foreground="White" FontSize="{StaticResource HelpTextFontSize}" VerticalAlignment="Center" Margin="10,0,0,19" TextWrapping="Wrap" Grid.ColumnSpan="2">The buttons below have longer dwell times so as to prevent the user from exiting or closing out of the game by mistake:</TextBlock>
|
||||||
|
|
||||||
|
<Button HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="Segoe MDL2 Assets" FontSize="26" Width="50" Height="50" Background="{x:Null}" FontWeight="SemiBold" Margin="0,0,0,0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="0,0,0,0" Grid.Row="1" gaze:GazeInput.DwellDuration="{StaticResource DestructiveDwellDuration}">
|
||||||
|
<Border x:Name="ExitBorder" Background="{StaticResource ToolBarButtonBackground}" CornerRadius="5" HorizontalAlignment="Stretch">
|
||||||
|
<TextBlock x:Name="ExitButtonText" Text="" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="SemiBold" FontFamily="Segoe MDL2 Assets" Foreground="White"></TextBlock>
|
||||||
|
</Border>
|
||||||
|
</Button>
|
||||||
|
<TextBlock Foreground="White" FontSize="{StaticResource HelpTextFontSize}" VerticalAlignment="Center" Margin="10,-5,0,0" TextWrapping="Wrap" Grid.Column="8" Grid.Row="1" FontFamily="Segoe MDL2 Assets"> exit game entirely</TextBlock>
|
||||||
|
|
||||||
|
<Button HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="Segoe MDL2 Assets" FontSize="16" Width="50" Height="50" Background="{x:Null}" FontWeight="SemiBold" Margin="0,5,0,0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="0,0,0,0" Grid.Row="2" gaze:GazeInput.DwellDuration="{StaticResource DestructiveDwellDuration}">
|
||||||
|
<Border Background="{StaticResource ToolBarButtonBackground}" CornerRadius="5" HorizontalAlignment="Stretch">
|
||||||
|
<TextBlock Text="New" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="SemiBold" FontFamily="Segoe" Foreground="White"></TextBlock>
|
||||||
|
</Border>
|
||||||
|
</Button>
|
||||||
|
<TextBlock Foreground="White" FontSize="{StaticResource HelpTextFontSize}" VerticalAlignment="Center" Margin="10,-5,0,0" TextWrapping="Wrap" Grid.Column="8" Grid.Row="2" FontFamily="Segoe MDL2 Assets"> start a new game</TextBlock>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
<Grid x:Name="HelpScreen5" Grid.Column="1" Visibility="Collapsed" Margin="50,0,50,0" >
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="150px"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="Privacy & Terms" VerticalAlignment="Center" FontSize="48" Foreground="White" FontFamily="Segoe UI"/>
|
||||||
|
<TextBlock Text="5 of 5" Foreground="White" FontSize="24" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1"/>
|
||||||
|
<Grid HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Top" Grid.Row="1">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBlock Foreground="White" FontSize="{StaticResource HelpTextFontSize}" VerticalAlignment="Center" Margin="10,0,0,19" TextWrapping="Wrap" Grid.ColumnSpan="2"></TextBlock>
|
||||||
|
|
||||||
|
<HyperlinkButton x:Name="PrivacyHyperlink" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="1" Height="150" Width="150" Foreground="White" FontFamily="Segoe UI" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Click="PrivacyHyperlink_Click" Margin="50,0,0,0">
|
||||||
|
<Border CornerRadius="5" Background="{StaticResource ToolBarButtonBackground}" BorderThickness="3,0,0,0">
|
||||||
|
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">Privacy & Cookies</TextBlock>
|
||||||
|
</Border>
|
||||||
|
</HyperlinkButton>
|
||||||
|
|
||||||
|
<HyperlinkButton x:Name="UseTermsHyperlink" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Column="1" Grid.Row="1" Height="150" Width="150" Foreground="White" FontFamily="Segoe UI" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="0,0,50,0" Click="UseTermsHyperlink_Click">
|
||||||
|
<Border CornerRadius="5" Background="{StaticResource ToolBarButtonBackground}">
|
||||||
|
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Segoe UI">Use Terms</TextBlock>
|
||||||
|
</Border>
|
||||||
|
</HyperlinkButton>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
<Button Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontFamily="Segoe MDL2 Assets" FontSize="52" Height="100" Background="{x:Null}" FontWeight="SemiBold" Margin="0,20,20,20" FocusVisualPrimaryBrush="Transparent" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="0,0,0,0" Click="DismissButton">
|
||||||
|
<Border Background="White" CornerRadius="5" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Stretch">
|
||||||
|
<!--<TextBlock Text="" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="SemiBold" ></TextBlock>-->
|
||||||
|
<TextBlock Text="Back to game" Foreground="{StaticResource ToolBarButtonBackground}" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold" FontSize="24" Padding="60,0,60,0" ></TextBlock>
|
||||||
|
</Border>
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid x:Name="PrivacyViewGrid" Grid.RowSpan="6" Grid.ColumnSpan="6" Visibility="Collapsed" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||||
|
<Grid.Background>
|
||||||
|
<LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1.2" MappingMode="RelativeToBoundingBox" SpreadMethod="Pad">
|
||||||
|
<GradientStop Color="#c6ffff" Offset="0.8"/>
|
||||||
|
<GradientStop Color="#FFc6beff" Offset="0.009"/>
|
||||||
|
<GradientStop Color="White" Offset="1"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
</Grid.Background>
|
||||||
|
<Border Margin="50,50,50,230" BorderBrush="{StaticResource TileBackground}" BorderThickness="1,1,1,1" >
|
||||||
|
<WebView x:Name="PrivacyWebView" NavigationCompleted="PrivacyWebView_NavigationCompleted"/>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<TextBlock x:Name="WebViewLoadingText" Visibility="Collapsed" Text="Loading.." VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="24" Margin="0,0,0,200" Foreground="{StaticResource ToolBarButtonBackground}" FontFamily="Segoe UI" />
|
||||||
|
<Button x:Name="PrivacyViewScrollUpButton" Content="" Width="150" Height="150" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="150,50,50,50" Click="PrivacyViewScrollUpButton_Click" Background="{StaticResource ToolBarButtonBackground}" Foreground="White" FontFamily="Segoe MDL2 Assets" gaze:GazeInput.MaxDwellRepeatCount="99"></Button>
|
||||||
|
|
||||||
|
<Button x:Name="PrivacyViewScrollDownButton" Content="" Width="150" Height="150" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="400,50,0,50" Click="PrivacyViewScrollDownButton_Click" Background="{StaticResource ToolBarButtonBackground}" Foreground="White" FontFamily="Segoe MDL2 Assets" gaze:GazeInput.MaxDwellRepeatCount="99"/>
|
||||||
|
|
||||||
|
<Button x:Name="PrivacyViewContinueButton" Width="300" Height="150" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,50,150,50" Click="PrivacyViewContinueButton_Click" Background="{StaticResource ToolBarButtonBackground}" Foreground="White" Content="Continue" FontSize="24"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Page>
|
</Page>
|
||||||
|
|
|
@ -686,7 +686,8 @@ namespace TwoZeroFourEight
|
||||||
{
|
{
|
||||||
public Board Board;
|
public Board Board;
|
||||||
|
|
||||||
private SolidColorBrush _solidTileForegroundBrush;
|
private SolidColorBrush _solidTileForegroundBrush;
|
||||||
|
private SolidColorBrush _solidTileBrush;
|
||||||
|
|
||||||
public MainPage()
|
public MainPage()
|
||||||
{
|
{
|
||||||
|
@ -801,6 +802,7 @@ namespace TwoZeroFourEight
|
||||||
}
|
}
|
||||||
|
|
||||||
_solidTileForegroundBrush = (SolidColorBrush)this.Resources["TileForeground"];
|
_solidTileForegroundBrush = (SolidColorBrush)this.Resources["TileForeground"];
|
||||||
|
_solidTileBrush = (SolidColorBrush)this.Resources["TileBackground"];
|
||||||
|
|
||||||
GazeInput.DwellFeedbackProgressBrush = _solidTileForegroundBrush;
|
GazeInput.DwellFeedbackProgressBrush = _solidTileForegroundBrush;
|
||||||
GazeInput.DwellFeedbackCompleteBrush = new SolidColorBrush(Colors.Transparent);
|
GazeInput.DwellFeedbackCompleteBrush = new SolidColorBrush(Colors.Transparent);
|
||||||
|
@ -816,6 +818,21 @@ namespace TwoZeroFourEight
|
||||||
return string.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);
|
return string.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnHowToPlayButton(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
GazeInput.DwellFeedbackProgressBrush = _solidTileBrush;
|
||||||
|
|
||||||
|
HelpScreen1.Visibility = Visibility.Visible;
|
||||||
|
HelpScreen2.Visibility = Visibility.Collapsed;
|
||||||
|
HelpScreen3.Visibility = Visibility.Collapsed;
|
||||||
|
HelpScreen4.Visibility = Visibility.Collapsed;
|
||||||
|
HelpScreen5.Visibility = Visibility.Collapsed;
|
||||||
|
HelpNavLeftButton.IsEnabled = false;
|
||||||
|
HelpNavRightButton.IsEnabled = true;
|
||||||
|
|
||||||
|
HelpDialogGrid.Visibility = Visibility.Visible;
|
||||||
|
}
|
||||||
|
|
||||||
private void GameBoardGrid_SizeChanged(object sender, SizeChangedEventArgs e)
|
private void GameBoardGrid_SizeChanged(object sender, SizeChangedEventArgs e)
|
||||||
{
|
{
|
||||||
Double narrowEdge = GameBoardGrid.ActualHeight ;
|
Double narrowEdge = GameBoardGrid.ActualHeight ;
|
||||||
|
@ -824,6 +841,125 @@ namespace TwoZeroFourEight
|
||||||
narrowEdge = GameBoardGrid.ActualWidth ;
|
narrowEdge = GameBoardGrid.ActualWidth ;
|
||||||
}
|
}
|
||||||
Board.CellSpace = narrowEdge;
|
Board.CellSpace = narrowEdge;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnHelpNavRight(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (HelpScreen1.Visibility == Visibility.Visible)
|
||||||
|
{
|
||||||
|
HelpScreen1.Visibility = Visibility.Collapsed;
|
||||||
|
HelpScreen2.Visibility = Visibility.Visible;
|
||||||
|
HelpNavRightButton.IsEnabled = true;
|
||||||
|
HelpNavLeftButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
else if (HelpScreen2.Visibility == Visibility.Visible)
|
||||||
|
{
|
||||||
|
HelpScreen2.Visibility = Visibility.Collapsed;
|
||||||
|
HelpScreen3.Visibility = Visibility.Visible;
|
||||||
|
HelpNavRightButton.IsEnabled = true;
|
||||||
|
HelpNavLeftButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
else if (HelpScreen3.Visibility == Visibility.Visible)
|
||||||
|
{
|
||||||
|
HelpScreen3.Visibility = Visibility.Collapsed;
|
||||||
|
HelpScreen4.Visibility = Visibility.Visible;
|
||||||
|
HelpNavRightButton.IsEnabled = true;
|
||||||
|
HelpNavLeftButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
else if (HelpScreen4.Visibility == Visibility.Visible)
|
||||||
|
{
|
||||||
|
HelpScreen4.Visibility = Visibility.Collapsed;
|
||||||
|
HelpScreen5.Visibility = Visibility.Visible;
|
||||||
|
HelpNavRightButton.IsEnabled = false;
|
||||||
|
HelpNavLeftButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
else if (HelpScreen5.Visibility == Visibility.Visible)
|
||||||
|
{
|
||||||
|
HelpNavRightButton.IsEnabled = false;
|
||||||
|
HelpNavLeftButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnHelpNavLeft(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (HelpScreen1.Visibility == Visibility.Visible)
|
||||||
|
{
|
||||||
|
HelpNavLeftButton.IsEnabled = false;
|
||||||
|
HelpNavRightButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
else if (HelpScreen2.Visibility == Visibility.Visible)
|
||||||
|
{
|
||||||
|
HelpScreen2.Visibility = Visibility.Collapsed;
|
||||||
|
HelpScreen1.Visibility = Visibility.Visible;
|
||||||
|
HelpNavLeftButton.IsEnabled = false;
|
||||||
|
HelpNavRightButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
else if (HelpScreen3.Visibility == Visibility.Visible)
|
||||||
|
{
|
||||||
|
HelpScreen3.Visibility = Visibility.Collapsed;
|
||||||
|
HelpScreen2.Visibility = Visibility.Visible;
|
||||||
|
HelpNavLeftButton.IsEnabled = true;
|
||||||
|
HelpNavRightButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (HelpScreen4.Visibility == Visibility.Visible)
|
||||||
|
{
|
||||||
|
HelpScreen4.Visibility = Visibility.Collapsed;
|
||||||
|
HelpScreen3.Visibility = Visibility.Visible;
|
||||||
|
HelpNavLeftButton.IsEnabled = true;
|
||||||
|
HelpNavRightButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (HelpScreen5.Visibility == Visibility.Visible)
|
||||||
|
{
|
||||||
|
HelpScreen5.Visibility = Visibility.Collapsed;
|
||||||
|
HelpScreen4.Visibility = Visibility.Visible;
|
||||||
|
HelpNavLeftButton.IsEnabled = true;
|
||||||
|
HelpNavRightButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DismissButton(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
HelpDialogGrid.Visibility = Visibility.Collapsed;
|
||||||
|
GazeInput.DwellFeedbackProgressBrush = new SolidColorBrush(Colors.White);
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void PrivacyViewScrollUpButton_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
PrivacyWebView.InvokeScriptAsync("eval", new string[] { "window.scrollBy(0,-" + PrivacyWebView.ActualHeight / 2 + ") " });
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PrivacyViewScrollDownButton_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
PrivacyWebView.InvokeScriptAsync("eval", new string[] { "window.scrollBy(0," + PrivacyWebView.ActualHeight / 2 + ") " });
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PrivacyViewContinueButton_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
PrivacyViewGrid.Visibility = Visibility.Collapsed;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PrivacyHyperlink_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
GazeInput.DwellFeedbackProgressBrush = new SolidColorBrush(Colors.Transparent);
|
||||||
|
WebViewLoadingText.Visibility = Visibility.Visible;
|
||||||
|
PrivacyWebView.Navigate(new System.Uri("https://go.microsoft.com/fwlink/?LinkId=521839"));
|
||||||
|
PrivacyViewGrid.Visibility = Visibility.Visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void UseTermsHyperlink_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
GazeInput.DwellFeedbackProgressBrush = new SolidColorBrush(Colors.Transparent);
|
||||||
|
WebViewLoadingText.Visibility = Visibility.Visible;
|
||||||
|
PrivacyWebView.Navigate(new System.Uri("https://www.microsoft.com/en-us/servicesagreement/default.aspx"));
|
||||||
|
PrivacyViewGrid.Visibility = Visibility.Visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PrivacyWebView_NavigationCompleted(WebView sender, WebViewNavigationCompletedEventArgs args)
|
||||||
|
{
|
||||||
|
GazeInput.DwellFeedbackProgressBrush = _solidTileBrush;
|
||||||
|
WebViewLoadingText.Visibility = Visibility.Collapsed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
|
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
|
||||||
<Identity Name="4e21ae5c-147f-4626-b664-0dddb7bcfbab" Publisher="CN=harishsk" Version="1.0.13.0" />
|
<Identity Name="4e21ae5c-147f-4626-b664-0dddb7bcfbab" Publisher="CN=harishsk" Version="1.0.16.0" />
|
||||||
<mp:PhoneIdentity PhoneProductId="4e21ae5c-147f-4626-b664-0dddb7bcfbab" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
|
<mp:PhoneIdentity PhoneProductId="4e21ae5c-147f-4626-b664-0dddb7bcfbab" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
|
||||||
<Properties>
|
<Properties>
|
||||||
<DisplayName>2048</DisplayName>
|
<DisplayName>2048</DisplayName>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
|
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
|
||||||
<AppxBundle>Always</AppxBundle>
|
<AppxBundle>Always</AppxBundle>
|
||||||
<AppxBundlePlatforms>x64</AppxBundlePlatforms>
|
<AppxBundlePlatforms>x64</AppxBundlePlatforms>
|
||||||
<PackageCertificateThumbprint>6F9FC767397762DA2870036E4B08EC418BFD663B</PackageCertificateThumbprint>
|
<PackageCertificateThumbprint>6553FA7BE60D4F55F61D9CD6DF48AF114935F833</PackageCertificateThumbprint>
|
||||||
<AppInstallerUpdateFrequency>1</AppInstallerUpdateFrequency>
|
<AppInstallerUpdateFrequency>1</AppInstallerUpdateFrequency>
|
||||||
<AppInstallerCheckForUpdateFrequency>OnApplicationRun</AppInstallerCheckForUpdateFrequency>
|
<AppInstallerCheckForUpdateFrequency>OnApplicationRun</AppInstallerCheckForUpdateFrequency>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@ -115,6 +115,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Assets\2048.png" />
|
<Content Include="Assets\2048.png" />
|
||||||
|
<Content Include="Assets\2048NoMoreMoves.png" />
|
||||||
<Content Include="Assets\LargeTile.scale-100.png" />
|
<Content Include="Assets\LargeTile.scale-100.png" />
|
||||||
<Content Include="Assets\LargeTile.scale-125.png" />
|
<Content Include="Assets\LargeTile.scale-125.png" />
|
||||||
<Content Include="Assets\LargeTile.scale-150.png" />
|
<Content Include="Assets\LargeTile.scale-150.png" />
|
||||||
|
|
Загрузка…
Ссылка в новой задаче