예제 #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"));
        }
예제 #2
0
        // ----------------------------------------------------------------------------
        // base constructors
        // ----------------------------------------------------------------------------

        protected IssueRecord(RecordType type)
        {
            this.type = type;
            severity  = recordTypeSeverity[type];
        }
예제 #3
0
 public static Color32 GetColor(RecordSeverity severity)
 {
     Init();
     return(EditorGUIUtility.isProSkin ? severityColorsDarkSkin[severity] : severityColorsLightSkin[severity]);
 }
예제 #4
0
파일: IssueRecord.cs 프로젝트: s1gurd/W-Hub
        // ----------------------------------------------------------------------------
        // base constructors
        // ----------------------------------------------------------------------------

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