forked from liza/Deliveroo
Allow turn in window to be minimized if no turn-in is running
This commit is contained in:
parent
f0eab9cdbe
commit
a5ce0e1aa8
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<Version>3.1</Version>
|
||||
<Version>3.2</Version>
|
||||
<LangVersion>11.0</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
|
@ -50,6 +50,8 @@ internal sealed class TurnInWindow : LImGui.LWindow
|
||||
private readonly GcRewardsCache _gcRewardsCache;
|
||||
private readonly IconCache _iconCache;
|
||||
|
||||
private bool _state;
|
||||
|
||||
public TurnInWindow(DeliverooPlugin plugin, DalamudPluginInterface pluginInterface, Configuration configuration,
|
||||
ICondition condition, IClientState clientState, GcRewardsCache gcRewardsCache, ConfigWindow configWindow,
|
||||
IconCache iconCache)
|
||||
@ -72,7 +74,7 @@ internal sealed class TurnInWindow : LImGui.LWindow
|
||||
MaximumSize = new Vector2(500, 999),
|
||||
};
|
||||
|
||||
Flags = ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoCollapse;
|
||||
State = false;
|
||||
ShowCloseButton = false;
|
||||
AllowClickthrough = false;
|
||||
|
||||
@ -91,7 +93,18 @@ internal sealed class TurnInWindow : LImGui.LWindow
|
||||
});
|
||||
}
|
||||
|
||||
public bool State { get; set; }
|
||||
public bool State
|
||||
{
|
||||
get => _state;
|
||||
set
|
||||
{
|
||||
_state = value;
|
||||
if (value)
|
||||
Flags = ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoCollapse;
|
||||
else
|
||||
Flags = ImGuiWindowFlags.AlwaysAutoResize;
|
||||
}
|
||||
}
|
||||
public decimal Multiplier { private get; set; }
|
||||
public string Error { private get; set; } = string.Empty;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user