Make assignment chat message optional

pull/3/head v4.1
Liza 2024-04-26 20:02:23 +02:00
parent b66b4689b8
commit 8a3a6399b2
Signed by: liza
GPG Key ID: 7199F8D727D55F67
4 changed files with 17 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<Version>4.0</Version>
<Version>4.1</Version>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

View File

@ -229,6 +229,7 @@ public sealed partial class AutoRetainerControlPlugin : IDalamudPlugin
}
else
{
if (_configuration.ConfigUiOptions.ShowAssignmentChatMessages || dryRun)
PrintNextVentureMessage(retainerName, venture, reward, list);
if (!dryRun)

View File

@ -122,5 +122,6 @@ internal sealed class Configuration : IPluginConfiguration
public bool CheckGatheredItemsPerCharacter { get; set; }
public bool OnlyShowMissingGatheredItems { get; set; }
public bool WrapAroundWhenReordering { get; set; }
public bool ShowAssignmentChatMessages { get; set; } = true;
}
}

View File

@ -1262,6 +1262,14 @@ internal sealed class ConfigWindow : LWindow
ImGui.Text("User Interface Settings");
bool showAssignmentChatMessages = _configuration.ConfigUiOptions.ShowAssignmentChatMessages;
if (ImGui.Checkbox("Show chat message when assigning a venture to a retainer",
ref showAssignmentChatMessages))
{
_configuration.ConfigUiOptions.ShowAssignmentChatMessages = showAssignmentChatMessages;
Save();
}
bool showContents = _configuration.ConfigUiOptions.ShowVentureListContents;
if (ImGui.Checkbox("Show Venture List preview in Groups/Retainer tabs", ref showContents))
{