wowpedia
Main Menu


Returns info for a chat window.

name, fontSize, r, g, b, alpha, shown, locked, docked, uninteractable = GetChatWindowInfo(frameIndex)

Parameters

Arguments

(frameIndex)
frameIndex
number - The index of the chat window to get information for (starts at 1).

Returns

name, fontSize, r, g, b, alpha, shown, locked, docked, uninteractable
name
string - The name of the chat window, or an empty string for its default name.
fontSize
number - The font size for the window.
r
number - The red component of the window's background color (0.0 - 1.0);
g
number - The green component of the window's background color (0.0 - 1.0);
b
number - The blue component of the window's background color (0.0 - 1.0);
alpha
number - The alpha level (opacity) of the window background (0.0 - 1.0);
shown
number - 1 if the window is shown, 0 if it is hidden.
locked
number - 1 if the window is locked in place, 0 if it is movable.
docked
number - 1 to NUM_CHAT_WINDOWS; Index Order of docked tab EG: General = 1, Combat Log = 2. nil if floating.

Example

local name, fontSize, r, g, b, alpha, shown, locked, docked, uninteractable = GetChatWindowInfo(i);

Details