示例#1
0
        protected virtual void DrawVisibleCells()
        {
            #if LUNAR_DEVELOPMENT
            if (CSystemVars.g_drawVisibleCells.BoolValue)
            {
                if (FirstVisibleCell != null)
                {
                    GUI.Box(FirstVisibleCell.Frame, GUIContent.none);
                }

                if (LastVisibleCell != null)
                {
                    GUI.Box(LastVisibleCell.Frame, GUIContent.none);
                }
            }
            #endif // LUNAR_DEVELOPMENT

            for (CTableViewCell cell = FirstVisibleCell; cell != null; cell = cell.NextCell)
            {
                if (IsCellSelected(cell.CellIndex))
                {
                    CUIHelper.DrawRect(cell.Frame, CSharedStyles.SelectedCellBackStyle);
                }
                cell.OnGUI();
            }
        }
示例#2
0
        private void DrawStackLine(ref CStackTraceLine stackLine, GUIStyle style)
        {
            if (stackLine.IsClickable)
            {
                GUIStyle linkStyle = stackLine.sourcePathExists ? CSharedStyles.consoleLinkStyle : CSharedStyles.consoleLinkInnactiveStyle;
                CUIHelper.DrawUnderLine(stackLine.sourceFrame, linkStyle);

                if (stackLine.sourcePathExists && GUI.Button(stackLine.sourceFrame, GUIContent.none, GUIStyle.none))
                {
                    CEditor.OpenFileAtLineExternal(stackLine.sourcePath, stackLine.lineNumber);
                }
            }
            GUI.Label(stackLine.frame, stackLine.line, style);
        }
示例#3
0
        protected override void DrawGUI()
        {
            BeginGroup(Frame);
            {
                if (GUI.Button(this.Bounds, m_content, this.Style))
                {
                    CEditorApp.HandleURL(m_href);
                }
            }
            EndGroup();

            #if !(UNITY_4_7 || UNITY_4_6 || UNITY_4_5 || UNITY_4_4 || UNITY_4_3 || UNITY_4_2 || UNITY_4_1 || UNITY_4)
            Rect linkFrame = this.Frame;
            linkFrame.height = this.Style.font.ascent;
            CUIHelper.DrawUnderLine(linkFrame, this.Style.normal.textColor);
            #endif
        }
示例#4
0
 internal static void OnPlayModeChanged(bool isPlaying)
 {
     CUIHelper.RecycleTextures();
 }