* Curtis L. Olson -- Wednesday 11 May 2005 18:34:
> I think this is a very minor issue

Agreed. I wouldn't have asked if I had thought that this even is a
controversial topic. I though it's clear which of both are preferred
by the majority of *users*. Developers don't have that 'problem', anyway.
Editing $FG_ROOT/preferences.xml is one way. I only wanted to get rid of
my local changes there out of egotism. (It makes committing other things
easier, if you don't have to back out local modifications. :-) But now
I've created my $FG_ROOT/Nasal/local.nas which does this for me (and
doesn't get in the way when committing. Some nasal knowledge is all
you need.)



> So I'll add my yes vote to the view order swapping idea.

Hmmm ... 

m.





PS: and that's local.nas. Does anyone find the triple-ternary frightening?


stepView = func(step) {
        curr = getprop("/sim/current-view/view-number");
        views = props.globals.getNode("/sim").getChildren("view");
        if (step == 1) {
                curr = curr == 0 ? 2 : curr == 2 ? 1 : curr == 1 ? 3 : curr + 1;
        } elsif (step == -1) {
                curr = curr == 3 ? 1 : curr == 1 ? 2 : curr == 2 ? 0 : curr - 1;
        }
        if (curr < 0) {
                curr = size(views) - 1;
        } elsif (curr >= size(views)) {
                curr = 0;
        }
        setprop("/sim/current-view/view-number", curr);
}

settimer(func { view.stepView = stepView }, 0);


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

Reply via email to