• 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.

XML turning knobs?

Messages
18
Country
puertorico
Hey guys

Im new with this thing on creating panels for the FS2004, Recently I started with a 737NG panel... its done specially for the new TDS 737NG series. also is one of my favorite planes. Anyways I recently started wit this, I got some gauges from other makers but I wanna create some Knobs for the Autopilots that can actually turn just like the TUngv2 panel that had some animation....if someone could actually turn me to the right direction it will be awesome.
fsscr035.jpg
 
If this is the VC, you cannot create new 3D knobs without the source code for the VC and knowledge of the CAD program it was created in.

If for the 2D panel (or you want 2D knobs in the VC), then perhaps we can help.

BTW, your image does not load for me.
 
Here is my code for an old style AP heading knob that turns:

Code:
<!-- ======================= Heading Knob ========================== -->
  <Element>
    <Position X="225" Y="40"/>
    <Image Name="AP_BANK_KNOB_1.bmp">
      <Axis X="32" Y="24"/>
    </Image>
    <Rotate>
      <Value>(L:Bank Knob, number) 3 * dgrd</Value>
      <Delay DegreesPerSecond="180"/>
    </Rotate>
  </Element>

The BMP file is the knob image.

(L:Bank Knob, Number) is set in the Mouse section:

Code:
 <!-- ************************* Heading Knob *********************** -->

    <Area Left="195" Top="15" Width="64" Height="64">
            <Tooltip>Mag Heading %((A:Plane Heading Degrees Magnetic, degree))%!3d!&#176;</Tooltip>
    </Area>
    <Area Left="195" Top="15" Width="20" Height="64">
        <Cursor Type="DownArrow"/>
        <Click Repeat="Yes">
          (L:Bank Knob, number) -30 &gt; if{ (L:Bank Knob, number) 3 - (&gt;L:Bank Knob, number) }
        </Click>
    </Area>
    <Area Left="220" Top="15" Width="14" Height="64">
        <Cursor Type="Hand"/>
        <Click Repeat="No">
          0 (&gt;L:Bank Knob, number) (A:Plane Heading Degrees Magnetic, degree) (&gt;K:HEADING_BUG_SET)
        </Click>
    </Area>
    <Area Left="234" Top="15" Width="20" Height="64">
        <Cursor Type="UpArrow"/>
        <Click Repeat="Yes">
          (L:Bank Knob, number) 30 &lt; if{ (L:Bank Knob, number) 3 + (&gt;L:Bank Knob, number) }
        </Click>
    </Area>

Click the left edge to turn the plane left, click the right edge to turn the plane right, and click the middle to center the knob. There is more code elsewhere for the left and right turns.

Hope this helps,
 
I also wanna try to make the AP annunciator like the PS 737ng panel.... but i don't understand it, I try testing that one on my panel it's seem i must link it with something else i don't wanan do that i wanna do it as an stand alone i manage to make as a light indicator but i wanna reset it by pressing it
 
that xml code you posted, I could use it for the barometer knob, i wanna be able to increase it and decrease it by hand as well as click on the middle and set the std 29.92
 
Back
Top