Nasal/annunciators.nas
raw| 1 | # annunciators.nas |
| 2 | # Created: 10/2024 |
| 3 | |
| 4 | var system = nil; |
| 5 | # alias for the property rules enabled prop |
| 6 | var rules_enabledN = props.getNode("/instrumentation/annunciators/property-rules-enabled", 1); |
| 7 | |
| 8 | # find the annunciators property-rules |
| 9 | foreach (var sys; props.getNode("/sim/systems", 1).getChildren("property-rule")) { |
| 10 | if (sys.getValue("name") == "annunciators") { |
| 11 | system = sys; |
| 12 | rules_enabledN.alias(sys.getNode("serviceable", 1)); |
| 13 | } |
| 14 | } |