Internal_GetGUIDepth() private method

private Internal_GetGUIDepth ( ) : int
return int
Ejemplo n.º 1
0
        internal bool SendEvent(Event e)
        {
            int depth = SavedGUIState.Internal_GetGUIDepth();

            if (depth > 0)
            {
                SavedGUIState oldState = SavedGUIState.Create();
                var           retval   = Internal_SendEvent(e);
                if (retval)
                {
                    EditorApplication.SignalTick();
                }
                oldState.ApplyAndForget();
                return(retval);
            }

            {
                var retval = Internal_SendEvent(e);
                if (retval)
                {
                    EditorApplication.SignalTick();
                }
                return(retval);
            }
        }
Ejemplo n.º 2
0
        internal static SavedGUIState Create()
        {
            SavedGUIState result = default(SavedGUIState);

            if (SavedGUIState.Internal_GetGUIDepth() > 0)
            {
                result.skin        = GUI.skin;
                result.layoutCache = new GUILayoutUtility.LayoutCache(GUILayoutUtility.current);
                SavedGUIState.Internal_SetupSavedGUIState(out result.guiState, out result.screenManagerSize);
            }
            return(result);
        }
Ejemplo n.º 3
0
        internal static SavedGUIState Create()
        {
            SavedGUIState savedGuiState = new SavedGUIState();

            if (SavedGUIState.Internal_GetGUIDepth() > 0)
            {
                savedGuiState.skin        = GUI.skin;
                savedGuiState.layoutCache = new GUILayoutUtility.LayoutCache(GUILayoutUtility.current);
                SavedGUIState.Internal_SetupSavedGUIState(out savedGuiState.guiState, out savedGuiState.screenManagerSize);
            }
            return(savedGuiState);
        }
Ejemplo n.º 4
0
        internal bool SendEvent(Event e)
        {
            int  num  = SavedGUIState.Internal_GetGUIDepth();
            bool flag = false;

            if (num > 0)
            {
                SavedGUIState state = SavedGUIState.Create();
                flag = this.Internal_SendEvent(e);
                state.ApplyAndForget();
                return(flag);
            }
            return(this.Internal_SendEvent(e));
        }
Ejemplo n.º 5
0
        internal bool SendEvent(Event e)
        {
            int depth = SavedGUIState.Internal_GetGUIDepth();

            if (depth > 0)
            {
                SavedGUIState oldState = SavedGUIState.Create();
                var           retval   = Internal_SendEvent(e);
                oldState.ApplyAndForget();
                return(retval);
            }

            return(Internal_SendEvent(e));
        }
Ejemplo n.º 6
0
        internal bool SendEvent(Event e)
        {
            bool flag;

            if (SavedGUIState.Internal_GetGUIDepth() > 0)
            {
                SavedGUIState savedGuiState = SavedGUIState.Create();
                flag = this.Internal_SendEvent(e);
                savedGuiState.ApplyAndForget();
            }
            else
            {
                flag = this.Internal_SendEvent(e);
            }
            return(flag);
        }
Ejemplo n.º 7
0
        internal bool SendEvent(Event e)
        {
            int  num = SavedGUIState.Internal_GetGUIDepth();
            bool result;

            if (num > 0)
            {
                SavedGUIState savedGUIState = SavedGUIState.Create();
                result = this.Internal_SendEvent(e);
                savedGUIState.ApplyAndForget();
            }
            else
            {
                result = this.Internal_SendEvent(e);
            }
            return(result);
        }