WoW API: SetCurrencyUnused

From AddOn Studio
Revision as of 01:40, 8 November 2009 by WoWWiki>Starlightblunder (Created page with '{{wowapi}} Marks/unmarks a currency as unused. SetCurrencyUnused(id, unused) == Arguments == ; id : Number - Index of the currency in the currency list to alter unused status o…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < SetCurrencyUnused

Marks/unmarks a currency as unused.

SetCurrencyUnused(id, unused)

Arguments

id
Number - Index of the currency in the currency list to alter unused status of.
unused
Number - 1 to mark the currency as unused; 0 to mark the currency as used.

Notes

  • When a currency is marked as unused, it is is placed under the "Unused" header in the currency list; this is always the last header in the list. This alters the currency's index in the currency list.
  • The isUnused return value of GetCurrencyListInfo can be used to get the current state.