20,741
edits
m (→Event types) |
m (→Example Code) |
||
Line 93: | Line 93: | ||
= Example Code = | = Example Code = | ||
For the latest examples, please refer to [https://gitorious.org/~tomprogs/fg/toms-fgdata/commits/canvas-gui-demo Tom's canvas-gui-demo branch on gitorious]. This is also where you can find the following code in $FG_ROOT/Nasal/canvas/gui.nas: | For the latest examples, please refer to [https://gitorious.org/~tomprogs/fg/toms-fgdata/commits/canvas-gui-demo Tom's canvas-gui-demo branch on gitorious]. This is also where you can find the following code in $FG_ROOT/Nasal/canvas/gui.nas (note that this example makes use of advanced Nasal concepts, such as anonymous functions and lots of embedded/inline code): | ||
<syntaxhighlight lang="php"># Canvas GUI demo | <syntaxhighlight lang="php"># Canvas GUI demo | ||
# | # |