20,741
edits
 (→Files)  | 
				m (pm2wiki: https://forum.flightgear.org/viewtopic.php?f=18&t=36685)  | 
				||
| Line 1: | Line 1: | ||
{{WIP}}  | {{WIP}}  | ||
This article is a summary of the steps/pointers needed to successfully parse and re-interpret a subset of [[PropertyList XML File]] using Nasal scripting and the Canvas system:   | |||
==   | == Background and Motivation ==  | ||
See:  | |||
* [[PUI]]  | |||
* [[Unifying the 2D rendering backend via canvas]]  | |||
==   | == XML processing ==  | ||
==   | XML processing can be done via [[Nasal library/io|io.nas]] - however, strictly speaking, it's not needed because the [[Nasal library/props]] module can transparently load an XML file from the base package and return it as a hash, so that you don't have to do any XML handling at all.  | ||
== Creating a Canvas ==  | |||
It's best to look at [[Canvas Snippets]] and see how easy it is to create a new Canvas from scratch.   | |||
== Creating Popups ==  | |||
See [[Tooltips]]  | |||
== Using Canvas Layouts ==  | |||
For now, please look at [[Canvas Layout System]]  | |||
== Event Handling ==  | |||
For event handling purposes, there's [[Canvas Event Handling]]  | |||
== Existing Widgets ==  | |||
See [[Canvas Widget Matrix]]  | |||
== Creating new Widgets ==  | |||
See [[Howto:Creating a Canvas GUI Widget]]  | |||
== Related ==  | == Related ==  | ||
{{Appendix}}  | {{Appendix}}  | ||