Howto:Creating a Canvas GUI Widget: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Sorry, accidental)
No edit summary
Line 52: Line 52:


The key ones really being the last 4 in that list (radio, slider, dial and combo/dropdown)
The key ones really being the last 4 in that list (radio, slider, dial and combo/dropdown)
The {{PUI widget|canvas}} widget is particularly easy to support, because it's just an embedded canvas that can be treated as a Canvas Image.


Most other widgets currently missing can be implemented by using a combination of these widgets, e.g. a ScrollArea with buttons can be used to implement any type of list (airportlist, waypointlist, property-browser etc), just by adding event handling callbacks to each entry/button that invoke the corresponding bindings:
Most other widgets currently missing can be implemented by using a combination of these widgets, e.g. a ScrollArea with buttons can be used to implement any type of list (airportlist, waypointlist, property-browser etc), just by adding event handling callbacks to each entry/button that invoke the corresponding bindings:

Navigation menu