<Page
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:local="clr-namespace:ForzaUI"
    mc:Ignorable="d"
	x:Class="ForzaUI.NIS_GTR_17">
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG1_Arial"/>
            <Setter Property="Foreground" Value="White"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="True" UseDegreesF="True" UseMPH="True" UsePsi="True" MaxBoost="20" MinBoost="0" MaxSpeed="00" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="00" MinGear="0" MaxGear="0" MaxRpm="0000.0"></local:DigitalGaugeConfig>
		
		<Storyboard x:Key="Start Up Animation">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Start_Up_Mask">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Boost Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Fill_3">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="57.685"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="73.128"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="90"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="104.378"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="118.931"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Fill_2">
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="40.558"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>	  

	<Canvas x:Name="LayoutRoot" Background="Transparent" Width="1280" Height="720">
        <Rectangle x:Name="BG" Fill="Black" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280"/>
        <Rectangle x:Name="BG_Center" Fill="#FF204573" Height="256" Canvas.Left="559" Canvas.Top="250" Width="512"/>
        <Image x:Name="Oil_Fill" Height="107" Canvas.Left="352.5" Source="game:/media/cars/NIS_GTR_17/UI/Textures/NIS_GTR_12_BoostGaugeFill.png" Stretch="Fill" Canvas.Top="248" Width="107" RenderTransformOrigin="1,1">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
        			<SkewTransform/>
        			<RotateTransform Angle="-36.769"/>
        			<TranslateTransform X="-21.645" Y="-21.303"/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
        <Image x:Name="Oil_Pressure_Fill" Height="107" Canvas.Left="358.5" Source="game:/media/cars/NIS_GTR_17/UI/Textures/NIS_GTR_12_BoostGaugeFill.png" Stretch="Fill" Canvas.Top="362" Width="107" RenderTransformOrigin="1,1">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
        			<SkewTransform/>
        			<RotateTransform Angle="-29.506"/>
        			<TranslateTransform X="-21.645" Y="-21.303"/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
        <Image x:Name="Oil_Pressure_Fill_2" Height="107" Canvas.Left="358.5" Source="game:/media/cars/NIS_GTR_17/UI/Textures/NIS_GTR_12_BoostGaugeFill.png" Stretch="Fill" Canvas.Top="362" Width="107" RenderTransformOrigin="1,1">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
        			<SkewTransform/>
        			<RotateTransform Angle="26.135"/>
        			<TranslateTransform X="-21.645" Y="-21.303"/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
        <Image x:Name="TRIP" Height="19" Width="20" Canvas.Left="888" Canvas.Top="318" Source="game:/media/cars/NIS_GTR_17/UI/Textures/NIS_GTR_12_TRIP.png" Stretch="Fill"/>
        <Rectangle x:Name="BG_Gear" Fill="#FF0367DF" Height="144" Canvas.Left="1104" Canvas.Top="304" Width="128"/>
        <Canvas x:Name="Boost_Animation" Height="359" Canvas.Left="13" Canvas.Top="207.5" Width="352.5">
        	<Image x:Name="Fill_1" Height="107" Canvas.Left="70" Source="game:/media/cars/NIS_GTR_17/UI/Textures/NIS_GTR_12_BoostGaugeFill.png" Stretch="Fill" Canvas.Top="77.5" Width="107" RenderTransformOrigin="1,1">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="-32.538"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="Fill_2" Height="107" Canvas.Left="70" Source="game:/media/cars/NIS_GTR_17/UI/Textures/NIS_GTR_12_BoostGaugeFill.png" Stretch="Fill" Canvas.Top="77.5" Width="107" RenderTransformOrigin="1,1">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="Fill_3" Height="107" Canvas.Left="70" Source="game:/media/cars/NIS_GTR_17/UI/Textures/NIS_GTR_12_BoostGaugeFill.png" Stretch="Fill" Canvas.Top="77.5" Width="107" RenderTransformOrigin="1,1">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        </Canvas>
        <Image x:Name="CenterConsole_Graphics" Height="375" Canvas.Left="17" Source="game:/media/cars/NIS_GTR_17/UI/Textures/NIS_GTR_17_CenterConsole.png" Stretch="Fill" Canvas.Top="177" Width="512"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="370" Canvas.Top="204" Text="{Binding Time}" FontSize="32" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White" Width="150">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.95"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Speed" Canvas.Left="729" Canvas.Top="381" Text="{Binding Speed}" Width="140" FontSize="64" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="1.1"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="892" Canvas.Top="283" Text="{Binding Odometer}" Width="124" FontSize="26.667" Style="{StaticResource TextBlockStyle}"/>
            <local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="912" Canvas.Top="312" Text="{Binding TripMeter}" Width="89" FontSize="26.667" Style="{StaticResource TextBlockStyle}" Height="30.663"/>
            <local:FastTextBlock x:Name="Text_Gear" Canvas.Left="1116" Canvas.Top="333" Text="{Binding Gear}" Width="100" TextAlignment="Center" FontSize="85.333" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="1.25"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <Image x:Name="graphics_MPH" Height="15" Canvas.Left="881" Source="game:/media/cars/NIS_GTR_17/UI/Textures/NIS_GTR_12_MPH.png" Stretch="Fill" Canvas.Top="427" Width="45"/>
            <local:FastTextBlock x:Name="Text_Temp_NULL" Canvas.Left="363" Canvas.Top="300" Text="186" FontSize="32" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White" Width="100">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="1.1"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <Image x:Name="graphics_miles" Height="12" Canvas.Left="934" Source="game:/media/cars/NIS_GTR_17/UI/Textures/NIS_GTR_12_Miles.png" Stretch="Fill" Canvas.Top="341" Width="37"/>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0"/>
        <Path Data="M-32,608" Fill="White" Height="0" Canvas.Left="-32" Stretch="Fill" Canvas.Top="608" Width="0"/>

        <!-- Storyboard binding controllers -->
        <local:StoryboardController SeekPct="{Binding BoostAnim}" Target="{StaticResource Boost Analog}"/>
	</Canvas>
</Page>