Configuration to disable running after venture
This commit is contained in:
parent
2fbf350c97
commit
9d0dc9bdd7
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<Version>1.1</Version>
|
||||
<Version>1.2</Version>
|
||||
<LangVersion>11.0</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
|
@ -61,7 +61,7 @@ public class AutoDiscardPlogon : IDalamudPlugin
|
||||
|
||||
private unsafe void CheckPostProcess(string retainerName)
|
||||
{
|
||||
if (_inventoryUtils.GetNextItemToDiscard() != null)
|
||||
if (_configuration.RunAfterVenture && _inventoryUtils.GetNextItemToDiscard() != null)
|
||||
_autoRetainerApi.RequestPostprocess();
|
||||
}
|
||||
|
||||
|
@ -43,6 +43,13 @@ public class ConfigWindow : Window
|
||||
|
||||
public override void Draw()
|
||||
{
|
||||
bool runAfterVenture = _configuration.RunAfterVenture;
|
||||
if (ImGui.Checkbox("Run automatically after AutoRetainer's venture", ref runAfterVenture))
|
||||
{
|
||||
_configuration.RunAfterVenture = runAfterVenture;
|
||||
_pluginInterface.SavePluginConfig(_configuration);
|
||||
}
|
||||
|
||||
var ws = ImGui.GetWindowSize();
|
||||
if (ImGui.BeginChild("Left", new Vector2(Math.Max(10, ws.X / 2), -1), true))
|
||||
{
|
||||
|
@ -6,5 +6,6 @@ namespace ARDiscard;
|
||||
public class Configuration : IPluginConfiguration
|
||||
{
|
||||
public int Version { get; set; } = 1;
|
||||
public List<uint> DiscardingItems = new();
|
||||
public bool RunAfterVenture { get; set; }
|
||||
public List<uint> DiscardingItems { get; set; }= new();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user