Howto:Creating a Canvas GUI dialog file: Difference between revisions

Jump to navigation Jump to search
m
confirmed, the Note template is interacting with the sidebar ...
m (cat: Canvas)
m (confirmed, the Note template is interacting with the sidebar ...)
Line 29: Line 29:


== Creating the actual dialog file ==
== Creating the actual dialog file ==
{{Note|These dialog files can be edited at run-time and simply closed/re-opened, because the Canvas system will reload them from disk whenever the menu binding is triggered. So this is very convenient for quickly developing and testing your dialogs. For testing purposes, you can also paste the snippet into your [[Nasal Console]] and directly execute it.}}
<!--
{{Note|These dialog files can be edited at run-time and simply closed/re-opened, because the Canvas system will reload them from disk whenever the menu binding is triggered. So this is very convenient for quickly developing and testing your dialogs. For testing purposes, you can also paste the snippet into your [[Nasal Console]] and directly execute it.}}-->
Next, open/create $FG_ROOT/Nasal/canvas/gui/dialogs/CanvasDemo.nas and add some boilerplate code:
Next, open/create $FG_ROOT/Nasal/canvas/gui/dialogs/CanvasDemo.nas and add some boilerplate code:
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">

Navigation menu