Texture selector: Remove the audio effect when closing the dialog

This commit is contained in:
Sidi Liang 2021-08-19 18:33:53 +08:00
parent 8d0d86e917
commit 09ee3d9292
No known key found for this signature in database
GPG Key ID: 9785F5EECFFA5311
1 changed files with 6 additions and 1 deletions

View File

@ -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