Howto:Processing legacy PUI dialogs using Canvas
Jump to navigation
Jump to search
The FlightGear forum has a subforum related to: Canvas |
This article is a stub. You can help the wiki by expanding it. |
Objective
This article is intended to demonstrate how existing PUI dialogs can be easily processed using Nasal/Canvas and turned into Canvas properties.
Approach
We will be registering a custom fgcommand using the addcommand() and patch menubar.xml to change dialog-show
fgcommands into canvas-dialog-show
for each dialog whose widgets are supported/ported.
For starters, we will focus on simple dialogs, such as exit.xml - however, the framework will be sufficiently generic to also support other widgets/dialogs (as per README.gui).