示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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);
            }
        }