public static void ShowWiz(OnAcceptEvent onAccept, DiaQAsset asset, object[] args) { if (asset == null) return; DiaQGraphSelectWiz window = EditorWindow.GetWindow<DiaQGraphSelectWiz>(true); #if UNITY_4_5 || UNITY_4_6 window.title = "Select Graph"; #else window.titleContent = new GUIContent("Select Graph"); #endif window.minSize = new Vector2(300, 350); window.maxSize = new Vector2(300, 350); window.OnAccept = onAccept; window.asset = asset; window.args = args; window.ShowUtility(); }
protected void OnAcceptButtonPress(object o, Gtk.ButtonReleaseEventArgs args) { OnAcceptEvent?.Invoke(); }