Esempio n. 1
0
        private void UpdateInvocationList(MulticastDelegate value)
        {
                        #if DEV_MODE && DEBUG_UPDATE_INVOCATION_LIST
            Debug.Log(ToString() + ".UpdateInvocationList called with value=" + StringUtils.ToString(value));
                        #endif

            if (value != null)
            {
                invocationList = value.GetInvocationList();
                if (invocationList == null)
                {
                    ArrayExtensions.ArrayToZeroSize(ref invocationList);
                }
            }
            else
            {
                ArrayExtensions.ArrayToZeroSize(ref invocationList);
            }

            bool setDrawInSingleRow = invocationList.Length == 0;
            if (setDrawInSingleRow != drawInSingleRow)
            {
                drawInSingleRow = setDrawInSingleRow;

                if (!inactive && DrawInSingleRow && !Unfolded)
                {
                    SetUnfolded(true, false);
                }
            }
        }
Esempio n. 2
0
        public void Dispose()
        {
            if (drawers != null && drawers.Length > 0)
            {
                drawers.Clear();
            }
            scrollPos = default(Vector2);
            ArrayExtensions.ArrayToZeroSize(ref inspected);
            filter.SetFilter("", null, null, null);

            contentRect.y      = 0f;
            contentRect.height = 0f;

            windowRect.y      = 0f;
            windowRect.height = 0f;

                        #if !POWER_INSPECTOR_LITE
            selectionHistory.Clear();
                        #endif

            viewIsLocked    = false;
            assetMode       = false;
            HasScrollBar    = false;
            usingLocalSpace = true;

            onNextLayoutForAllVisibleDrawers.Clear();

            previousKeyboardControlRect = default(Rect);
            previousKeyboardControl     = 0;
            keyboardRectLastFrame       = default(Rect);
            keyboardControlLastFrame    = 0;

            OnScrollPosChanged   = null;
            OnLockedStateChanged = null;
            OnDebugModeChanged   = null;
            OnWidthChanged       = null;
            OnHeightChanged      = null;
        }