Ejemplo n.º 1
0
 public override void ReceiveFromParentEditor(IEnumerable <SkillStartupSetting> editObject, ChildEditorCallback <IEnumerable <SkillStartupSetting> > callBack)
 {
     mEditObject = editObject;
     mCallBack   = callBack;
     HasFocus    = true;
     PushEditObjectToNGUIObject();
 }
Ejemplo n.º 2
0
        public virtual void ReceiveFromParentEditor(R editObject, ChildEditorCallback <R> callBack)
        {
            mEditObject = editObject;
            if (callBack != null)
            {
                //this will preserve the callback
                //if we call this again to reset items
                mCallBack = callBack;
            }

            if (Manager.IsAwake <GUIManager>())
            {
                GUIManager.Get.GetFocus(this);
            }
            //if it's a generic dialog result subscribe to the refresh action
            GenericDialogResult gdr = mEditObject as GenericDialogResult;

            if (gdr != null)
            {
                gdr.RefreshAction += Refresh;
            }
            PushEditObjectToNGUIObject();
            if (!Visible)
            {
                Show();
            }
        }
Ejemplo n.º 3
0
 public override void ReceiveFromParentEditor(IEnumerable <ActionSetting> editObject, ChildEditorCallback <IEnumerable <ActionSetting> > callBack)
 {
     mEditObject = editObject;
     mCallBack   = callBack;
     HasFocus    = true;
     ConfirmMessageLabel.text = string.Empty;
     PushEditObjectToNGUIObject();
 }
 public override void ReceiveFromParentEditor(IEnumerable <FieldInfo> editObject, ChildEditorCallback <IEnumerable <FieldInfo> > callBack)
 {
     mEditObject               = editObject;
     mCallBack                 = callBack;
     HasFocus                  = true;
     NumAffectedGlobalValues   = 0;
     NumUnaffectedGlobalValues = 0;
     PushEditObjectToNGUIObject();
 }
Ejemplo n.º 5
0
 public override void ReceiveFromParentEditor(CharacterCreator editObject, ChildEditorCallback <CharacterCreator> callBack)
 {
     if (ControllingTabPage != null)
     {
         mEditObject = editObject;
         PushEditObjectToNGUIObject();
         if (!Visible)
         {
             Show();
         }
         return;
     }
     else
     {
         base.ReceiveFromParentEditor(editObject, callBack);
     }
 }
Ejemplo n.º 6
0
 public override void ReceiveFromParentEditor(IEnumerable <Path> editObject, ChildEditorCallback <IEnumerable <Path> > callBack)
 {
     base.ReceiveFromParentEditor(editObject, callBack);
 }