GUI: Tidy up status messages a bit

This commit is contained in:
Katy Coe
2020-12-22 03:18:32 +01:00
parent e058c39f19
commit e7bcd41d84
3 changed files with 4 additions and 4 deletions

View File

@@ -70,6 +70,8 @@ namespace Il2CppInspector
var pluginResult = PluginHooks.PreProcessMetadata(this); var pluginResult = PluginHooks.PreProcessMetadata(this);
IsModified = pluginResult.IsStreamModified; IsModified = pluginResult.IsStreamModified;
StatusUpdate("Processing metadata");
// Read metadata header // Read metadata header
Header = ReadObject<Il2CppGlobalMetadataHeader>(0); Header = ReadObject<Il2CppGlobalMetadataHeader>(0);

View File

@@ -84,7 +84,7 @@ namespace Il2CppInspectorGUI
+ Environment.NewLine + Environment.NewLine + "The application will continue but may not behave as expected.", "Plugin error"); + Environment.NewLine + Environment.NewLine + "The application will continue but may not behave as expected.", "Plugin error");
}; };
PluginManager.StatusHandler += (s, e) => StatusUpdate(e.Plugin, "Plugin " + e.Plugin.Name + ": " + e.Text); PluginManager.StatusHandler += (s, e) => StatusUpdate(e.Plugin, "[" + e.Plugin.Name + "]\n" + e.Text);
} }
public void ResetLoadOptions() { public void ResetLoadOptions() {
@@ -124,8 +124,6 @@ namespace Il2CppInspectorGUI
public Task<bool> LoadMetadataAsync(MemoryStream metadataStream) => public Task<bool> LoadMetadataAsync(MemoryStream metadataStream) =>
Task.Run(() => { Task.Run(() => {
try { try {
OnStatusUpdate?.Invoke(this, "Processing metadata");
metadata = Metadata.FromStream(metadataStream, StatusUpdate); metadata = Metadata.FromStream(metadataStream, StatusUpdate);
return true; return true;
} }

View File

@@ -470,7 +470,7 @@
<!-- Busy indicator --> <!-- Busy indicator -->
<Border Name="areaBusyIndicator" Width="800" BorderThickness="1" CornerRadius="2" BorderBrush="Gray" HorizontalAlignment="Center" VerticalAlignment="Center" Background="White" SnapsToDevicePixels="True" Visibility="Hidden"> <Border Name="areaBusyIndicator" Width="800" BorderThickness="1" CornerRadius="2" BorderBrush="Gray" HorizontalAlignment="Center" VerticalAlignment="Center" Background="White" SnapsToDevicePixels="True" Visibility="Hidden">
<StackPanel Margin="60,40,60,40"> <StackPanel Margin="60,40,60,40">
<TextBlock Name="txtBusyStatus" Foreground="{StaticResource WindowsBlue}" FontSize="24" HorizontalAlignment="Center">Getting things ready...</TextBlock> <TextBlock Name="txtBusyStatus" Foreground="{StaticResource WindowsBlue}" FontSize="24" HorizontalAlignment="Center" TextAlignment="Center">Getting things ready...</TextBlock>
<Image gif:AnimationBehavior.SourceUri="Resources/pizza.gif" Width="100" Margin="0,20,0,0" RenderOptions.BitmapScalingMode="Fant" /> <Image gif:AnimationBehavior.SourceUri="Resources/pizza.gif" Width="100" Margin="0,20,0,0" RenderOptions.BitmapScalingMode="Fant" />
</StackPanel> </StackPanel>
</Border> </Border>