コード例 #1
0
        internal static DeleteWindowLayout Show(Rect r)
        {
            DeleteWindowLayout w = GetWindowWithRect <DeleteWindowLayout>(new Rect(r.xMax - (k_Width - k_Offset), r.y + k_Offset, k_Width, k_Height), true, L10n.Tr("Delete Layout"));

            w.m_Parent.window.m_DontSaveToLayout = true;
            return(w);
        }
コード例 #2
0
        public static void DeleteGUI()
        {
            View view           = WindowLayout.FindMainView();
            Rect screenPosition = view.screenPosition;
            DeleteWindowLayout windowWithRect = EditorWindow.GetWindowWithRect <DeleteWindowLayout>(new Rect(screenPosition.xMax - 180f, screenPosition.y + 20f, 200f, 150f), true, "Delete Window Layout");

            windowWithRect.m_Parent.window.m_DontSaveToLayout = true;
        }
コード例 #3
0
        public static void DeleteGUI()
        {
            View mainView        = FindMainView();
            Rect rect            = mainView.screenPosition;
            DeleteWindowLayout w = EditorWindow.GetWindowWithRect <DeleteWindowLayout>(new Rect(rect.xMax - 180, rect.y + 20, 200, 150), true, "Delete Window Layout");

            w.m_Parent.window.m_DontSaveToLayout = true;
        }
コード例 #4
0
 public static void DeleteGUI()
 {
     DeleteWindowLayout.Show(FindMainView().screenPosition);
 }