Skip to content

Commit

Permalink
Added "Open Crafting Log", "Open Gathering Log", "Open Fishing Log" c…
Browse files Browse the repository at this point in the history
…ontext menu options

Added "Open Crafting Log", "Open Gathering Log", "Open Fishing Log", "Open Log" hotkeys
All sources/uses now have detailed tooltips(with more improvements to come), grouping, click actions, right click actions
The "Acquisition" column can now have which icons it shows configured(uses column to come in a later version)
When uptimes are listed, it will show the soonest uptime along with an icon that shows all uptimes for that item
Added a "Expert Delivery Seal Count" column/filter
Issues with searching for items when adding to craft/curated lists are fixed
  • Loading branch information
Critical-Impact committed Nov 27, 2024
1 parent 0d56bda commit d48d4d6
Show file tree
Hide file tree
Showing 151 changed files with 4,497 additions and 1,838 deletions.
1 change: 1 addition & 0 deletions InventoryTools/Commands/PluginCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using CriticalCommonLib.Extensions;
using CriticalCommonLib.Services;
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Attributes;
using InventoryTools.Mediator;
using InventoryTools.Services.Interfaces;
Expand Down
1 change: 1 addition & 0 deletions InventoryTools/Hotkeys/AirshipsWindowHotkey.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Logic.Settings;
using InventoryTools.Mediator;
using InventoryTools.Ui;
Expand Down
1 change: 1 addition & 0 deletions InventoryTools/Hotkeys/ConfigurationWindowHotkey.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Logic.Settings;
using InventoryTools.Mediator;
using InventoryTools.Ui;
Expand Down
1 change: 1 addition & 0 deletions InventoryTools/Hotkeys/CraftWindowHotkey.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Logic.Settings;
using InventoryTools.Mediator;
using InventoryTools.Ui;
Expand Down
1 change: 1 addition & 0 deletions InventoryTools/Hotkeys/DutiesWindowHotkey.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Logic.Settings;
using InventoryTools.Mediator;
using InventoryTools.Ui;
Expand Down
1 change: 1 addition & 0 deletions InventoryTools/Hotkeys/HotKey.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using CriticalCommonLib.Services.Mediator;

using Dalamud.Game.ClientState.Keys;
using InventoryTools.Extensions;
using Microsoft.Extensions.Logging;
Expand Down
1 change: 1 addition & 0 deletions InventoryTools/Hotkeys/ListsWindowHotkey.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Logic.Settings;
using InventoryTools.Mediator;
using InventoryTools.Ui;
Expand Down
1 change: 1 addition & 0 deletions InventoryTools/Hotkeys/MobWindowHotkey.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Logic.Settings;
using InventoryTools.Mediator;
using InventoryTools.Ui;
Expand Down
1 change: 1 addition & 0 deletions InventoryTools/Hotkeys/MoreInfoWindowHotkey.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using AllaganLib.GameSheets.Sheets;
using CriticalCommonLib;
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Mediator;
using InventoryTools.Ui;
using Microsoft.Extensions.Logging;
Expand Down
35 changes: 35 additions & 0 deletions InventoryTools/Hotkeys/OpenCraftingLogHotkey.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using AllaganLib.GameSheets.Sheets;
using CriticalCommonLib;
using CriticalCommonLib.Services;
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Mediator;
using InventoryTools.Ui;
using Microsoft.Extensions.Logging;
using OtterGui.Classes;

namespace InventoryTools.Hotkeys;

public class OpenCraftingLogHotkey : Hotkey
{
private readonly ItemSheet _itemSheet;
private readonly IGameInterface _gameInterface;

public OpenCraftingLogHotkey(ILogger<OpenCraftingLogHotkey> logger, MediatorService mediatorService, ItemSheet itemSheet, InventoryToolsConfiguration configuration, IGameInterface gameInterface) : base(logger, mediatorService, configuration)
{
_itemSheet = itemSheet;
_gameInterface = gameInterface;
}
public override ModifiableHotkey? ModifiableHotkey => Configuration.OpenCraftingLogHotKey;

public override bool OnHotKey()
{
var id = Service.GameGui.HoveredItem;
if (id >= 2000000 || id == 0) return false;
id %= 500000;
var item = _itemSheet.GetRowOrDefault((uint) id);
if (item == null || !item.CanOpenCraftingLog) return false;
_gameInterface.OpenCraftingLog(item.RowId);
return true;
}
}
35 changes: 35 additions & 0 deletions InventoryTools/Hotkeys/OpenFishingLogHotkey.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using AllaganLib.GameSheets.Sheets;
using CriticalCommonLib;
using CriticalCommonLib.Services;
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Mediator;
using InventoryTools.Ui;
using Microsoft.Extensions.Logging;
using OtterGui.Classes;

namespace InventoryTools.Hotkeys;

public class OpenFishingLogHotkey : Hotkey
{
private readonly ItemSheet _itemSheet;
private readonly IGameInterface _gameInterface;

public OpenFishingLogHotkey(ILogger<OpenFishingLogHotkey> logger, MediatorService mediatorService, ItemSheet itemSheet, InventoryToolsConfiguration configuration, IGameInterface gameInterface) : base(logger, mediatorService, configuration)
{
_itemSheet = itemSheet;
_gameInterface = gameInterface;
}
public override ModifiableHotkey? ModifiableHotkey => Configuration.OpenFishingLogHotKey;

public override bool OnHotKey()
{
var id = Service.GameGui.HoveredItem;
if (id >= 2000000 || id == 0) return false;
id %= 500000;
var item = _itemSheet.GetRowOrDefault((uint) id);
if (item == null || !item.CanOpenFishingLog) return false;
_gameInterface.OpenFishingLog(item.RowId, item.ObtainedSpearFishing);
return true;
}
}
35 changes: 35 additions & 0 deletions InventoryTools/Hotkeys/OpenGatheringLogHotkey.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using AllaganLib.GameSheets.Sheets;
using CriticalCommonLib;
using CriticalCommonLib.Services;
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Mediator;
using InventoryTools.Ui;
using Microsoft.Extensions.Logging;
using OtterGui.Classes;

namespace InventoryTools.Hotkeys;

public class OpenGatheringLogHotkey : Hotkey
{
private readonly ItemSheet _itemSheet;
private readonly IGameInterface _gameInterface;

public OpenGatheringLogHotkey(ILogger<OpenGatheringLogHotkey> logger, MediatorService mediatorService, ItemSheet itemSheet, InventoryToolsConfiguration configuration, IGameInterface gameInterface) : base(logger, mediatorService, configuration)
{
_itemSheet = itemSheet;
_gameInterface = gameInterface;
}
public override ModifiableHotkey? ModifiableHotkey => Configuration.OpenGatheringLogHotKey;

public override bool OnHotKey()
{
var id = Service.GameGui.HoveredItem;
if (id >= 2000000 || id == 0) return false;
id %= 500000;
var item = _itemSheet.GetRowOrDefault((uint) id);
if (item == null || !item.CanOpenGatheringLog) return false;
_gameInterface.OpenGatheringLog(item.RowId);
return true;
}
}
47 changes: 47 additions & 0 deletions InventoryTools/Hotkeys/OpenItemLogHotkey.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
using AllaganLib.GameSheets.Sheets;
using CriticalCommonLib;
using CriticalCommonLib.Services;
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Mediator;
using InventoryTools.Ui;
using Microsoft.Extensions.Logging;
using OtterGui.Classes;

namespace InventoryTools.Hotkeys;

public class OpenItemLogHotkey : Hotkey
{
private readonly ItemSheet _itemSheet;
private readonly IGameInterface _gameInterface;

public OpenItemLogHotkey(ILogger<OpenItemLogHotkey> logger, MediatorService mediatorService, ItemSheet itemSheet, InventoryToolsConfiguration configuration, IGameInterface gameInterface) : base(logger, mediatorService, configuration)
{
_itemSheet = itemSheet;
_gameInterface = gameInterface;
}
public override ModifiableHotkey? ModifiableHotkey => Configuration.OpenItemLogHotKey;

public override bool OnHotKey()
{
var id = Service.GameGui.HoveredItem;
if (id >= 2000000 || id == 0) return false;
id %= 500000;
var item = _itemSheet.GetRowOrDefault((uint) id);
if (item == null || item is { CanOpenGatheringLog: false, CanOpenFishingLog: false, CanOpenCraftingLog: false }) return false;
if (item.CanOpenGatheringLog)
{
_gameInterface.OpenGatheringLog(item.RowId);
}
else if (item.CanOpenFishingLog)
{
_gameInterface.OpenFishingLog(item.RowId, item.ObtainedSpearFishing);
}
else if (item.CanOpenCraftingLog)
{
_gameInterface.OpenCraftingLog(item.RowId);
}

return true;
}
}
1 change: 1 addition & 0 deletions InventoryTools/Hotkeys/RetainerTasksWindowHotkey.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Logic.Settings;
using InventoryTools.Mediator;
using InventoryTools.Ui;
Expand Down
1 change: 1 addition & 0 deletions InventoryTools/Hotkeys/SubmarinesWindowHotkey.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CriticalCommonLib.Services.Mediator;

using InventoryTools.Logic.Settings;
using InventoryTools.Mediator;
using InventoryTools.Ui;
Expand Down
2 changes: 1 addition & 1 deletion InventoryTools/InventoryTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ItemGroup>
<PackageReference Include="Autofac" Version="8.0.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="DalaMock.Host" Version="2.1.4" />
<PackageReference Include="DalaMock.Host" Version="2.1.5" />
<PackageReference Include="Humanizer.Core" Version="3.0.0-beta.54" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="7.0.11" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="7.0.11" />
Expand Down
Loading

0 comments on commit d48d4d6

Please sign in to comment.