20,741
edits
(→Map) |
(→Map) |
||
Line 204: | Line 204: | ||
Next, we need to wrap this in a Widget.nas child class: | Next, we need to wrap this in a Widget.nas child class: | ||
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: | |||
* setController() | |||
* setRange() | |||
* setLayers() | |||
* ... | |||
To approximate the appearance of the legacy [[Map]] dialog, we will be using a hbox layout with two columns, with the left column containing a vbox layout with checkboxes added for each layer to control visibility of the layer, and the right hbox cell containing the actual MapStructure map: | To approximate the appearance of the legacy [[Map]] dialog, we will be using a hbox layout with two columns, with the left column containing a vbox layout with checkboxes added for each layer to control visibility of the layer, and the right hbox cell containing the actual MapStructure map: |