True if the specified addon is load-on-demand.
loadDemand = IsAddOnLoadOnDemand(index or name)
Arguments
- index
- index - The index from 1 to GetNumAddOns(). Note that you cannot query Blizzard addons by index.
- name
- string - The name of the addon (as in toc/folder filename), case insensitive.
Returns
- loadDemand
- boolean - True if the specified addon is loaded on demand.
Example
Loads every LoD addon.
for i = 1, GetNumAddOns() do if IsAddOnLoadOnDemand(i) then LoadAddOn(i) end end
|