Files
2024-11-19 11:48:21 +01:00

44 lines
1.3 KiB
C#

using Gley.UrbanSystem.Editor;
using UnityEditor;
using UnityEngine;
namespace Gley.TrafficSystem.Editor
{
internal class SceneSetupWindow : SetupWindowBase
{
private const string URP_PACKAGE = "Gley/TrafficSystem/URP/TrafficSystem-URP.unitypackage";
protected override void ScrollPart(float width, float height)
{
EditorGUILayout.LabelField("Select action:");
EditorGUILayout.Space();
if (GUILayout.Button("Layer Setup"))
{
_window.SetActiveWindow(typeof(LayerSetupWindow), true);
}
EditorGUILayout.Space();
if (GUILayout.Button("Grid Setup"))
{
_window.SetActiveWindow(typeof(GridSetupWindow), true);
}
EditorGUILayout.Space();
if (GUILayout.Button("Vehicle Type Setup"))
{
_window.SetActiveWindow(typeof(VehicleTypesWindow), true);
}
EditorGUILayout.Space();
if (GUILayout.Button("Convert Materials to URP"))
{
AssetDatabase.ImportPackage($"{Application.dataPath}/{URP_PACKAGE}", false);
}
EditorGUILayout.Space();
base.ScrollPart(width, height);
}
}
}