]> git.mxchange.org Git - flightgear.git/commit
add support for <nasal> blocks <open> and <close> in XML dialogs:
authormfranz <mfranz>
Wed, 8 Mar 2006 10:44:46 +0000 (10:44 +0000)
committermfranz <mfranz>
Wed, 8 Mar 2006 10:44:46 +0000 (10:44 +0000)
commit2de4fd5d8ee6a44b83479253625c2ccf767bb577
tree3554a5aae3aa60d216419490b93d81d3509ff347
parent77de0c8e09f659a4392ce1193e1507cedb496b02
add support for <nasal> blocks <open> and <close> in XML dialogs:

  <nasal>
      <open>print("I'm called on dialog open")</open>
      <close>print("I'm called on dialog close")</close>
  </nasal>

All Nasal runs in a dialog namespace, so that variables and functions
defined in the <open> block can be used in <binding>s, etc. This is
especially useful for <radio> button handling. See "location-in-air.xml".
src/GUI/dialog.cxx
src/GUI/dialog.hxx