]> git.mxchange.org Git - flightgear.git/commit
Patch from Erik Hofman:
authordavid <david>
Sun, 2 Mar 2003 14:19:24 +0000 (14:19 +0000)
committerdavid <david>
Sun, 2 Mar 2003 14:19:24 +0000 (14:19 +0000)
commit45f3eb7f99b4eced8c95887c7a6fe9e3b2737bca
treef38d481e5fabbf6298d45b914174371b0422cdae
parentc8b8722a14d29e2b4153c39ad4cef0c44a562afd
Patch from Erik Hofman:

I've updated the instrument modulator code to allow tricks like the one
described by Andy. It is now possible to define <min>, <max> and
<modulator> in one layer and if <min> and/or <max> ore within the range
of the <modulator> tag, their value will be honoured.

So, if you define

  <layer>
   <min>0</min>
   <max>50</max>
   <modulator>100</modulator>
  </layer>

The value will stay at 50, until the modulator forces it back to 0.
src/Cockpit/panel.cxx
src/Cockpit/panel.hxx
src/Cockpit/panel_io.cxx