12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

916 Part IV ■ <strong>Reference</strong>SetCVarSets the value <strong>of</strong> a configuration variable.SetCVar(“cvar“, value [, “raiseEvent“])Arguments:cvar—Name <strong>of</strong> the CVar to set (string)value—New value <strong>for</strong> the CVar (any)raiseEvent (optional)—If true, causes the CVAR_UPDATE event to fire (string)SetChannelOwnerGives channel ownership to another character.SetChannelOwner(“channel“, “fullname“)Has no effect unless the player is the owner <strong>of</strong> the given channel.Arguments:channel—Name <strong>of</strong> the channel (string)fullname—Name <strong>of</strong> the character to make the new owner (string)Example:-- Give “Cladhaire“ ownership in the channel “monkeys“SetChannelOwner(“monkeys“, “Cladhaire“)SetChannelPasswordSets a password on a custom chat channel.SetChannelPassword(“channel“, “password“)Arguments:channel—Name <strong>of</strong> the channel (string)password—Password to set <strong>for</strong> the channel (string)SetChatWindowAlphaSaves a chat window’s background opacity setting.SetChatWindowAlpha(index, alpha)Used by the default UI’s function FCF_SetWindowAlpha() which changes theopacity <strong>of</strong> a displayed FloatingChatFrame.Arguments:index—Index <strong>of</strong> a chat frame (between 1 <strong>and</strong> NUM_CHAT_WINDOWS)(number)alpha—Alpha value (opacity) <strong>of</strong> the chat window background (0 = fully transparent,1 = fully opaque) (number)SetChatWindowColorSaves a chat window’s background color setting.SetChatWindowColor(index, r, g, b)Used by the default UI’s function FCF_SetWindowColor() which changes thecolors <strong>of</strong> a displayed FloatingChatFrame.Arguments:index—Index <strong>of</strong> a chat frame (between 1 <strong>and</strong> NUM_CHAT_WINDOWS)(number)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!