From 2ae58cfe62dfce7eb06ea706d6927856e9a66165 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Fri, 23 Aug 2024 01:40:36 +0800 Subject: [PATCH] Fix bugs in GUI --- Nasal/node_setup.nas | 3 + Sounds/followme-sound.xml | 16 +++ gui/dialogs/vehicle-dialog.xml | 246 ++++++++++++++++++++++----------- 3 files changed, 186 insertions(+), 79 deletions(-) diff --git a/Nasal/node_setup.nas b/Nasal/node_setup.nas index fe450dc..9b98fe2 100644 --- a/Nasal/node_setup.nas +++ b/Nasal/node_setup.nas @@ -89,6 +89,7 @@ vInfo.systems.speedometer = vInfo.systems.getNode("speedometer", 1); vInfo.systems.speedometer.type = vInfo.systems.speedometer.getNode("type", 1); vInfo.systems.batteryGauge = vInfo.systems.getNode("battery-gauge", 1); vInfo.systems.batteryGauge.type = vInfo.systems.batteryGauge.getNode("type", 1); +vInfo.systems.driftSoundEnabled = vInfo.systems.getNode("drifting-sound", 1); #//Electrical vInfo.systems.electrical = props.getNode("/systems/electrical/", 1); @@ -127,6 +128,8 @@ vInfo.systems.safety.isAebOn.setValue("0"); vInfo.systems.isAutoholdEnabled.setValue("0"); vInfo.systems.isAutoholdWorking.setValue("0"); +vInfo.systems.driftSoundEnabled.setValue(0); + #//Doors vInfo.controls.doors.FL.setValue(0); vInfo.controls.doors.FR.setValue(0); diff --git a/Sounds/followme-sound.xml b/Sounds/followme-sound.xml index a16712e..43d9aa4 100644 --- a/Sounds/followme-sound.xml +++ b/Sounds/followme-sound.xml @@ -112,6 +112,10 @@ /velocities/groundspeed-kt 5 + + systems/drifting-sound + 1 + @@ -148,6 +152,10 @@ /velocities/groundspeed-kt 5 + + systems/drifting-sound + 1 + @@ -184,6 +192,10 @@ /velocities/groundspeed-kt 5 + + systems/drifting-sound + 1 + @@ -220,6 +232,10 @@ /velocities/groundspeed-kt 5 + + systems/drifting-sound + 1 + diff --git a/gui/dialogs/vehicle-dialog.xml b/gui/dialogs/vehicle-dialog.xml index 4bc7a6e..fd26bbc 100755 --- a/gui/dialogs/vehicle-dialog.xml +++ b/gui/dialogs/vehicle-dialog.xml @@ -30,44 +30,47 @@ vbox 6 - - + + hbox + + + - - - - + hbox @@ -229,43 +229,131 @@ - - + + hbox + + + + + hbox + 2 + + + + vbox