Howto:Creating a Canvas GUI Widget: Difference between revisions

Jump to navigation Jump to search
Line 221: Line 221:


Next, we need to wrap this in a Widget.nas child class:
Next, we need to wrap this in a Widget.nas child class:
<syntaxhighlight lang="diff">
</syntaxhighlight>


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