WoW:API IsAddOnLoadOnDemand: Difference between revisions

m
Move page script moved page API IsAddOnLoadOnDemand to WoW:API IsAddOnLoadOnDemand without leaving a redirect
No edit summary
m (Move page script moved page API IsAddOnLoadOnDemand to WoW:API IsAddOnLoadOnDemand without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 15: Line 15:


== Example ==
== Example ==
:This asks whether the addon, "AddonName" is Load on Demand, then changes the variable "addonLoadOnDemand" to correspond the answer.
:Load every LoD addon.
  if (IsAddOnLoadOnDemand("AddonName")) then
  for i = 1, GetNumAddOns() do
  addonLoadOnDemand = true;
    if (IsAddOnLoadOnDemand(i)) then
else
        LoadAddOn(i)
  addonLoadOnDemand = false;
    end
  end
  end
Anonymous user