RSS

Суббота, 02.11.2024, 03:21
Главная » WoW API » API Виджеты » Фрейм »

ScrollingMessageFrame:UnregisterEvent("event")

[ править ]
Unregisters the frame for an event.
[клоны]
Unregisters the frame for an event. Once unregistered, the frame's OnEvent script handler will not be called for that event.

Unregistering from notifications for an event can be useful for improving addon performance at times when it's not necessary to process the event. For example, a frame which monitors target health does not need to receive the UNIT_HEALTH event while the player has no target. An addon that sorts the contents of the player's bags can register for the BAG_UPDATE event to keep track of when items are picked up, but unregister from the event while it performs its sorting.


Signature:
Code
Frame:UnregisterEvent("event")

Arguments:
  • event - Name of an event (string)

Также смотрите: Фрейм
Ссылки: http://wowprogramming.com/docs/widgets/Frame/UnregisterEvent