RSS

Воскресенье, 22.12.2024, 17:52
Главная » WoW API » Игровые события »

CVAR_UPDATE

[ править ]
Fires when the value of a configuration variable is updated.
[клоны]
Fires when the value of a configuration variable is updated. Fires regardless of whether the variable's value has changed.

Except that it doesn't fire for all CVars that can be set in preferences, and it doesn't fire when someone changes a CVar outside of preferences unless they specifically give it an argument to fire with. You likely want to hook SetCVar instead.


Signature:
Code
("glStr", "value")

Arguments:
  • glStr - Global string related to the given CVAR (like "ENABLEBGSOUND" for "SoundEnableSoundWhenGameIsInBG" CVAR). (string)
  • value - The updated value assigned to the CVAR. Note: For boolean values this is a string of 0 or 1. (string)

Также смотрите: Игровые события
Ссылки: http://wowprogramming.com/docs/events/CVAR_UPDATE