• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX Really sophisticated code, and simplicity

Messages
10,163
Country
us-arizona
Hey all,

I have been meaning to make code that would allow 2 fuel selectors to work off of one single engine airfile. It would basically juggle two animations (L:vars) via tank selection. Two selectors with on/off, for managing left and right tanks. The idea was to make both selectors have input to selecting all tank selections, but each selector would have its own animation.

I have put it off so long, and finally today it had to be done. I have been starting it many times. The sophisticated code for tank selectors really upsets me.

Then.... it hit me. I couldnt believe it. I could do all of this... ALL of it with just animation. I didnt need to create gauge code. I could just use the same MouseRect and Animation attachments, but animate the knobs differently, lololol..... It worked!

They both use the stock LBRO animation.

Now, when both fuel selectors are on, they are both in on positions. Click it again, Left is on, Right is off. Click again and Right is on, Left is off. Again and both are off. Its beautiful.... I wish I had realized this with the Kodiak. I needed exactly this way back then.


The beauty of simplicity.
 
Ed Heinemann's "K.I.S.S." ("Keep It Simple, Stupid!") has never failed me so far.
Simple code is way easier to debug and in 9 out of 10 cases, the end user doesn't notice the difference.
 
Back
Top