Exemplo n.º 1
0
 static void ClosePopUp()
 {
     popUpText       = null;
     relatedLink     = null;
     relatedLinkName = null;
     inspectDocumentationDelegate = null;
     areYouSureFunk = null;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }