forked from BlueFinBima/Helios14
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of NVG images for the F/A-18C hornet and AutoBind for …
…Gauges (#863) * Implementation of NVG images for the F/A-18C hornet using some of the images from @niru-27 PR #862. This has involved creation of an alternate image capability for gauges. CompositeVisual has been extended to allow the creation of default input bindings which have a luascript trigger. This also involved creating default bindings for non-Child classes, and BaseGauge now inherits from Composite Visual to allow gauges to have input bindings. All of the Helios supplied F/A-18C toolbox components now have NVG capabilities, and those which did not auto-bind, now do... including the MFDs. The MFDs have also had Viewport Extents added to them. All of the F/A-18C gauges have been made * Slight adjustment to the class structure of the gauges to de-risk gauges from non-hornet aircraft. * Cabin Pressure gauge unlinked from A-10 version, fixes for autobinding of IFEI and UFC which were broken in previous commit. Previous commit broke GaugeRenderer. * Adjusted the size of the VVI to 300x300. Tweaked some templates. * Fix for the background of the Barometric Altimeter. * More code tidy up.
- Loading branch information
1 parent
70544ce
commit 0123f38
Showing
293 changed files
with
4,524 additions
and
259 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Canvas Width="17.410" Height="110" Name="ADI_Bank_Arrow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<Canvas> | ||
|
||
<Canvas> | ||
|
||
<!-- ADI Inner Ring/Innermost Ring and Pointer/Inside Ring and Pointer --> | ||
<Path StrokeThickness="1.0" Stroke="#ff000000" StrokeMiterLimit="1.0" Fill="#ff00ff00" Data="F1 M 12.705,12.923 L 8.705,1.511 L 4.705,12.923 L 0.705,24.334 L 8.705,24.334 L 16.705,24.334 L 12.705,12.923 Z"/> | ||
|
||
</Canvas> | ||
|
||
</Canvas> | ||
</Canvas> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions
53
Aircraft FA-18C Plugin/Gauges/ADI/Alt/adi_bank_pointer.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Name="svg2" Width="11" Height="221"> | ||
<Canvas.Resources> | ||
<LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient4269" MappingMode="RelativeToBoundingBox" StartPoint="0,0" EndPoint="1,1"> | ||
<LinearGradientBrush.GradientStops> | ||
<GradientStopCollection> | ||
<GradientStop Color="#FF646464" Offset="0"/> | ||
<GradientStop Color="#FF141414" Offset="1"/> | ||
</GradientStopCollection> | ||
</LinearGradientBrush.GradientStops> | ||
</LinearGradientBrush> | ||
<LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient3897" MappingMode="RelativeToBoundingBox" StartPoint="0,0" EndPoint="1,1"> | ||
<LinearGradientBrush.GradientStops> | ||
<GradientStopCollection> | ||
<GradientStop Color="#00505050" Offset="0"/> | ||
<GradientStop Color="#00505050" Offset="0.81944442"/> | ||
<GradientStop Color="#9F505050" Offset="1"/> | ||
</GradientStopCollection> | ||
</LinearGradientBrush.GradientStops> | ||
</LinearGradientBrush> | ||
<RadialGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="radialGradient3903" MappingMode="Absolute" Center="174,159.5" GradientOrigin="174,159.5" RadiusX="111.4995" RadiusY="111.4995"> | ||
<RadialGradientBrush.GradientStops> | ||
<GradientStopCollection> | ||
<GradientStop Color="#00505050" Offset="0"/> | ||
<GradientStop Color="#00505050" Offset="0.81944442"/> | ||
<GradientStop Color="#9F505050" Offset="1"/> | ||
</GradientStopCollection> | ||
</RadialGradientBrush.GradientStops> | ||
</RadialGradientBrush> | ||
<RadialGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="radialGradient4275" MappingMode="Absolute" Center="175,312" GradientOrigin="175,312" RadiusX="5" RadiusY="5"> | ||
<RadialGradientBrush.GradientStops> | ||
<GradientStopCollection> | ||
<GradientStop Color="#FF646464" Offset="0"/> | ||
<GradientStop Color="#FF141414" Offset="1"/> | ||
</GradientStopCollection> | ||
</RadialGradientBrush.GradientStops> | ||
</RadialGradientBrush> | ||
</Canvas.Resources> | ||
<Canvas Name="layer11"> | ||
<Canvas> | ||
<Canvas.RenderTransform> | ||
<TransformGroup> | ||
<!--g--> | ||
<TranslateTransform X="-168.70109" Y="-52.952662"/> | ||
</TransformGroup> | ||
</Canvas.RenderTransform> | ||
<Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="path3969" Fill="#ff00ff00" Stroke="#FF000000" StrokeThickness="1" StrokeMiterLimit="4" Data="m 178.1998 295.57946 -12.3996 0 L 172 284.84109 z"> | ||
<!--path--> | ||
<Path.RenderTransform> | ||
<MatrixTransform Matrix="0.76492719,0,0,-1.3338676,42.443609,653.78412"/> | ||
</Path.RenderTransform> | ||
</Path> | ||
<Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="path4152" Fill="#ff00ff00" Stroke="#FF000000" StrokeThickness="1" StrokeMiterLimit="4" Data="m 178.1998 295.57946 -12.3996 0 L 172 284.84109 z"><!--path--><Path.RenderTransform><MatrixTransform Matrix="0.76492719,0,0,1.3338676,42.443609,-326.42004"/></Path.RenderTransform></Path></Canvas></Canvas></Canvas> |
10 changes: 10 additions & 0 deletions
10
Aircraft FA-18C Plugin/Gauges/ADI/Alt/adi_bank_steering_bar.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Name="svg2" Width="24" Height="239"><Canvas.Resources><LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient4269" MappingMode="RelativeToBoundingBox" StartPoint="0,0" EndPoint="1,1"><LinearGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#FF646464" Offset="0"/><GradientStop Color="#FF141414" Offset="1"/></GradientStopCollection></LinearGradientBrush.GradientStops></LinearGradientBrush><LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient3897" MappingMode="RelativeToBoundingBox" StartPoint="0,0" EndPoint="1,1"><LinearGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#00505050" Offset="0"/><GradientStop Color="#00505050" Offset="0.81944442"/><GradientStop Color="#9F505050" Offset="1"/></GradientStopCollection></LinearGradientBrush.GradientStops></LinearGradientBrush><RadialGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="radialGradient3903" MappingMode="Absolute" Center="174,159.5" GradientOrigin="174,159.5" RadiusX="111.4995" RadiusY="111.4995"><RadialGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#00505050" Offset="0"/><GradientStop Color="#00505050" Offset="0.81944442"/><GradientStop Color="#9F505050" Offset="1"/></GradientStopCollection></RadialGradientBrush.GradientStops></RadialGradientBrush><RadialGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="radialGradient4275" MappingMode="Absolute" Center="175,312" GradientOrigin="175,312" RadiusX="5" RadiusY="5"><RadialGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#FF646464" Offset="0"/><GradientStop Color="#FF141414" Offset="1"/></GradientStopCollection></RadialGradientBrush.GradientStops></RadialGradientBrush></Canvas.Resources><Canvas Name="layer5"><Canvas><Canvas.RenderTransform><TransformGroup><!--g--><TranslateTransform X="-152.61324" Y="1.0887292"/></TransformGroup></Canvas.RenderTransform> | ||
<Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="rect3933" Fill="#FF141414" Stroke="#FF141414" StrokeThickness="0" StrokeMiterLimit="4" Data="m 152.78125 33.0625 0.007 31.531021 c 0.007 1.874771 -0.28384 3.738953 0.99275 5.312729 0.89122 1.1621 3.03725 1.375415 3.13415 1.327015 l 4.67835 0.18861 6.6875 -0.125 0.49241 0.02321 c 0 0 1.52132 -0.139099 1.93593 0.490847 0.7806 0.794564 0.76988 1.481694 0.76988 1.481694 l 0.0674 1.769876 -0.14062 14.84375 5.1875 0 -0.006 -16.563072 c 0.0386 -1.984487 -0.0805 -3.796754 -1.17057 -5.186928 -0.89122 -1.162104 -3.12565 -1.552231 -5.13102 -1.614179 l -8.44286 -0.276446 -1.28504 -0.0027 c 0 0 -1.03518 0.148251 -1.91383 -0.459597 -0.91318 -0.595687 -0.80113 -1.579235 -0.80113 -1.579235 l 0.0156 -1.599112 -0.0156 -29.5625 z"/></Canvas></Canvas> | ||
<Rectangle xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Canvas.Left="24" Canvas.Top="90" Width="148" Height="5" Name="rect3876" Fill="#FFFFD50B" Stroke="#FF141414" StrokeThickness="1" StrokeMiterLimit="4"> | ||
<!--rect--> | ||
<Rectangle.RenderTransform> | ||
<MatrixTransform Matrix="0,1,-1,0,0,0" /> | ||
</Rectangle.RenderTransform> | ||
</Rectangle> | ||
</Canvas> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Name="svg2" Width="44" Height="26"><Canvas.Resources><LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient4269" MappingMode="RelativeToBoundingBox" StartPoint="0,0" EndPoint="1,1"><LinearGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#FF646464" Offset="0"/><GradientStop Color="#FF141414" Offset="1"/></GradientStopCollection></LinearGradientBrush.GradientStops></LinearGradientBrush><LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient3897" MappingMode="RelativeToBoundingBox" StartPoint="0,0" EndPoint="1,1"><LinearGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#00505050" Offset="0"/><GradientStop Color="#00505050" Offset="0.81944442"/><GradientStop Color="#9F505050" Offset="1"/></GradientStopCollection></LinearGradientBrush.GradientStops></LinearGradientBrush><RadialGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="radialGradient3903" MappingMode="Absolute" Center="174,159.5" GradientOrigin="174,159.5" RadiusX="111.4995" RadiusY="111.4995"><RadialGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#00505050" Offset="0"/><GradientStop Color="#00505050" Offset="0.81944442"/><GradientStop Color="#9F505050" Offset="1"/></GradientStopCollection></RadialGradientBrush.GradientStops></RadialGradientBrush><RadialGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="radialGradient4275" MappingMode="Absolute" Center="175,312" GradientOrigin="175,312" RadiusX="5" RadiusY="5"><RadialGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#FF646464" Offset="0"/><GradientStop Color="#FF141414" Offset="1"/></GradientStopCollection></RadialGradientBrush.GradientStops></RadialGradientBrush></Canvas.Resources><Canvas Name="layer10"><Canvas><Canvas.RenderTransform><TransformGroup><!--g--><TranslateTransform X="-151" Y="-38.5"/></TransformGroup></Canvas.RenderTransform><Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="rect4183" Fill="#FFFF490F" Stroke="#FF000000" StrokeThickness="1" StrokeMiterLimit="4" Data="m 151.5 39 43 9 0 15.5 -43 -9 z"/></Canvas></Canvas></Canvas> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Name="svg2" Width="21" Height="43"><Canvas.Resources><LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient4269" MappingMode="RelativeToBoundingBox" StartPoint="0,0" EndPoint="1,1"><LinearGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#FF646464" Offset="0"/><GradientStop Color="#FF141414" Offset="1"/></GradientStopCollection></LinearGradientBrush.GradientStops></LinearGradientBrush><LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient3897" MappingMode="RelativeToBoundingBox" StartPoint="0,0" EndPoint="1,1"><LinearGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#00505050" Offset="0"/><GradientStop Color="#00505050" Offset="0.81944442"/><GradientStop Color="#9F505050" Offset="1"/></GradientStopCollection></LinearGradientBrush.GradientStops></LinearGradientBrush><RadialGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="radialGradient3903" MappingMode="Absolute" Center="174,159.5" GradientOrigin="174,159.5" RadiusX="111.4995" RadiusY="111.4995"><RadialGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#00505050" Offset="0"/><GradientStop Color="#00505050" Offset="0.81944442"/><GradientStop Color="#9F505050" Offset="1"/></GradientStopCollection></RadialGradientBrush.GradientStops></RadialGradientBrush><RadialGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="radialGradient4275" MappingMode="Absolute" Center="175,312" GradientOrigin="175,312" RadiusX="5" RadiusY="5"><RadialGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="#FF646464" Offset="0"/><GradientStop Color="#FF141414" Offset="1"/></GradientStopCollection></RadialGradientBrush.GradientStops></RadialGradientBrush></Canvas.Resources><Canvas Name="layer9"><Canvas><Canvas.RenderTransform><TransformGroup><!--g--><TranslateTransform X="-42.5" Y="-142"/></TransformGroup></Canvas.RenderTransform><Rectangle xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Canvas.Left="43" Canvas.Top="143" Width="20" Height="42" Name="rect4165" Fill="#FFFF490F" Stroke="#FF000000" StrokeThickness="1" StrokeMiterLimit="4"/></Canvas></Canvas></Canvas> |
47 changes: 47 additions & 0 deletions
47
Aircraft FA-18C Plugin/Gauges/ADI/Alt/adi_gs_indicator.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Name="svg2" Width="14" Height="12"> | ||
<Canvas.Resources> | ||
<LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient4269" MappingMode="RelativeToBoundingBox" StartPoint="0,0" EndPoint="1,1"> | ||
<LinearGradientBrush.GradientStops> | ||
<GradientStopCollection> | ||
<GradientStop Color="#FF646464" Offset="0"/> | ||
<GradientStop Color="#FF141414" Offset="1"/> | ||
</GradientStopCollection> | ||
</LinearGradientBrush.GradientStops> | ||
</LinearGradientBrush> | ||
<LinearGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="linearGradient3897" MappingMode="RelativeToBoundingBox" StartPoint="0,0" EndPoint="1,1"> | ||
<LinearGradientBrush.GradientStops> | ||
<GradientStopCollection> | ||
<GradientStop Color="#00505050" Offset="0"/> | ||
<GradientStop Color="#00505050" Offset="0.81944442"/> | ||
<GradientStop Color="#9F505050" Offset="1"/> | ||
</GradientStopCollection> | ||
</LinearGradientBrush.GradientStops> | ||
</LinearGradientBrush> | ||
<RadialGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="radialGradient3903" MappingMode="Absolute" Center="174,159.5" GradientOrigin="174,159.5" RadiusX="111.4995" RadiusY="111.4995"> | ||
<RadialGradientBrush.GradientStops> | ||
<GradientStopCollection> | ||
<GradientStop Color="#00505050" Offset="0"/> | ||
<GradientStop Color="#00505050" Offset="0.81944442"/> | ||
<GradientStop Color="#9F505050" Offset="1"/> | ||
</GradientStopCollection> | ||
</RadialGradientBrush.GradientStops> | ||
</RadialGradientBrush> | ||
<RadialGradientBrush xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="radialGradient4275" MappingMode="Absolute" Center="175,312" GradientOrigin="175,312" RadiusX="5" RadiusY="5"> | ||
<RadialGradientBrush.GradientStops> | ||
<GradientStopCollection> | ||
<GradientStop Color="#FF646464" Offset="0"/> | ||
<GradientStop Color="#FF141414" Offset="1"/> | ||
</GradientStopCollection> | ||
</RadialGradientBrush.GradientStops> | ||
</RadialGradientBrush> | ||
</Canvas.Resources> | ||
<Canvas Name="g3997"> | ||
<Canvas> | ||
<Canvas.RenderTransform> | ||
<TransformGroup> | ||
<!--g--> | ||
<TranslateTransform X="-39.937742" Y="-156.51788"/> | ||
</TransformGroup> | ||
</Canvas.RenderTransform> | ||
<Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="path4001" Fill="#ff00ff00" Stroke="#FF141414" StrokeThickness="1" StrokeMiterLimit="4" Data="m 64.937742 174.5 12.093387 -6.98212 0 13.96424 z"><!--path--><Path.RenderTransform><MatrixTransform Matrix="1.0870816,0,0,0.82477469,-30.181439,18.826816"/></Path.RenderTransform></Path></Canvas></Canvas></Canvas> |
Oops, something went wrong.