Updated how raw values are colorized in full TOC.

This commit is contained in:
2025-08-19 02:43:39 +01:00
parent e23cf14669
commit 755ec9f3fd

View File

@@ -127,19 +127,19 @@ public static class FullTOC
descriptor.TNO != 0) descriptor.TNO != 0)
{ {
sb.AppendLine(Localization.Unknown_TOC_entry_format_printing_values_as_is); sb.AppendLine(Localization.Unknown_TOC_entry_format_printing_values_as_is);
sb.AppendLine($"[slateblue1]SessionNumber = [teal]{descriptor.SessionNumber}[/][/]"); sb.AppendLine($"[rosybrown]SessionNumber = [teal]{descriptor.SessionNumber}[/][/]");
sb.AppendLine($"[slateblue1]ADR = [teal]{descriptor.ADR}[/][/]"); sb.AppendLine($" [rosybrown]ADR = [teal]{descriptor.ADR}[/][/]");
sb.AppendLine($"[slateblue1]CONTROL = [teal]{descriptor.CONTROL}[/][/]"); sb.AppendLine($" [rosybrown]CONTROL = [teal]{descriptor.CONTROL}[/][/]");
sb.AppendLine($"[slateblue1]TNO = [teal]{descriptor.TNO}[/][/]"); sb.AppendLine($" [rosybrown]TNO = [teal]{descriptor.TNO}[/][/]");
sb.AppendLine($"[slateblue1]POINT = [teal]{descriptor.POINT}[/][/]"); sb.AppendLine($" [rosybrown]POINT = [teal]{descriptor.POINT}[/][/]");
sb.AppendLine($"[slateblue1]Min = [teal]{descriptor.Min}[/][/]"); sb.AppendLine($" [rosybrown]Min = [teal]{descriptor.Min}[/][/]");
sb.AppendLine($"[slateblue1]Sec = [teal]{descriptor.Sec}[/][/]"); sb.AppendLine($" [rosybrown]Sec = [teal]{descriptor.Sec}[/][/]");
sb.AppendLine($"[slateblue1]Frame = [teal]{descriptor.Frame}[/][/]"); sb.AppendLine($" [rosybrown]Frame = [teal]{descriptor.Frame}[/][/]");
sb.AppendLine($"[slateblue1]HOUR = [teal]{descriptor.HOUR}[/][/]"); sb.AppendLine($" [rosybrown]HOUR = [teal]{descriptor.HOUR}[/][/]");
sb.AppendLine($"[slateblue1]PHOUR = [teal]{descriptor.PHOUR}[/][/]"); sb.AppendLine($" [rosybrown]PHOUR = [teal]{descriptor.PHOUR}[/][/]");
sb.AppendLine($"[slateblue1]PMIN = [teal]{descriptor.PMIN}[/][/]"); sb.AppendLine($" [rosybrown]PMIN = [teal]{descriptor.PMIN}[/][/]");
sb.AppendLine($"[slateblue1]PSEC = [teal]{descriptor.PSEC}[/][/]"); sb.AppendLine($" [rosybrown]PSEC = [teal]{descriptor.PSEC}[/][/]");
sb.AppendLine($"[slateblue1]PFRAME = [teal]{descriptor.PFRAME}[/][/]"); sb.AppendLine($" [rosybrown]PFRAME = [teal]{descriptor.PFRAME}[/][/]");
} }
else else
{ {
@@ -433,18 +433,18 @@ public static class FullTOC
} }
else else
{ {
sb.Append($"ADR = {descriptor.ADR}").AppendLine(); sb.AppendLine($" [rosybrown]ADR[/] = [teal]{descriptor.ADR}[/]");
sb.Append($"CONTROL = {descriptor.CONTROL}").AppendLine(); sb.AppendLine($"[rosybrown]CONTROL[/] = [teal]{descriptor.CONTROL}[/]");
sb.Append($"TNO = {descriptor.TNO}").AppendLine(); sb.AppendLine($" [rosybrown]TNO[/] = [teal]{descriptor.TNO}[/]");
sb.Append($"POINT = {descriptor.POINT}").AppendLine(); sb.AppendLine($" [rosybrown]POINT[/] = [teal]{descriptor.POINT}[/]");
sb.Append($"Min = {descriptor.Min}").AppendLine(); sb.AppendLine($" [rosybrown]Min[/] = [teal]{descriptor.Min}[/]");
sb.Append($"Sec = {descriptor.Sec}").AppendLine(); sb.AppendLine($" [rosybrown]Sec[/] = [teal]{descriptor.Sec}[/]");
sb.Append($"Frame = {descriptor.Frame}").AppendLine(); sb.AppendLine($" [rosybrown]Frame[/] = [teal]{descriptor.Frame}[/]");
sb.Append($"HOUR = {descriptor.HOUR}").AppendLine(); sb.AppendLine($" [rosybrown]HOUR[/] = [teal]{descriptor.HOUR}[/]");
sb.Append($"PHOUR = {descriptor.PHOUR}").AppendLine(); sb.AppendLine($" [rosybrown]PHOUR[/] = [teal]{descriptor.PHOUR}[/]");
sb.Append($"PMIN = {descriptor.PMIN}").AppendLine(); sb.AppendLine($" [rosybrown]PMIN[/] = [teal]{descriptor.PMIN}[/]");
sb.Append($"PSEC = {descriptor.PSEC}").AppendLine(); sb.AppendLine($" [rosybrown]PSEC[/] = [teal]{descriptor.PSEC}[/]");
sb.Append($"PFRAME = {descriptor.PFRAME}").AppendLine(); sb.AppendLine($" [rosybrown]PFRAME[/] = [teal]{descriptor.PFRAME}[/]");
} }
break; break;
@@ -552,14 +552,14 @@ public static class FullTOC
case 0xC1: case 0xC1:
{ {
sb.AppendFormat(Localization.Copy_of_information_of_A1_from_ATIP_found); sb.AppendLine(Localization.Copy_of_information_of_A1_from_ATIP_found);
sb.Append($"Min = {descriptor.Min}").AppendLine(); sb.AppendLine($" [rosybrown]Min[/] = [teal]{descriptor.Min}[/]");
sb.Append($"Sec = {descriptor.Sec}").AppendLine(); sb.AppendLine($" [rosybrown]Sec[/] = [teal]{descriptor.Sec}[/]");
sb.Append($"Frame = {descriptor.Frame}").AppendLine(); sb.AppendLine($" [rosybrown]Frame[/] = [teal]{descriptor.Frame}[/]");
sb.Append($"Zero = {descriptor.Zero}").AppendLine(); sb.AppendLine($" [rosybrown]Zero[/] = [teal]{descriptor.Zero}[/]");
sb.Append($"PMIN = {descriptor.PMIN}").AppendLine(); sb.AppendLine($" [rosybrown]PMIN[/] = [teal]{descriptor.PMIN}[/]");
sb.Append($"PSEC = {descriptor.PSEC}").AppendLine(); sb.AppendLine($" [rosybrown]PSEC[/] = [teal]{descriptor.PSEC}[/]");
sb.Append($"PFRAME = {descriptor.PFRAME}").AppendLine(); sb.AppendLine($"[rosybrown]PFRAME[/] = [teal]{descriptor.PFRAME}[/]");
break; break;
} }
@@ -618,18 +618,18 @@ public static class FullTOC
} }
else else
{ {
sb.Append($"ADR = {descriptor.ADR}").AppendLine(); sb.AppendLine($" [rosybrown]ADR[/] = [teal]{descriptor.ADR}[/]");
sb.Append($"CONTROL = {descriptor.CONTROL}").AppendLine(); sb.AppendLine($"[rosybrown]CONTROL[/] = [teal]{descriptor.CONTROL}[/]");
sb.Append($"TNO = {descriptor.TNO}").AppendLine(); sb.AppendLine($" [rosybrown]TNO[/] = [teal]{descriptor.TNO}[/]");
sb.Append($"POINT = {descriptor.POINT}").AppendLine(); sb.AppendLine($" [rosybrown]POINT[/] = [teal]{descriptor.POINT}[/]");
sb.Append($"Min = {descriptor.Min}").AppendLine(); sb.AppendLine($" [rosybrown]Min[/] = [teal]{descriptor.Min}[/]");
sb.Append($"Sec = {descriptor.Sec}").AppendLine(); sb.AppendLine($" [rosybrown]Sec[/] = [teal]{descriptor.Sec}[/]");
sb.Append($"Frame = {descriptor.Frame}").AppendLine(); sb.AppendLine($" [rosybrown]Frame[/] = [teal]{descriptor.Frame}[/]");
sb.Append($"HOUR = {descriptor.HOUR}").AppendLine(); sb.AppendLine($" [rosybrown]HOUR[/] = [teal]{descriptor.HOUR}[/]");
sb.Append($"PHOUR = {descriptor.PHOUR}").AppendLine(); sb.AppendLine($" [rosybrown]PHOUR[/] = [teal]{descriptor.PHOUR}[/]");
sb.Append($"PMIN = {descriptor.PMIN}").AppendLine(); sb.AppendLine($" [rosybrown]PMIN[/] = [teal]{descriptor.PMIN}[/]");
sb.Append($"PSEC = {descriptor.PSEC}").AppendLine(); sb.AppendLine($" [rosybrown]PSEC[/] = [teal]{descriptor.PSEC}[/]");
sb.Append($"PFRAME = {descriptor.PFRAME}").AppendLine(); sb.AppendLine($" [rosybrown]PFRAME[/] = [teal]{descriptor.PFRAME}[/]");
} }
break; break;