예제 #1
0
        // Reinitialize this window because something is missing.
        private void Reinitialize()
        {
            // Missing layout object.
            if (Layout == null)
            {
                Layout = new YesAndLayout();
            }

            // Missing child list.
            if (Children == null)
            {
                Children = new List <YesAndEditorWindow> ();
            }
        }
예제 #2
0
        // Reinitialize this editor.
        protected virtual void Reinitialize()
        {
            // Initialize the layout object.
            if (Layout == null)
            {
                Layout = new YesAndLayout();
            }

            // Cast and cache the target.
            if (selected == null)
            {
                selected = target as T;
            }

            // Flag initialized.
            initialized = true;
        }
예제 #3
0
 // Called when this popup is opened.
 public override void OnOpen()
 {
     base.OnOpen();
     Layout = new YesAndLayout();
 }