Make assignment chat message optional
This commit is contained in:
parent
b66b4689b8
commit
6c639e82dc
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0-windows</TargetFramework>
|
<TargetFramework>net8.0-windows</TargetFramework>
|
||||||
<Version>4.0</Version>
|
<Version>4.1</Version>
|
||||||
<LangVersion>12</LangVersion>
|
<LangVersion>12</LangVersion>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
|
@ -229,7 +229,8 @@ public sealed partial class AutoRetainerControlPlugin : IDalamudPlugin
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PrintNextVentureMessage(retainerName, venture, reward, list);
|
if (_configuration.ConfigUiOptions.ShowAssignmentChatMessages || dryRun)
|
||||||
|
PrintNextVentureMessage(retainerName, venture, reward, list);
|
||||||
|
|
||||||
if (!dryRun)
|
if (!dryRun)
|
||||||
{
|
{
|
||||||
|
@ -122,5 +122,6 @@ internal sealed class Configuration : IPluginConfiguration
|
|||||||
public bool CheckGatheredItemsPerCharacter { get; set; }
|
public bool CheckGatheredItemsPerCharacter { get; set; }
|
||||||
public bool OnlyShowMissingGatheredItems { get; set; }
|
public bool OnlyShowMissingGatheredItems { get; set; }
|
||||||
public bool WrapAroundWhenReordering { get; set; }
|
public bool WrapAroundWhenReordering { get; set; }
|
||||||
|
public bool ShowAssignmentChatMessages { get; set; } = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1119,11 +1119,11 @@ internal sealed class ConfigWindow : LWindow
|
|||||||
|
|
||||||
ImGui.PushFont(UiBuilder.IconFont);
|
ImGui.PushFont(UiBuilder.IconFont);
|
||||||
ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X -
|
ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X -
|
||||||
ImGui.CalcTextSize(FontAwesomeIcon.ArrowUp.ToIconString()).X -
|
ImGui.CalcTextSize(FontAwesomeIcon.ArrowUp.ToIconString()).X -
|
||||||
ImGui.CalcTextSize(FontAwesomeIcon.ArrowDown.ToIconString()).X -
|
ImGui.CalcTextSize(FontAwesomeIcon.ArrowDown.ToIconString()).X -
|
||||||
ImGui.CalcTextSize(FontAwesomeIcon.Times.ToIconString()).X -
|
ImGui.CalcTextSize(FontAwesomeIcon.Times.ToIconString()).X -
|
||||||
ImGui.GetStyle().FramePadding.X * 6 -
|
ImGui.GetStyle().FramePadding.X * 6 -
|
||||||
ImGui.GetStyle().ItemSpacing.X * 2);
|
ImGui.GetStyle().ItemSpacing.X * 2);
|
||||||
ImGui.PopFont();
|
ImGui.PopFont();
|
||||||
if (ImGui.Combo("", ref listIndex, itemLists.Select(x => x.Name).ToArray(), itemLists.Count))
|
if (ImGui.Combo("", ref listIndex, itemLists.Select(x => x.Name).ToArray(), itemLists.Count))
|
||||||
{
|
{
|
||||||
@ -1262,6 +1262,14 @@ internal sealed class ConfigWindow : LWindow
|
|||||||
|
|
||||||
ImGui.Text("User Interface Settings");
|
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;
|
bool showContents = _configuration.ConfigUiOptions.ShowVentureListContents;
|
||||||
if (ImGui.Checkbox("Show Venture List preview in Groups/Retainer tabs", ref showContents))
|
if (ImGui.Checkbox("Show Venture List preview in Groups/Retainer tabs", ref showContents))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user