diff --git a/EditorModal/CallEditorModalExample.cs b/EditorModal/CallEditorModalExample.cs deleted file mode 100644 index 47ac3f7..0000000 --- a/EditorModal/CallEditorModalExample.cs +++ /dev/null @@ -1,14 +0,0 @@ -using EditorModal; -using UnityEditor; - -public class CallEditorModalExample -{ - [MenuItem("Window/Plugins/EditorModal/Open Editor Modal Example")] - [MenuItem("Editor Modal/Open Editor Modal Example")] - private static void OpenEditorModal() - { - EditorPopupModal popupModal = (EditorPopupModal)EditorWindow.GetWindow(typeof(EditorPopupModal), true, "NOTICE", true); - popupModal.ShowModalUtility(); - popupModal.Focus(); - } -} \ No newline at end of file diff --git a/EditorModal/EditorModal.cs b/EditorModal/EditorModal.cs deleted file mode 100644 index 657151d..0000000 --- a/EditorModal/EditorModal.cs +++ /dev/null @@ -1,36 +0,0 @@ -//Author: https://github.com/seekeroftheball - -using UnityEditor; -using UnityEngine; - -namespace EditorModal -{ - public class EditorPopupModal : EditorWindow - { - private struct WindowBounds - { - public const float WindowWidth = 242; - public const float WindowHeight = 72; - - public static Vector2 WindowSize = new(WindowWidth, WindowHeight); - } - - private EditorPopupModal() - { - minSize = WindowBounds.WindowSize; - maxSize = WindowBounds.WindowSize; - } - - private void OnGUI() => DrawWindow(); - - private void OnInspectorUpdate() => Repaint(); - - private void DrawWindow() - { - GUILayout.Label("Here's some text in a pop-up window.\n\nPress Close to dismiss this message.", EditorStyles.wordWrappedLabel); - - if (GUILayout.Button("Close")) - Close(); - } - } -} \ No newline at end of file