]> git.mxchange.org Git - flightgear.git/commit
- add fgcommand to reload menubar; that's necessary to make changes visible
authormfranz <mfranz>
Sun, 3 Jul 2005 15:06:29 +0000 (15:06 +0000)
committermfranz <mfranz>
Sun, 3 Jul 2005 15:06:29 +0000 (15:06 +0000)
commit7f9b0fbb73ddb6e6cb4f34cbcf36c224c144829a
tree0179709c799191cc9cd22b7345c9c672642d3fef
parent11138e373920e3ce3f94ce6241c6d228be982afd
- add fgcommand to reload menubar; that's necessary to make changes visible
  at runtime. Example:

  <key n="99">
      <name>c</name>
      <desc>Update completely useless menu entry.</desc>
      <binding>
          <command>nasal</command>
          <script>
              time = getprop("/sim/time/elapsed-sec");
              setprop("/sim/menubar/default/menu[9]/label", time);
          </script>
      </binding>
      <binding>
          <command>menu-reload</command>
      </binding>
  </key>
src/Main/fg_commands.cxx