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")); }
// ---------------------------------------------------------------------------- // base constructors // ---------------------------------------------------------------------------- protected IssueRecord(RecordType type) { this.type = type; severity = recordTypeSeverity[type]; }
public static Color32 GetColor(RecordSeverity severity) { Init(); return(EditorGUIUtility.isProSkin ? severityColorsDarkSkin[severity] : severityColorsLightSkin[severity]); }
// ---------------------------------------------------------------------------- // base constructors // ---------------------------------------------------------------------------- protected IssueRecord(IssueKind kind, RecordLocation location) : base(location) { Kind = kind; Severity = recordTypeSeverity[kind]; }