WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Problems with availability of artifact data (https://www.wowinterface.com/forums/showthread.php?t=54466)

Rainrider 09-12-16 08:58 AM

Problems with availability of artifact data
 
I am the author of LibArtifactData-1.0. Some issues were reported and it all appears to boil down to artifact data becoming prematurely unavailable. I have a guess what is causing this and would like to know if it is reasonable to assume that.

1. When ARTIFACT_UPDATE is fired, it means that artifact data is available and handlers for that event are queued for execution.
2. If an event handler uses C_ArtifactUI.Clear(), the artifact data becomes unavailable and handlers that are still queued will get nils.

If this is how it works, it means I can't rely on updating the artifact data or getting it at all, right? Is there something I can do about that?

Gnarfoz 11-09-16 05:53 AM

Cross-referencing https://github.com/Rainrider/LibArti...a-1.0/issues/9 here.

GetRelicInfo and GetEquippedArtifactRelicInfo will cause ARTIFACT_UPDATE to fire, which in turn will cause UIParent to load Blizzard_ArtifactUI and ShowUIPanel the ArtifactFrame, apparently at a time, when no artifact is "selected", causing GetTotalPurchasedRanks() to return nil while used in ArtifactFrame's OnShow handler.

...or something like that.
Maybe this topic should be moved to the Legion UI bugs forum for better visibility?


All times are GMT -6. The time now is 05:41 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI