Show estimated Grade 6 Dark Matter cost

This commit is contained in:
Liza 2023-10-19 09:22:21 +02:00
parent 375546b4ac
commit bcb19355f2
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -3,6 +3,7 @@ using System.Linq;
using System.Numerics;
using Dalamud.Game.Addon.Lifecycle;
using Dalamud.Game.Addon.Lifecycle.AddonArgTypes;
using Dalamud.Game.Text;
using Dalamud.Interface;
using Dalamud.Interface.Colors;
using Dalamud.Interface.Components;
@ -216,7 +217,7 @@ internal sealed class RepairKitWindow : Window, IDisposable
int toPurchase = Math.Min(GetMaxItemsToPurchase(), missingItems);
if (toPurchase > 0)
{
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.DollarSign, "Auto-Buy missing Dark Matter"))
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.DollarSign, $"Auto-Buy missing Dark Matter for {_itemForSale.Price * toPurchase:N0}{SeIconChar.Gil.ToIconString()}"))
{
_purchaseState = new((int)_itemForSale.OwnedItems + toPurchase, (int)_itemForSale.OwnedItems);
_plugin.SaveYesAlready();