View Single Post
11/30/14, 10:45 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,013
Thx for the info circonian and merlight.
I'm not trying to change any mail related stuff here.
I just noticed this mail event as I played around with the player inventory.

As you have already informed me about the callback functions for the mail fragment merlight you might help me with this idea too:

I'm searching for a reliable way to see if some of the gui panels (vendor, mail, player trade, bank, guild bank, guild store, player inventory, deconstruction tab at crafting station, improvement tab at crafting station, enchanting station create, enchanting creation destroy, alchemy station, etc.) are shown, and when they are hidden again.

Currently I've registered events like EVENT_CRAFTING_STATION_INTERACT or EVENT_OPEN_STORE and the relating close events to check if the gui panels are opened/closed. In the callback function for these events I've coded something like

if not ZO_SmithingTopLevelImprovementPanelInventory:IsHidden() then
--we are inside the improvement tab at a crafting station
elseif not ZO_SmithingTopLevelDeconstructionPanelInventory:IsHidden() then
--we are inside the deconstruction tab at a crafting station
...
end

to find out what the player is currently doing.

I'd like to find a way to find out where the player is currently working at the gui so I can use this input as a parameter for other functions. For example this would help me to only register the filters with libFilters in FCOItemSaver for the shown gui panel (and unregister the others).
  Reply With Quote