More Actor stuff.

This commit is contained in:
Ottermandias 2022-11-15 21:07:14 +01:00
parent 17a8e06c1d
commit 0444c28187
4 changed files with 302 additions and 105 deletions

View file

@ -59,7 +59,14 @@ public sealed partial class ConfigWindow : Window, IDisposable
DrawProblemWindow( $"There were {Penumbra.ImcExceptions.Count} errors while trying to load IMC files from the game data.\n"
+ "This usually means that your game installation was corrupted by updating the game while having TexTools mods still active.\n"
+ "It is recommended to not use TexTools and Penumbra (or other Lumina-based tools) at the same time.\n\n"
+ "Please use the Launcher's Repair Game Files function to repair your client installation." );
+ "Please use the Launcher's Repair Game Files function to repair your client installation.", true );
}
else if( !Penumbra.IsValidSourceRepo )
{
DrawProblemWindow(
$"You are loading a release version of Penumbra from the repository \"{Dalamud.PluginInterface.SourceRepository}\" instead of the official repository.\n"
+ $"Please use the official repository at {Penumbra.Repository}.\n\n"
+ "If you are developing for Penumbra and see this, you should compile your version in debug mode to avoid it.", false );
}
else if( Penumbra.IsNotInstalledPenumbra )
{
@ -67,7 +74,7 @@ public sealed partial class ConfigWindow : Window, IDisposable
$"You are loading a release version of Penumbra from \"{Dalamud.PluginInterface.AssemblyLocation.Directory?.FullName ?? "Unknown"}\" instead of the installedPlugins directory.\n\n"
+ "You should not install Penumbra manually, but rather add the plugin repository under settings and then install it via the plugin installer.\n\n"
+ "If you do not know how to do this, please take a look at the readme in Penumbras github repository or join us in discord.\n"
+ "If you are developing for Penumbra and see this, you should compile your version in debug mode to avoid it." );
+ "If you are developing for Penumbra and see this, you should compile your version in debug mode to avoid it.", false );
}
else if( Penumbra.DevPenumbraExists )
{
@ -75,7 +82,7 @@ public sealed partial class ConfigWindow : Window, IDisposable
$"You are loading a installed version of Penumbra from \"{Dalamud.PluginInterface.AssemblyLocation.Directory?.FullName ?? "Unknown"}\", "
+ "but also still have some remnants of a custom install of Penumbra in your devPlugins folder.\n\n"
+ "This can cause some issues, so please go to your \"%%appdata%%\\XIVLauncher\\devPlugins\" folder and delete the Penumbra folder from there.\n\n"
+ "If you are developing for Penumbra, try to avoid mixing versions. This warning will not appear if compiled in Debug mode." );
+ "If you are developing for Penumbra, try to avoid mixing versions. This warning will not appear if compiled in Debug mode.", false );
}
else
{
@ -96,12 +103,12 @@ public sealed partial class ConfigWindow : Window, IDisposable
}
}
private static void DrawProblemWindow( string text )
private static void DrawProblemWindow( string text, bool withExceptions )
{
using var color = ImRaii.PushColor( ImGuiCol.Text, Colors.RegexWarningBorder );
ImGui.NewLine();
ImGui.NewLine();
ImGui.TextWrapped( text );
ImGuiUtil.TextWrapped( text );
color.Pop();
ImGui.NewLine();
@ -112,14 +119,17 @@ public sealed partial class ConfigWindow : Window, IDisposable
ImGui.NewLine();
ImGui.NewLine();
ImGui.TextUnformatted( "Exceptions" );
ImGui.Separator();
using var box = ImRaii.ListBox( "##Exceptions", new Vector2(-1, -1) );
foreach( var exception in Penumbra.ImcExceptions )
if( withExceptions )
{
ImGuiUtil.TextWrapped( exception.ToString() );
ImGui.TextUnformatted( "Exceptions" );
ImGui.Separator();
ImGui.NewLine();
using var box = ImRaii.ListBox( "##Exceptions", new Vector2( -1, -1 ) );
foreach( var exception in Penumbra.ImcExceptions )
{
ImGuiUtil.TextWrapped( exception.ToString() );
ImGui.Separator();
ImGui.NewLine();
}
}
}