//  public GameObject target;
        //  public string functionName;
        //  public MethodRef methodRef;
        //  public Trigger trigger = Trigger.OnClick;
        //  public bool includeChildren = false;


        public override void OnInspectorGUI()
        {
            inspector.Begin();
            if (inspector["method"].objectReferenceValue == null)
            {
                inspector.OnInspectorGUI("target", "functionName");
            }
            inspector.OnInspectorGUI("method", "trigger", "includeChildren");
            inspector.End();
        }
예제 #2
0
 override public void OnInspectorGUI()
 {
     if (GUILayout.Button("Open Contents Editor"))
     {
         EditorWindow window = EditorWindow.GetWindow(typeof(UITableWindow));
         window.titleContent = new GUIContent("Grid");
         window.Show(true);
     }
     inspector.OnInspectorGUI();
     varInspector.OnInspectorGUI();
 }
예제 #3
0
        override public void OnInspectorGUI()
        {
            bool changed = varInspector.OnInspectorGUI();

            if (changed)
            {
                NGUIUtil.DisableAnchor(layout.top);
                NGUIUtil.DisableAnchor(layout.center);
                NGUIUtil.DisableAnchor(layout.bottom);
                NGUIUtil.DisableAnchor(layout.left);
                NGUIUtil.DisableAnchor(layout.right);
                layout.InvalidateLayout();
                EditorUtil.SetDirty(target);
            }
        }
예제 #4
0
        public void OnInspectorGUI()
        {
            bool changed = varInspector.OnInspectorGUI();

            changed |= animClipInspector.OnInspectorGUI();
            if (NGUIEditorTools.DrawHeader("Panel Event"))
            {
                NGUIEditorTools.BeginContents();
                NGUIEditorTools.DrawEvents("OnInit", window, window.onInit);
                NGUIEditorTools.DrawEvents("OnShowBegin", window, window.onShowBegin);
                NGUIEditorTools.DrawEvents("OnShowBegun", window, window.onShowBegun);
                NGUIEditorTools.DrawEvents("OnShowEnd", window, window.onShowEnd);
                NGUIEditorTools.DrawEvents("OnHideBegin", window, window.onHideBegin);
                NGUIEditorTools.DrawEvents("OnHideEnd", window, window.onHideEnd);
                NGUIEditorTools.EndContents();
            }
            if (changed)
            {
                EditorUtil.SetDirty(window);
            }
        }