<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_12">
	
    <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="25" MinBoost="-11" 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_1">
				<EasingDoubleKeyFrame KeyTime="0" Value="-120.961"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.031" Value="-108.389"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.062" Value="-95.886"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.09" Value="-84.195"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.123" Value="-72.127"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.155" Value="-60.292"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.188" Value="-47.882"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.22" Value="-35.822"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Fill_2">
				<EasingDoubleKeyFrame KeyTime="0" Value="-120.961"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.031" Value="-108.389"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.062" Value="-95.886"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.09" Value="-84.195"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.123" Value="-72.127"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.155" Value="-60.292"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.188" Value="-47.882"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.22" Value="-35.822"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.249" Value="-23.916"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.276" Value="-11.755"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.306" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.348" Value="7.763"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.391" Value="15.622"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.438" Value="23.641"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.483" Value="31.6"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.526" Value="39.698"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.565" Value="47.506"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Fill_3">
				<EasingDoubleKeyFrame KeyTime="0" Value="-120.961"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.031" Value="-108.389"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.062" Value="-95.886"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.09" Value="-84.195"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.123" Value="-72.127"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.155" Value="-60.292"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.188" Value="-47.882"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.22" Value="-35.822"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.249" Value="-23.916"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.276" Value="-11.755"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.306" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.348" Value="7.763"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.391" Value="15.622"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.438" Value="23.641"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.483" Value="31.6"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.526" Value="39.698"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.565" Value="47.506"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.611" Value="55.371"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.656" Value="63.667"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.703" Value="71.385"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="79.401"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="87.063"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.848" Value="94.978"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.899" Value="102.938"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.948" Value="111.438"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="119.369"/>
			</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_12/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_12/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_12/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_12/UI/Textures/NIS_GTR_12_TRIP.png" Stretch="Fill"/>
        <Rectangle x:Name="BG_Gear" Fill="#FF0367DF" Height="128" 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_12/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="-120.961"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="Fill_2" Height="107" Canvas.Left="70" Source="game:/media/cars/NIS_GTR_12/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="-120.961"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="Fill_3" Height="107" Canvas.Left="70" Source="game:/media/cars/NIS_GTR_12/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="-120.961"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        </Canvas>
        <Image x:Name="MFD_BG" Height="512" Canvas.Left="17" Source="game:/media/cars/NIS_GTR_12/UI/Textures/NIS_GTR_12_MFD.png" Stretch="Fill" Canvas.Top="104" Width="512"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="448" Canvas.Top="204" Text="{Binding Time}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="#FFE9463F">
            	<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="730" Canvas.Top="369" Text="{Binding Speed}" Width="140" FontSize="72" 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="320" 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_12/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_12/UI/Textures/NIS_GTR_12_Miles.png" Stretch="Fill" Canvas.Top="341" Width="37"/>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="53" 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>