From 4aad71045116dd20ceb0a38ea43ce1921d4722fc Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sun, 9 Feb 2020 07:50:53 +0100 Subject: [PATCH] GUI: Output preferences layout --- Il2CppInspector.GUI/MainWindow.xaml | 114 +++++++++++++++++++++++-- Il2CppInspector.GUI/MainWindow.xaml.cs | 6 -- 2 files changed, 108 insertions(+), 12 deletions(-) diff --git a/Il2CppInspector.GUI/MainWindow.xaml b/Il2CppInspector.GUI/MainWindow.xaml index 2bbbb38..1f53649 100644 --- a/Il2CppInspector.GUI/MainWindow.xaml +++ b/Il2CppInspector.GUI/MainWindow.xaml @@ -5,10 +5,11 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:gif="https://github.com/XamlAnimatedGif/XamlAnimatedGif" mc:Ignorable="d" - Title="Il2CppInspector" Height="500" Width="900" Background="White"> + Title="Il2CppInspector" Height="570" Width="900" Background="White"> + @@ -97,9 +98,14 @@ + + + + + @@ -141,15 +147,111 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + C# prototypes + + + Single file + File per namespace + File per assembly + File per class + Tree layout + + + Don't nest folders (flatten hierarchy) + + + Alphabetical + Type definition index + + + Suppress pointer, offset and index metadata comments + Attempt to generate output that compiles + Place assembly-level attributes in separate files + + Visual Studio solution + Uses the settings above but forces tree layout, compilable output and separate assembly attributes + + + + + + + + + + + + IDAPython script + + + - - + + - + + + diff --git a/Il2CppInspector.GUI/MainWindow.xaml.cs b/Il2CppInspector.GUI/MainWindow.xaml.cs index 7762a2d..1231981 100644 --- a/Il2CppInspector.GUI/MainWindow.xaml.cs +++ b/Il2CppInspector.GUI/MainWindow.xaml.cs @@ -53,7 +53,6 @@ namespace Il2CppInspectorGUI if (await app.LoadMetadataAsync(openFileDialog.FileName)) { // Metadata loaded successfully btnSelectBinaryFile.Visibility = Visibility.Visible; - btnBack.Visibility = Visibility.Visible; areaBusyIndicator.Visibility = Visibility.Hidden; } else { @@ -75,8 +74,6 @@ namespace Il2CppInspectorGUI CheckFileExists = true }; - btnBack.IsEnabled = false; - if (openFileDialog.ShowDialog() == true) { txtBusyStatus.Text = "Processing binary..."; areaBusyIndicator.Visibility = Visibility.Visible; @@ -96,8 +93,6 @@ namespace Il2CppInspectorGUI MessageBox.Show(this, "Something went wrong! " + app.LastException.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); } } - - btnBack.IsEnabled = true; } /// @@ -109,7 +104,6 @@ namespace Il2CppInspectorGUI rectModalLightBoxBackground.Visibility = Visibility.Visible; lstImages.ItemsSource = null; btnSelectBinaryFile.Visibility = Visibility.Hidden; - btnBack.Visibility = Visibility.Hidden; btnSelectMetadataFile.Visibility = Visibility.Visible; } }