Compare commits
No commits in common. "master" and "v6.2" have entirely different histories.
@ -1,6 +1,6 @@
|
||||
<Project Sdk="Dalamud.NET.Sdk/9.0.2">
|
||||
<PropertyGroup>
|
||||
<Version>6.3</Version>
|
||||
<Version>6.2</Version>
|
||||
<OutputPath>dist</OutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -54,7 +54,7 @@ public sealed class AutoDiscardPlogon : IDalamudPlugin
|
||||
ArgumentNullException.ThrowIfNull(dataManager);
|
||||
|
||||
_pluginInterface = pluginInterface;
|
||||
_configuration = (Configuration?)_pluginInterface.GetPluginConfig() ?? Configuration.CreateNew();
|
||||
_configuration = (Configuration?)_pluginInterface.GetPluginConfig() ?? new Configuration();
|
||||
MigrateConfiguration(_configuration);
|
||||
_chatGui = chatGui;
|
||||
_clientState = clientState;
|
||||
@ -124,14 +124,6 @@ public sealed class AutoDiscardPlogon : IDalamudPlugin
|
||||
configuration.Version = 2;
|
||||
_pluginInterface.SavePluginConfig(configuration);
|
||||
}
|
||||
|
||||
if (configuration.Version == 2)
|
||||
{
|
||||
if (!configuration.BlacklistedItems.Contains(2820))
|
||||
configuration.BlacklistedItems.Add(2820);
|
||||
configuration.Version = 3;
|
||||
_pluginInterface.SavePluginConfig(configuration);
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckRetainerPostProcess(string retainerName) =>
|
||||
|
@ -5,7 +5,7 @@ namespace ARDiscard;
|
||||
|
||||
internal sealed class Configuration : IPluginConfiguration
|
||||
{
|
||||
public int Version { get; set; } = 3;
|
||||
public int Version { get; set; } = 2;
|
||||
public bool RunAfterVenture { get; set; }
|
||||
public bool RunBeforeLogout { get; set; }
|
||||
public List<uint> DiscardingItems { get; set; } = new();
|
||||
@ -45,12 +45,4 @@ internal sealed class Configuration : IPluginConfiguration
|
||||
public bool GroupByCategory { get; set; } = true;
|
||||
public bool ShowIcons { get; set; } = true;
|
||||
}
|
||||
|
||||
public static Configuration CreateNew()
|
||||
{
|
||||
return new Configuration
|
||||
{
|
||||
BlacklistedItems = [2820]
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -62,14 +62,6 @@ internal sealed class ItemCache
|
||||
cachedItemInfo.CanBeBoughtFromCalamitySalvager = true;
|
||||
}
|
||||
|
||||
foreach (var collectableItem in dataManager.GetExcelSheet<CollectablesShopItem>()!)
|
||||
{
|
||||
if (collectableItem.RowId == 0)
|
||||
continue;
|
||||
|
||||
listManager.AddToInternalWhitelist(collectableItem.Item.Row);
|
||||
}
|
||||
|
||||
// only look at msq + regional side quests
|
||||
foreach (var quest in dataManager.GetExcelSheet<Quest>()!.Where(x => x.JournalGenre.Value?.JournalCategory.Value?.JournalSection.Row is 0 or 1 or 3))
|
||||
{
|
||||
|
@ -11,6 +11,8 @@ internal sealed class ListManager : IListManager
|
||||
/// </summary>
|
||||
private ISet<uint> _blacklistedItems = new List<uint>
|
||||
{
|
||||
2820, // red onion helm
|
||||
|
||||
16039, // ala mhigan earrings
|
||||
24589, // aetheryte earrings
|
||||
33648, // menphina's earrings
|
||||
|
@ -123,12 +123,14 @@ internal sealed class DiscardWindow : LWindow
|
||||
{
|
||||
if (_configuration.Preview.ShowIcons)
|
||||
{
|
||||
using IDalamudTextureWrap? icon = _iconCache.GetIcon(displayedItem.IconId);
|
||||
if (icon != null)
|
||||
ISharedImmediateTexture icon = _iconCache.GetIcon(displayedItem.IconId);
|
||||
if (icon.TryGetWrap(out IDalamudTextureWrap? wrap, out _))
|
||||
{
|
||||
ImGui.Image(icon.ImGuiHandle, new Vector2(23, 23));
|
||||
ImGui.Image(wrap.ImGuiHandle, new Vector2(23, 23));
|
||||
ImGui.SameLine();
|
||||
ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 3);
|
||||
|
||||
wrap.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 1c8745ef2757585d2683b4a83c44c8db81ff8955
|
||||
Subproject commit a63c8e7154e272374ffa03d5c801736d4229e38a
|
2
ECommons
2
ECommons
@ -1 +1 @@
|
||||
Subproject commit 07c07e09101e0c8a5f770dbea2ca6eafea5ec705
|
||||
Subproject commit 38080f2a3733aa19b6928f4d2984fac7b9a7fab7
|
2
LLib
2
LLib
@ -1 +1 @@
|
||||
Subproject commit fde09c705b648f03c287814191a554f0a4b92cc4
|
||||
Subproject commit 7027d291efbbff6a55944dd521d3907210ddecbe
|
Loading…
Reference in New Issue
Block a user