WoW:API IsAddOnLoadOnDemand: Difference between revisions

m
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