- New option to limit minimum preview length

- New option only preview with parameters
- Improve preview drawing modes
- Prevent null ref on plugin load
This commit is contained in:
Infi
2024-05-20 06:25:54 +02:00
parent a18861ea87
commit 592892e45a
8 changed files with 140 additions and 53 deletions
+1 -1
View File
@@ -461,7 +461,7 @@ internal sealed unsafe class Chat : IDisposable
private byte ChatLogRefreshDetour(IntPtr log, ushort eventId, AtkValue* value)
{
if (Plugin.ChatLogWindow.CurrentTab is { InputDisabled: true })
if (Plugin is { ChatLogWindow.CurrentTab.InputDisabled: true })
return ChatLogRefreshHook!.Original(log, eventId, value);
if (eventId != 0x31 || value == null || value->UInt is not (0x05 or 0x0C))