mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
Update MarketBoard related packet structs (#1868)
* Update MarketBoardHistory * Update MarketBoardCurrentOfferings * small fix * Update other structs & update widget * Mark obsolete fields as internal
This commit is contained in:
parent
41e3803787
commit
3e950b09fe
11 changed files with 187 additions and 147 deletions
|
|
@ -54,7 +54,7 @@ internal class MarketBoardWidget : IDataWindowWidget
|
|||
public void Load()
|
||||
{
|
||||
this.trackMarketBoard = false;
|
||||
this.trackedEvents = 0;
|
||||
this.trackedEvents = 1;
|
||||
this.marketBoardHistoryQueue.Clear();
|
||||
this.marketBoardPurchaseRequestsQueue.Clear();
|
||||
this.marketBoardPurchasesQueue.Clear();
|
||||
|
|
@ -114,7 +114,7 @@ internal class MarketBoardWidget : IDataWindowWidget
|
|||
{
|
||||
if (tabItem)
|
||||
{
|
||||
ImGuiTable.DrawTable(string.Empty, this.marketBoardCurrentOfferingsQueue, this.DrawMarketBoardCurrentOfferings, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Item ID", "Quantity", "Is HQ?", "Price Per Unit", "Buyer Name", "Retainer Name", "Last Review Time");
|
||||
ImGuiTable.DrawTable(string.Empty, this.marketBoardCurrentOfferingsQueue, this.DrawMarketBoardCurrentOfferings, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Item ID", "Quantity", "Is HQ?", "Price Per Unit", "Retainer Name");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -130,7 +130,7 @@ internal class MarketBoardWidget : IDataWindowWidget
|
|||
{
|
||||
if (tabItem)
|
||||
{
|
||||
ImGuiTable.DrawTable(string.Empty, this.marketBoardPurchaseRequestsQueue, this.DrawMarketBoardPurchaseRequests, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Item ID", "Quantity", "Price Per Unit", "Listing ID", "Retainer ID");
|
||||
ImGuiTable.DrawTable(string.Empty, this.marketBoardPurchaseRequestsQueue, this.DrawMarketBoardPurchaseRequests, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Item ID", "Is HQ?", "Quantity", "Price Per Unit", "Total Tax", "City ID", "Listing ID", "Retainer ID");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -138,7 +138,7 @@ internal class MarketBoardWidget : IDataWindowWidget
|
|||
{
|
||||
if (tabItem)
|
||||
{
|
||||
ImGuiTable.DrawTable(string.Empty, this.marketTaxRatesQueue, this.DrawMarketTaxRates, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Uldah", "Limsa Lominsa", "Gridania", "Ishgard", "Kugane", "Crystarium", "Sharlayan");
|
||||
ImGuiTable.DrawTable(string.Empty, this.marketTaxRatesQueue, this.DrawMarketTaxRates, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Uldah", "Limsa Lominsa", "Gridania", "Ishgard", "Kugane", "Crystarium", "Sharlayan", "Tuliyollal", "Valid Until");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -236,14 +236,8 @@ internal class MarketBoardWidget : IDataWindowWidget
|
|||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.Listing.PricePerUnit.ToString());
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.Listing.PlayerName);
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.Listing.RetainerName);
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.Listing.LastReviewTime.ToString(CultureInfo.InvariantCulture));
|
||||
}
|
||||
|
||||
private void DrawMarketBoardPurchases(IMarketBoardPurchase data)
|
||||
|
|
@ -260,12 +254,21 @@ internal class MarketBoardWidget : IDataWindowWidget
|
|||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.CatalogId.ToString());
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.IsHq.ToString());
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.ItemQuantity.ToString());
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.PricePerUnit.ToString());
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.TotalTax.ToString());
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.RetainerCityId.ToString());
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.ListingId.ToString());
|
||||
|
||||
|
|
@ -295,5 +298,11 @@ internal class MarketBoardWidget : IDataWindowWidget
|
|||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.SharlayanTax.ToString());
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.TuliyollalTax.ToString());
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(data.ValidUntil.ToString(CultureInfo.InvariantCulture));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue