Changes

Jump to: navigation, search

Howto:Canvas dialog examples

92 bytes added, 09:54, 31 October 2017
Namespace and Menu entry
=== Namespace and Menu entry ===
The dialog is set-up like a normal nasal namespace in the -set file:
<syntaxhighlight lang="xml"><nasal>
<Dialogs>
<file>Aircraft/extra500/Dialogs/failuredialog.nas</file>
</Dialogs>
</nasal></syntaxhighlight>
And called (opened) though a menu entry in /Dialogs/extra500-menu.xml just like any other classical menu entry.
<syntaxhighlight lang="xml"><item>
<name>Failure-dialog</name>
<label>Failure Dialog</label>
]]></script>
</binding>
</item></syntaxhighlight>
This means there needs to be a loaded Class called "Failuredialog" in the namespace "Dialogs" with an internal function called "openDialog".
19,006
edits

Navigation menu