mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-22 07:47:45 +01:00
feat: basic context menu port
This commit is contained in:
parent
a4d8b9c45b
commit
49d1bb7ee8
20 changed files with 1581 additions and 3 deletions
36
Dalamud/Game/Gui/ContextMenus/InventoryItemContext.cs
Normal file
36
Dalamud/Game/Gui/ContextMenus/InventoryItemContext.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
namespace Dalamud.Game.Gui.ContextMenus
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides inventory item context to a context menu.
|
||||
/// </summary>
|
||||
public class InventoryItemContext
|
||||
{
|
||||
/// <summary>
|
||||
/// The id of the item.
|
||||
/// </summary>
|
||||
public uint Id { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The count of the item in the stack.
|
||||
/// </summary>
|
||||
public uint Count { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the item is high quality.
|
||||
/// </summary>
|
||||
public bool IsHighQuality { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InventoryItemContext"/> class.
|
||||
/// </summary>
|
||||
/// <param name="id">The id of the item.</param>
|
||||
/// <param name="count">The count of the item in the stack.</param>
|
||||
/// <param name="isHighQuality">Whether the item is high quality.</param>
|
||||
public InventoryItemContext(uint id, uint count, bool isHighQuality)
|
||||
{
|
||||
Id = id;
|
||||
Count = count;
|
||||
IsHighQuality = isHighQuality;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue