From dbf4c3452da27d0f42391adcb2ef7b7ddcf0aed9 Mon Sep 17 00:00:00 2001 From: Rich Dunne Date: Sun, 6 Dec 2020 07:28:02 -0700 Subject: [PATCH] Added using for SceneManager.Object and SceneManager.Utils. Removed unnecessary code for RNUIMouseInputHandler after having added InputManager dependency. --- SceneManager/Menus/PathCreationMenu.cs | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/SceneManager/Menus/PathCreationMenu.cs b/SceneManager/Menus/PathCreationMenu.cs index 56553ad..efea706 100644 --- a/SceneManager/Menus/PathCreationMenu.cs +++ b/SceneManager/Menus/PathCreationMenu.cs @@ -1,12 +1,11 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Drawing; using System.Linq; -using System.Net.Configuration; -using System.Windows.Forms; using Rage; using RAGENativeUI; using RAGENativeUI.Elements; +using SceneManager.Utils; +using SceneManager.Objects; namespace SceneManager { @@ -313,19 +312,6 @@ namespace SceneManager private static void PathCreation_OnMenuOpen(UIMenu menu) { var scrollerItems = new List { collectorRadius, speedZoneRadius, waypointSpeed }; - var checkboxItems = new Dictionary() - { - { collectorWaypoint, UpdateCollectorMenuOptionsStatus}, - { stopWaypointType, null}, - { directWaypointBehavior, null} - }; - var selectItems = new Dictionary() - { - { trafficAddWaypoint, AddNewWaypoint }, - { trafficRemoveWaypoint, RemoveWaypoint }, - { trafficEndPath, EndPath } - }; - RNUIMouseInputHandler.Initialize(menu, scrollerItems); } }