Howto:GUI Workarounds

From FlightGear wiki
Jump to navigation Jump to search
This article is a stub. You can help the wiki by expanding it.

Disabling native menubars

to use the built-in PUI based menubar instead of the native MacOS menubar, try the following additional startup argument:

--prop:/sim/menubar/native=0

This should normally override any native menubar implementations and fall back to the built-in PUI[1]

Reinstating the Canvas Aircraft Center

This should be also trivial to do by looking at the original patch/diff that disabled the original Canvas based aircraft center: https://sourceforge.net/p/flightgear/fgdata/ci/654a343bbb7eb51b387060515e3415e152d12c2a/ If this is something that people with non-Qt enabled builds want to try, I would suggest to edit $FG_ROOT/gui/menubar.xml according to the following (untested):[2]

    <item>
                            <name>aircraft-center</name>
                            <binding>
                                    <command>nasal</command>
                                    <script><![CDATA[
                                    # https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/src/Main/fg_scene_commands.cxx#l360
                                    var haveQtLauncher = fgcommand("open-launcher");
                                    if (!haveQtLauncher) {
                                            # https://sourceforge.net/p/flightgear/fgdata/ci/654a343bbb7eb51b387060515e3415e152d12c2a/
                                            canvas.loadDialog("AircraftCenter");
                                    }
                                    ]]></script>
                            </binding>
                    </item>

Related

References