Esempio n. 1
0
        public static void Log(string message, INestLevel obj)
        {
            Debug.Log(string.Format(@"{0}
{1}",
                                    LogUtil.Prepend(
                                        //string.Format("{0} [{1}]", obj.NestLevel, obj),
                                        string.Format("{0} {1}", obj.NestLevel, NamingUtil.DisplayListMemberToString((Components.Component)obj)),
                                        obj.NestLevel,
                                        "    " //"-> "
                                        ),

                                    LogUtil.Prepend(
                                        message,
                                        obj.NestLevel,
                                        "    " //"-> "
                                        )
                                    ));
        }
Esempio n. 2
0
        internal void DoShowOverlay(DisplayObject target)
        {
            if (null == target)
            {
                return;
            }

            DisplayListMember dlm = target as DisplayListMember;

            // do not analyze anything from this stage
            if (null != dlm && !GuiInspector.IsInspectable(dlm))
            {
                return;
            }

            if (null != _overlay)
            {
                _overlay.Visible = true;
                _overlay.Redraw(target.Transform.GlobalBounds, Bounds, NamingUtil.DisplayListMemberToString((DisplayListMember)target));
            }
            //InspectorDetailsWindow.Instance.Inform();
        }