From ca2869c9ce896c80616cc7b43d3b16f28feadf4e Mon Sep 17 00:00:00 2001 From: "the.geremy" Date: Wed, 12 Oct 2022 17:37:34 +0200 Subject: [PATCH] altered code to close vehicle list after vehicle selected --- VehicleSort.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/VehicleSort.lua b/VehicleSort.lua index 899c09b..6f40d91 100644 --- a/VehicleSort.lua +++ b/VehicleSort.lua @@ -256,6 +256,7 @@ end function VehicleSort:mouseEvent(posX, posY, isDown, isUp, button) if VehicleSort:isActionAllowed() and ( isDown and button == Input.MOUSE_BUTTON_LEFT) then VehicleSort.action_vsChangeVehicle(); + VehicleSort.showVehicles = false; -- close vehicle list after vehicle selected end if VehicleSort:isActionAllowed() and ( isDown and button == Input.MOUSE_BUTTON_RIGHT) then