static void ClosePopUp() { popUpText = null; relatedLink = null; relatedLinkName = null; inspectDocumentationDelegate = null; areYouSureFunk = null; }
public static bool fullWindowDocumentationClickOpen(GameView.InspectionDelegate function, string toolTip = "", int buttonSize = 20) { if (toolTip.IsNullOrEmpty()) { toolTip = icon.Question.GetDescription(); } if (fullWindowDocumentationClickOpen(toolTip, buttonSize)) { PopUpService.inspectDocumentationDelegate = function; PopUpService.InitiatePopUp(); return(true); } return(false); }
public static bool Nested_Inspect(GameView.InspectionDelegate function, Object target = null) { var changed = false; var il = IndentLevel; if (function().changes(ref changed)) { if (target) { target.SetToDirty(); } else { function.Target.SetToDirty_Obj(); } } IndentLevel = il; return(changed); }