Esempio n. 1
0
        public static string GetHtmlColor(RecordSeverity severity)
        {
            Init();
            Color32 color32 = GetColor(severity);

            return(color32.r.ToString("x2") + color32.g.ToString("x2") + color32.b.ToString("x2") + color32.a.ToString("x2"));
        }
Esempio n. 2
0
        // ----------------------------------------------------------------------------
        // base constructors
        // ----------------------------------------------------------------------------

        protected IssueRecord(RecordType type)
        {
            this.type = type;
            severity  = recordTypeSeverity[type];
        }
Esempio n. 3
0
 public static Color32 GetColor(RecordSeverity severity)
 {
     Init();
     return(EditorGUIUtility.isProSkin ? severityColorsDarkSkin[severity] : severityColorsLightSkin[severity]);
 }
Esempio n. 4
0
        // ----------------------------------------------------------------------------
        // base constructors
        // ----------------------------------------------------------------------------

        protected IssueRecord(IssueKind kind, RecordLocation location) : base(location)
        {
            Kind     = kind;
            Severity = recordTypeSeverity[kind];
        }