- Property /sim/gui/dialogs/map-canvas/draw-AA = '1' (string), which, although it is not a bool like for the other layers, toggles the state of the corresponding Map (Canvas) checkbox just fine.
- Correct me if I'm wrong, but by unchecking all other layers and toggling the AA layer checkbox (to no avail), z-indexing issues can be ruled out?
- Adding the AA layer to the ones already in the demo code gives expected results - everything overlaid like it should be.
- Printlining the file loading section (near the end of MapStructure.nas) confirms that both AA.lcontroller and AA.symbol are being loaded.
- Code: Select all
var new = func(layer)
{
print("!!! AA ctor !!!");
...
Toggling the checkbox in Map (Canvas) does not execute it. For some reason, the checkbox:
- Code: Select all
<checkbox>
<label>Anti-aircraft</label>
<pref-width>100</pref-width>
<property>/sim/gui/dialogs/map-canvas/draw-AA</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>property-toggle</command>
</binding>
</checkbox>
... in map-canvas.xml seems to remain unregistered as the actuator of the AA layer. Am I missing a step to that effect somewhere?