public virtual bool PEGI() { bool changed = false; if (!showDebug && icon.Config.Click()) { showDebug = true; } if (showDebug) { if (icon.Edit.Click("Back to element inspection")) { showDebug = false; } this.clickHighlight(); if (inspectedStuff == -1) { pegi.nl(); } if (("STD Saves: " + explorer.states.Count).fold_enter_exit(ref inspectedStuff, 0).nl_ifTrue()) { explorer.PEGI(this); } if (inspectedStuff == -1) { pegi.nl(); } if (("Object References: " + _nestedReferences.Count).fold_enter_exit(ref inspectedStuff, 1).nl_ifTrue()) { "References".edit_List_Obj(_nestedReferences, ref inspectedReference, nestedReferenceDatas); } if (inspectedStuff == -1) { pegi.nl(); } if (("Unrecognized Tags: " + uTags.Count).fold_enter_exit(ref inspectedStuff, 2).nl_ifTrue()) { changed |= uTags.Nested_Inspect(); } if (inspectedStuff == -1) { pegi.nl(); } } return(changed); }
/* public static bool PEGI_Static(iSTD target) * { * return iSTD_ExplorerData.PEGI_Static(target); * }*/ public bool PEGI() { UnityEngine.Object obj = ConnectSTD == null ? null : ConnectSTD as UnityEngine.Object; if ("Target Obj: ".edit(60, ref obj) && obj != null) { ConnectSTD = obj as ISTD; } MonoBehaviour mono = ConnectSTD == null ? null : ConnectSTD as MonoBehaviour; if ("Target Obj: ".edit(60, ref mono).nl() && mono != null) { ConnectSTD = mono as ISTD; } return(data.PEGI(ConnectSTD)); }
public virtual bool PEGI() { bool changed = false; if (!showDebug && icon.Config.Click()) { showDebug = true; } if (showDebug) { if (icon.Exit.Click("Back to element inspection").nl()) { showDebug = false; } explorer.PEGI(this); changed |= uTags.Nested_Inspect(); } return(changed); }
public virtual bool PEGI() { bool changed = false; var attention = NeedAttention(); if (!showDebug && (attention != null ? icon.Warning.Click(attention) : icon.Config.Click())) { showDebug = true; } if (showDebug) { if (nestedReferencesChanged && gameObject.IsPrefab() && icon.Save.Click()) { this.UpdatePrefab(gameObject); } if (icon.Edit.Click("Back to element inspection")) { showDebug = false; } (this.ToPEGIstring() + " Debug").write(); if (inspectedStuff == -1) { pegi.nl(); } if (("STD Saves: " + explorer.states.Count).fold_enter_exit(ref inspectedStuff, 0).nl_ifTrue()) { explorer.PEGI(this); } if (inspectedStuff == -1) { pegi.nl(); } if (("Object References: " + _nestedReferences.Count).fold_enter_exit(ref inspectedStuff, 1).nl_ifTrue()) { "References".edit_List_Obj(_nestedReferences, ref inspectedReference, nestedReferenceDatas); } if (inspectedStuff == -1) { pegi.nl(); } if (("Unrecognized Tags: " + uTags.Count).fold_enter_exit(ref inspectedStuff, 2).nl_ifTrue()) { changed |= uTags.Nested_Inspect(); } if (inspectedStuff == -1) { pegi.nl(); } } return(changed); }