From 09ee3d92920f50b9ebda579280121bf4d8774367 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Thu, 19 Aug 2021 18:33:53 +0800 Subject: [PATCH] Texture selector: Remove the audio effect when closing the dialog --- Nasal/texture-selector.nas | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Nasal/texture-selector.nas b/Nasal/texture-selector.nas index 70c30f1..680e99a 100644 --- a/Nasal/texture-selector.nas +++ b/Nasal/texture-selector.nas @@ -27,6 +27,11 @@ #//texturePropertyBase: The texture property base in the texture xml files. Only used if fileType is set to ".xml". This is added to support most livery files in FG. Defaults to "sim/model/livery/". #//textureProp: The texture property in the texture xml files. Only used if fileType is set to ".xml". This is added to support most livery files in FG. Defaults to "livery". #//textureNameProp: The texture name property in the texture xml files. Only used if fileType is set to ".xml". This is added to support most livery files in FG. Defaults to "name". +#//textureDataNode: +#//enableMultiplayer: +#//multiplayerProperty: +#//texturePrePath:must end with / +#//defaultValue: #//WIP var TextureSelector = { @@ -198,7 +203,7 @@ var TextureSelectorDialog = { m.closeScript = m.nasal.getNode("close", 1); m.openScript.setValue('print("' ~ m.title ~ ' dialog opened"); props.getNode(cmdarg().getPath()).getNode("opened"), 1).setValue(1);'); - m.closeScript.setValue('followme.playAudio("repair.wav"); + #//m.closeScript.setValue('followme.playAudio("repair.wav"); props.getNode(cmdarg().getPath()).getNode("opened", 1).setValue(0);'); m.reload(); #Reload when the GUI is reloaded