using Gley.UrbanSystem.Editor; using UnityEngine; namespace Gley.TrafficSystem.Editor { internal class ShowSpeedEditedWaypoints : ShowWaypointsTrafficBase { private readonly float _scrollAdjustment = 221; internal override SetupWindowBase Initialize(WindowProperties windowProperties, SettingsWindowBase window) { base.Initialize(windowProperties, window); _waypointsOfInterest = _trafficWaypointData.GetSpeedEditedWaypoints(); return this; } internal override void DrawInScene() { _trafficWaypointDrawer.ShowSpeedEditedWaypoints(_editorSave.EditorColors.WaypointColor, _editorSave.EditorColors.SpeedColor); base.DrawInScene(); } protected override void ScrollPart(float width, float height) { _scrollPosition = GUILayout.BeginScrollView(_scrollPosition, false, false, GUILayout.Width(width - SCROLL_SPACE), GUILayout.Height(height - _scrollAdjustment)); base.ScrollPart(width, height); GUILayout.EndScrollView(); } } }