chore: some more context menu debug output

This commit is contained in:
goaaats 2022-01-30 22:29:14 +01:00
parent ccb3f1100a
commit 5b74435050
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 13 additions and 1 deletions

View file

@ -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))

View file

@ -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)
{