Board index FlightGear Development Documentation

menu option to open docs

Discussion of the FlightGear documentation, how it can be improved and coordination of people working on it.

menu option to open docs

Postby gkick » Sat Apr 08, 2017 5:47 pm

what would be the command to open a pdf from the help menu, there is the open_browser command to call index.html and the index hyperlink then opens a doc. Is it possible to open a doc directly, be it pdf, rtf or jpg etc..
Thanks
gkick
 
Posts: 89
Joined: Sun Jan 01, 2017 11:04 pm

pdf

Postby gkick » Wed Apr 12, 2017 1:49 pm

Hi all,

How does one open a pdf from the menu structure rather then going open browser?

Thks
GK
gkick
 
Posts: 89
Joined: Sun Jan 01, 2017 11:04 pm

Re: pdf

Postby Johan G » Mon Apr 17, 2017 12:57 pm

As in opening a pdf file from inside FlightGear? Then the answer is probably "unable", to use pilot jargon. :P
I wonder if FlightGear being able to open arbitrary files would be a good thing or not, though I can see its usefulness in this particular case.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5407
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: menu option to open docs

Postby gkick » Sat Jul 08, 2017 12:18 am

In fact one can do so, took me a while to figure out though

<?xml version="1.0"?>

<PropertyList>

<default>

<menu n="10">
<label>Navigation</label>
<enabled type="bool">true</enabled>
<item>
<label>The Cockpit</label>
<binding>
<command>open-browser</command>
<path>aircraft/fgnavigator1/Docs/FGN_Cockpit.pdf</path>
</binding>
gkick
 
Posts: 89
Joined: Sun Jan 01, 2017 11:04 pm

Re: menu option to open docs

Postby Octal450 » Sat Jul 08, 2017 2:24 am

Nice work!

MAKE SURE you use FGNavigator1 exactly as shown, or Linux and macOS users will not see it

Kind Regards,
Josh
Octal450

FGFS Aircraft Developer
Lead Developer at Immersive Design Group (Join our Discord!)
Download High Quality Aircraft from Octal450 Hangar
Dream no small dream; it lacks magic. Dream large. Then make the dream real. - Donald Douglas
User avatar
Octal450
 
Posts: 4091
Joined: Tue Oct 06, 2015 12:51 pm
Location: A far corner of my room
Callsign: WTF450/Octal
Version: 2018.3.2
OS: Windows 10 x64


Return to Documentation

Who is online

Users browsing this forum: Google [Bot] and 1 guest