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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 27 ■ API <strong>Reference</strong> 917r—Red component <strong>of</strong> the background color (0.0 - 1.0) (number)g—Green component <strong>of</strong> the background color (0.0 - 1.0) (number)b—Blue component <strong>of</strong> the background color (0.0 - 1.0) (number)SetChatWindowDockedSaves whether a chat window should be docked with the main chat window.SetChatWindowDocked(index, docked)Used by the default UI’s functions FCF_DockFrame() <strong>and</strong>FCF_UnDockFrame() which manage the positioning <strong>of</strong> FloatingChatFrames.Arguments:index—Index <strong>of</strong> a chat frame (between 1 <strong>and</strong> NUM_CHAT_WINDOWS)(number)docked—True if the window should be docked with the main chat window;otherwise false (boolean)SetChatWindowLockedSaves whether a chat window is locked.SetChatWindowLocked(index, locked)Used by the default UI’s functions FCF_OpenNewWindow() <strong>and</strong>FCF_SetLocked() which manage the behavior <strong>of</strong> a FloatingChatFrame.Arguments:index—Index <strong>of</strong> a chat frame (between 1 <strong>and</strong> NUM_CHAT_WINDOWS)(number)locked—True if the frame should be locked; otherwise false (boolean)SetChatWindowNameSaves a chat window’s display name setting.SetChatWindowName(index, “name“)Used by the default UI’s function FCF_SetWindowName() which also h<strong>and</strong>lessetting the name displayed <strong>for</strong> a FloatingChatFrame.Arguments:index—Index <strong>of</strong> a chat frame (between 1 <strong>and</strong> NUM_CHAT_WINDOWS)(number)name—Name to be displayed <strong>for</strong> the chat window (string)SetChatWindowShownSaves whether a chat window should be shown.SetChatWindowShown(index, shown)Used by the default UI’s function FCF_OpenNewWindow() which initializes adisplayed FloatingChatFrame.Arguments:index—Index <strong>of</strong> a chat frame (between 1 <strong>and</strong> NUM_CHAT_WINDOWS)(number)shown—True if the window should be shown, false otherwise (boolean)SetChatWindowSizeSaves a chat window’s font size setting.SetChatWindowSize(index, size)

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

Saved successfully!

Ooh no, something went wrong!