Wowpedia
Advertisement
Wowpedia
240,483
pages

Returns the integer value associated with a widget.

id = Frame:GetID()

Returns

id 
number - the value previously set using Frame:SetID(number) or <Frame id="number">; defaults to 0.

Details

  • Commonly used to distinguish between many similar widgets displaying different kinds of the same thing in a list, particularly when the widgets might be constructed in a different order than they appear.
  • For example, ContainerFrame1 is the bag frame nearest the bottom-right corner of the screen. However, its ID changes to indicate which bag it represents.
Advertisement