Howto:Creating a Canvas GUI Widget: Difference between revisions

Jump to navigation Jump to search
Line 252: Line 252:
myLayout.addItem(map);
myLayout.addItem(map);
</syntaxhighlight>
</syntaxhighlight>
 
[[File:MapStructure-Widget.png|thumb|MapStructure map wrapped in a Canvas widget]]


Everything that we'd like to be able to customize at the widget level, needs to be exposed via a corresponding method added to the subclass inheriting from Widget.nas, for example:
Everything that we'd like to be able to customize at the widget level, needs to be exposed via a corresponding method added to the subclass inheriting from Widget.nas, for example:

Navigation menu