Aircraft dialogs: Difference between revisions

m
Line 41: Line 41:


== SVG based ==
== SVG based ==
People wanting to make an instrument UI, are probably going to want to use an SVG file anyway, so might as well use Canvas and Nasal.<ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/36196524/
  |title  =  <nowiki> Re: [Flightgear-devel] QtQuick UI - current status + plans </nowiki>
  |author =  <nowiki> Stuart Buchanan </nowiki>
  |date  =  Jan 19th, 2018
  |added  =  Jan 19th, 2018
  |script_version = 0.36
  }}</ref>
Because we need to support non-QQ2 builds, aircraft developers are going to have to use some other common denominator to build their aircraft-specific settings UIs so that users can configure the aircraft. An aircraft-specific page on Phi might be an option, but a Canvas GUI avoids having to run the httpd, and integrates it in-sim. <ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/36196524/
  |title  =  <nowiki> Re: [Flightgear-devel] QtQuick UI - current status + plans </nowiki>
  |author =  <nowiki> Stuart Buchanan </nowiki>
  |date  =  Jan 19th, 2018
  |added  =  Jan 19th, 2018
  |script_version = 0.36
  }}</ref>
With [[Phi]], Torsten succeeded with his first partial implementation of a EFIS PFD rendered in a web browser using nothing but existing web standards and a running FlightGear instance having the internal web server enabled.  
With [[Phi]], Torsten succeeded with his first partial implementation of a EFIS PFD rendered in a web browser using nothing but existing web standards and a running FlightGear instance having the internal web server enabled.  


Line 53: Line 72:
   }}</ref>
   }}</ref>


 
People can use Inkscape to draw the svgs. The elements to animate are selected by their id attribute, so you have to set a reasonabl name for those. To get proper scaling of the svg, you need to set the viewBox, width, height and preserveAspectRation of the <svg> element.<ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/32854893/
  |title  =  <nowiki> Re: [Flightgear-devel] Goodbye fgpanel - hello fgpanel 2.0 </nowiki>
  |author =  <nowiki> Torsten Dreyer </nowiki>
  |date  =  Sep 22nd, 2014
  |added  =  Sep 22nd, 2014
  |script_version = 0.36
  }}</ref>


== Good to know ==
== Good to know ==