* Drew -- Wednesday 20 April 2005 22:32:
> I'm not very familiar with this code, though, so I don't know what a Nazel
> context is, yet.

You can add this to the black.nas file, after which you can switch the blackout
state via property /sim/rendering/blackout. No need to dive into Nasal then.
(Although you should learn about it anyway.)



state = 0;
switch = props.globals.getNode("/sim/rendering/blackout", 1);
switch.setValue(state);

loop = func {
        s = switch.getValue();
        if (s and !state or !s and state) {
                beauty();
        }
        state = s;
        settimer(loop, 0.2);
}

settimer(loop, 0);


m.

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to