private static Texture2D GetTextureFor(HealthReport.ReportType reportType) { switch (reportType) { case HealthReport.ReportType.Info: return(Textures.Info); case HealthReport.ReportType.Warning: return(Textures.Warning); case HealthReport.ReportType.Error: case HealthReport.ReportType.Debug: return(Textures.Debug); default: return(Textures.QuestionMark); } }
private string GetTooltipFor(HealthReport.ReportType reportType) { switch (reportType) { case HealthReport.ReportType.Info: return(_infoTooltip); case HealthReport.ReportType.Warning: return(_warningTooltip); case HealthReport.ReportType.Error: return(_errorTooltip); case HealthReport.ReportType.Debug: return(_debugTooltip); default: return(null); } }
private static Color GetColorFor(HealthReport.ReportType reportType) { switch (reportType) { case HealthReport.ReportType.Info: return(ColorLibrary.PaleGreen); case HealthReport.ReportType.Warning: return(ColorLibrary.Yellow); case HealthReport.ReportType.Error: return(ColorLibrary.Salmon); case HealthReport.ReportType.Debug: return(ColorLibrary.LightPink); default: return(Color.white); } }