mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
chore: some more context menu debug output
This commit is contained in:
parent
ccb3f1100a
commit
5b74435050
2 changed files with 13 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ using Dalamud.Memory;
|
|||
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
||||
using FFXIVClientStructs.FFXIV.Component.GUI;
|
||||
using Serilog;
|
||||
|
||||
using ValueType = FFXIVClientStructs.FFXIV.Component.GUI.ValueType;
|
||||
|
||||
|
|
@ -277,6 +278,8 @@ namespace Dalamud.Game.Gui.ContextMenus
|
|||
{
|
||||
var parentAddonName = this.GetParentAddonName(&addonContextMenu->AtkUnitBase);
|
||||
|
||||
Log.Warning($"AgentContextInterface at: {new IntPtr(agentContextInterface):X}");
|
||||
|
||||
InventoryItemContext? inventoryItemContext = null;
|
||||
GameObjectContext? gameObjectContext = null;
|
||||
if (IsInventoryContext(agentContextInterface))
|
||||
|
|
|
|||
|
|
@ -149,7 +149,16 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
|||
|
||||
private void ContextMenuOnContextMenuOpened(ContextMenuOpenedArgs args)
|
||||
{
|
||||
Log.Information("Got context menu with parent addon: {ParentAddonName}", args.ParentAddonName);
|
||||
Log.Information("Got context menu with parent addon: {ParentAddonName}, title:{Title}, itemcnt:{ItemCount}", args.ParentAddonName, args.Title, args.Items.Count);
|
||||
if (args.GameObjectContext != null)
|
||||
{
|
||||
Log.Information(" => GameObject:{GameObjectName} world:{World} cid:{Cid} id:{Id}", args.GameObjectContext.Name, args.GameObjectContext.WorldId, args.GameObjectContext.ContentId, args.GameObjectContext.Id);
|
||||
}
|
||||
|
||||
if (args.InventoryItemContext != null)
|
||||
{
|
||||
Log.Information(" => Inventory:{ItemId} hq:{Hq} count:{Count}", args.InventoryItemContext.Id, args.InventoryItemContext.IsHighQuality, args.InventoryItemContext.Count);
|
||||
}
|
||||
|
||||
switch (this.currentSubStep)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue