using System; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; namespace VRC.SDK3.Editor { public class PublishConfirmationWindow: PopupWindowContent { //Set the window size public override Vector2 GetWindowSize() { return new Vector2(400, 300); } public override void OnGUI(Rect rect) { // Intentionally left empty } private string _title; private string _text; private string _yesText; private string _noText; private Action _yesAction; private Action _noAction; public PublishConfirmationWindow(string title, string text, string yesText, string noText, Action yesAction = null, Action noAction = null) { _title = title; _text = text; _yesText = yesText; _noText = noText; _yesAction = yesAction; _noAction = noAction; } private VisualElement _r; public override void OnOpen() { _r = editorWindow.rootVisualElement; Resources.Load("PublishConfirmationWindow").CloneTree(_r); _r.styleSheets.Add(Resources.Load("PublishConfirmationWindowStyles")); _r.styleSheets.Add(Resources.Load("VRCSdkPanelStyles")); _r.Q