Canvas widgets: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 2: Line 2:


As of 07/2012, there's a general consensus to replace the current FlightGear GUI (based on PLIB/PUI) by using the new Canvas system.
As of 07/2012, there's a general consensus to replace the current FlightGear GUI (based on PLIB/PUI) by using the new Canvas system.
However, before we can work on adding new widgets to FlightGear, we need to provide wrappers for the existing hardcoded PUI widgets, see [[Canvas GUI]].


Canvas widgets are dynamically created GUI widgets that use the [[Canvas]] subsystem to create custom, owner-drawn, GUI widgets in a scripted fashion using [[Nasal]]. The textures are conventional canvas textures, however they are rendered by the GUI system, so that scripted event handlers can be implemented which respond to GUI events, such as keyboard/mouse input or other events (resize, update, redraw etc).  
Canvas widgets are dynamically created GUI widgets that use the [[Canvas]] subsystem to create custom, owner-drawn, GUI widgets in a scripted fashion using [[Nasal]]. The textures are conventional canvas textures, however they are rendered by the GUI system, so that scripted event handlers can be implemented which respond to GUI events, such as keyboard/mouse input or other events (resize, update, redraw etc).  

Navigation menu