2using Sirenix.OdinInspector;
4using Sirenix.OdinInspector.Editor;
11 public class TextInputDialogue : OdinEditorWindow
13 [HideInInspector]
public Action<string> onClose;
15 public static void ShowDialogue(
string message, Action<string> onClose)
17 var window = GetWindow<TextInputDialogue>(
true, message,
true);
18 window.onClose = onClose;
23 [Button(ButtonSizes.Small)]
26 onClose?.Invoke(text);