From 05dcc039bd99f458e515734cc4d47c9647e544cf Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 30 Dec 2021 20:48:32 -0800 Subject: [PATCH] Tweak new disc information fields and tabs --- CHANGELIST.md | 1 + MPF.Test/RedumpLib/SubmissionInfoTests.cs | 12 ++++++++++-- MPF/UserControls/UserInput.xaml.cs | 2 +- MPF/Windows/DiscInformationWindow.xaml | 16 ++++++++-------- 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index 2b044c34..537cd144 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -7,6 +7,7 @@ - Fix CSSKey log handling - Show most read-only fields in new tab - Add horizontal scroll to user input +- Tweak new disc information fields and tabs ### 2.2 (2021-12-30) - Fix Saturn header finding diff --git a/MPF.Test/RedumpLib/SubmissionInfoTests.cs b/MPF.Test/RedumpLib/SubmissionInfoTests.cs index 2a3ac860..8b2485b4 100644 --- a/MPF.Test/RedumpLib/SubmissionInfoTests.cs +++ b/MPF.Test/RedumpLib/SubmissionInfoTests.cs @@ -79,8 +79,16 @@ namespace MPF.Test.RedumpLib Barcode = "UPC Barcode", EXEDateBuildDate = "19xx-xx-xx", ErrorsCount = "0", - Comments = "[T:ISBN] ISBN\r\nComment data", - Contents = "Demos:\r\n- Game Demo 1", + Comments = "Comment data line 1\r\nComment data line 2", + CommentsSpecialFields = new Dictionary() + { + [SiteCode.ISBN] = "ISBN", + }, + Contents = "Special contents 1\r\nSpecial contents 2", + ContentsSpecialFields = new Dictionary() + { + [SiteCode.PlayableDemos] = "Game Demo 1", + }, }, VersionAndEditions = new VersionAndEditionsSection() diff --git a/MPF/UserControls/UserInput.xaml.cs b/MPF/UserControls/UserInput.xaml.cs index 8a3470c5..37abef3c 100644 --- a/MPF/UserControls/UserInput.xaml.cs +++ b/MPF/UserControls/UserInput.xaml.cs @@ -116,7 +116,7 @@ namespace MPF.UserControls TextWrapping = TextWrapping.NoWrap; IsEnabledValue = true; VerticalContentAlignmentValue = VerticalAlignment.Center; - HorizontalScrollBarVisibility = ScrollBarVisibility.Auto; + HorizontalScrollBarVisibility = ScrollBarVisibility.Hidden; VerticalScrollBarVisibility = ScrollBarVisibility.Auto; InitializeComponent(); diff --git a/MPF/Windows/DiscInformationWindow.xaml b/MPF/Windows/DiscInformationWindow.xaml index a1456457..f4db2651 100644 --- a/MPF/Windows/DiscInformationWindow.xaml +++ b/MPF/Windows/DiscInformationWindow.xaml @@ -146,13 +146,13 @@ + - @@ -193,6 +193,7 @@ + @@ -202,7 +203,6 @@ - @@ -251,15 +251,15 @@ - + - - + + - - - + + +