Mikk38024@legacy41558003 (talk | contribs) (Category:Widgets) |
Mikk38024@legacy41558003 (talk | contribs) (Move function arguments outside of link. Matches how arguments with datatype links in them (have to!) look and thus makes more sense to me.) |
||
Line 5: | Line 5: | ||
This list is current as of patch 0.10.2-5302 (11000). -- [[User:Tarog|Tarog]] 16:44, 2 May 2006 (PDT) |
This list is current as of patch 0.10.2-5302 (11000). -- [[User:Tarog|Tarog]] 16:44, 2 May 2006 (PDT) |
||
− | The in |
+ | The in-progress new (0.11) version of this page can be found here, under [[Widget API New]]. |
== Root Widgets == |
== Root Widgets == |
||
Line 13: | Line 13: | ||
(See [[UIOBJECT UIObject|UIObject object information]] for details) |
(See [[UIOBJECT UIObject|UIObject object information]] for details) |
||
− | : [[API UIObject GetObjectType|UIObject:GetObjectType |
+ | : [[API UIObject GetObjectType|UIObject:GetObjectType]]() - Get the type of this object - New in 1.10 |
− | : [[API UIObject IsObjectType|UIObject:IsObjectType("type") |
+ | : [[API UIObject IsObjectType|UIObject:IsObjectType]]("type") - Determine if this object is of the specified type, or a subclass of that type - New in 1.10. |
== UIObject Derivatives == |
== UIObject Derivatives == |
||
Line 21: | Line 21: | ||
This object was introduced in 1.10 to replace virtual FontStrings, it allows for dynamic inheritance of font template changes. 'Font' refers to game objects such as "GameFontNormal", "GameFontHighlightSmall", etc. (See [[UIOBJECT Font|Font object information]] for details) Font:GetFrameType() returns 'Font'. Font has all of the methods from [[#UIObject|UIObject]], plus the following: |
This object was introduced in 1.10 to replace virtual FontStrings, it allows for dynamic inheritance of font template changes. 'Font' refers to game objects such as "GameFontNormal", "GameFontHighlightSmall", etc. (See [[UIOBJECT Font|Font object information]] for details) Font:GetFrameType() returns 'Font'. Font has all of the methods from [[#UIObject|UIObject]], plus the following: |
||
− | : [[API Font CopyFontObject|Font:CopyFontObject(otherFont) |
+ | : [[API Font CopyFontObject|Font:CopyFontObject]](otherFont) - Set this Font's attributes to be a copy of the otherFont font object's. |
− | : [[API Font GetAlpha|Font:GetAlpha |
+ | : [[API Font GetAlpha|Font:GetAlpha]]() - Return this font's alpha setting. |
− | : [[API Font GetFont|Font:GetFont |
+ | : [[API Font GetFont|Font:GetFont]]() - Return the font file, height, and flags for this Font. |
− | : [[API Font GetFontObject|Font:GetFontObject |
+ | : [[API Font GetFontObject|Font:GetFontObject]]() - Return the 'parent' Font object, or nil if none. |
− | : [[API Font GetJustifyH|Font:GetJustifyH |
+ | : [[API Font GetJustifyH|Font:GetJustifyH]]() - Return Font's horizontal justification. |
− | : [[API Font GetJustifyV|Font:GetJustifyV |
+ | : [[API Font GetJustifyV|Font:GetJustifyV]]() - Return Font's vertical justification. |
− | : [[API Font GetName|Font:GetName |
+ | : [[API Font GetName|Font:GetName]]() - Return the name of the Font object. |
− | : [[API Font GetShadowColor|Font:GetShadowColor |
+ | : [[API Font GetShadowColor|Font:GetShadowColor]]() - Returns the color of this Font's shadow (r,g,b,a). |
− | : [[API Font GetShadowOffset|Font:GetShadowOffset |
+ | : [[API Font GetShadowOffset|Font:GetShadowOffset]]() - Returns the Font's shadow offset (x,y). |
− | : [[API Font GetSpacing|Font:GetSpacing |
+ | : [[API Font GetSpacing|Font:GetSpacing]]() - Returns the Font's spacing(). |
− | : [[API Font GetTextColor|Font:GetTextColor |
+ | : [[API Font GetTextColor|Font:GetTextColor]]() - Returns the Font's color (r,g,b,a) |
− | : [[API Font SetAlpha|Font:SetAlpha(alpha) |
+ | : [[API Font SetAlpha|Font:SetAlpha]](alpha) - Set the Font's alpha value. |
− | : [[API Font SetFont|Font:SetFont("path",height |
+ | : [[API Font SetFont|Font:SetFont]]("path", height[, "flags"]) - Sets the font to use, returns 1 if the path was valid, nil otherwise (no change occurs). |
− | : [[API Font SetFontObject|Font:SetFontObject(fontObject) |
+ | : [[API Font SetFontObject|Font:SetFontObject]](fontObject) - Sets the 'parent' Font object. |
− | : [[API Font SetJustifyH|Font:SetJustifyH("justifyH") |
+ | : [[API Font SetJustifyH|Font:SetJustifyH]]("justifyH") - Sets horizontal justification ("LEFT","RIGHT", or "CENTER") |
− | : [[API Font SetJustifyV|Font:SetJustifyV("justifyV") |
+ | : [[API Font SetJustifyV|Font:SetJustifyV]]("justifyV") - Sets vertical justification ("TOP","BOTTOM", or "MIDDLE") |
− | : [[API Font SetShadowColor|Font:SetShadowColor(r,g,b[,a]) |
+ | : [[API Font SetShadowColor|Font:SetShadowColor]](r,g,b[,a]) - Sets the shadow color. |
− | : [[API Font SetShadowOffset|Font:SetShadowOffset(x,y) |
+ | : [[API Font SetShadowOffset|Font:SetShadowOffset]](x,y) - Sets the shadow offset. |
− | : [[API Font SetSpacing|Font:SetSpacing(spacing) |
+ | : [[API Font SetSpacing|Font:SetSpacing]](spacing) - Sets the font spacing. |
− | : [[API Font SetTextColor|Font:SetTextColor(r,g,b[,a]) |
+ | : [[API Font SetTextColor|Font:SetTextColor]](r,g,b[,a]) - Sets the font's color. |
=== LayoutFrame === |
=== LayoutFrame === |
||
Line 46: | Line 46: | ||
(See [[UIOBJECT LayoutFrame|LayoutFrame object information]] for details) LayoutFrame has all of the methods from [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT LayoutFrame|LayoutFrame object information]] for details) LayoutFrame has all of the methods from [[#UIObject|UIObject]], plus the following: |
||
− | : [[API LayoutFrame ClearAllPoints|LayoutFrame:ClearAllPoints |
+ | : [[API LayoutFrame ClearAllPoints|LayoutFrame:ClearAllPoints]]() - Clear all attachment points for this object. |
− | : [[API LayoutFrame GetAlpha|LayoutFrame:GetAlpha |
+ | : [[API LayoutFrame GetAlpha|LayoutFrame:GetAlpha]]() - Get the alpha level of this frame - Moved in 1.10. |
− | : [[API LayoutFrame GetBottom|LayoutFrame:GetBottom |
+ | : [[API LayoutFrame GetBottom|LayoutFrame:GetBottom]]() - Get the y location of the bottom edge of this frame - Moved in 1.10. |
− | : [[API LayoutFrame GetCenter|LayoutFrame:GetCenter |
+ | : [[API LayoutFrame GetCenter|LayoutFrame:GetCenter]]() - Get the coordinates of the center of this frame - Moved in 1.10. |
− | : [[API LayoutFrame GetHeight|LayoutFrame:GetHeight |
+ | : [[API LayoutFrame GetHeight|LayoutFrame:GetHeight]]() - Get the height of this object. |
− | : [[API LayoutFrame GetLeft|LayoutFrame:GetLeft |
+ | : [[API LayoutFrame GetLeft|LayoutFrame:GetLeft]]() - Get the x location of the left edge of this frame - Moved in 1.10. |
− | : [[API LayoutFrame GetName|LayoutFrame:GetName |
+ | : [[API LayoutFrame GetName|LayoutFrame:GetName]]() - Get the name of this object. |
− | : [[API LayoutFrame GetNumPoints|LayoutFrame:GetNumPoints |
+ | : [[API LayoutFrame GetNumPoints|LayoutFrame:GetNumPoints]]() - Get the number of anchor points for this frame - New in 1.10. |
− | : [[API LayoutFrame GetParent|LayoutFrame:GetParent |
+ | : [[API LayoutFrame GetParent|LayoutFrame:GetParent]]() - Get the parent of this frame (The object, not just the name) - Moved in 1.10. |
− | : [[API LayoutFrame GetPoint|LayoutFrame:GetPoint(point) |
+ | : [[API LayoutFrame GetPoint|LayoutFrame:GetPoint]](point) - Get details for an anchor points for this frame (point,relativeTo,relativePoint,xofs,yofs) - New in 1.10. |
− | : [[API LayoutFrame GetRight|LayoutFrame:GetRight |
+ | : [[API LayoutFrame GetRight|LayoutFrame:GetRight]]() - Get the x location of the right edge of this frame - Moved in 1.10. |
− | : [[API LayoutFrame GetTop|LayoutFrame:GetTop |
+ | : [[API LayoutFrame GetTop|LayoutFrame:GetTop]]() - Get the y location of the top edge of this frame - Moved in 1.10. |
− | : [[API LayoutFrame GetWidth|LayoutFrame:GetWidth |
+ | : [[API LayoutFrame GetWidth|LayoutFrame:GetWidth]]() - Get the width of this object. |
− | : [[API LayoutFrame Hide|LayoutFrame:Hide |
+ | : [[API LayoutFrame Hide|LayoutFrame:Hide]]() - Set this object to hidden (it and all of its children will disappear). |
− | : [[API LayoutFrame IsShown|LayoutFrame:IsShown |
+ | : [[API LayoutFrame IsShown|LayoutFrame:IsShown]]() - Determine if this object is shown (would be visible if its parent was visible). |
− | : [[API LayoutFrame IsVisible|LayoutFrame:IsVisible |
+ | : [[API LayoutFrame IsVisible|LayoutFrame:IsVisible]]() - Get whether the object is visible on screen (logically (IsShown() and GetParent():IsVisible())); |
− | : [[API LayoutFrame SetAllPoints|LayoutFrame:SetAllPoints(frame or "frameName") |
+ | : [[API LayoutFrame SetAllPoints|LayoutFrame:SetAllPoints]](frame or "frameName") - Set all anchors to match edges of specified frame - Moved in 1.10. |
− | : [[API LayoutFrame SetAlpha|LayoutFrame:SetAlpha(alpha) |
+ | : [[API LayoutFrame SetAlpha|LayoutFrame:SetAlpha]](alpha) - Set the alpha level of this object (affects children also). |
− | : [[API LayoutFrame SetHeight|LayoutFrame:SetHeight(height) |
+ | : [[API LayoutFrame SetHeight|LayoutFrame:SetHeight]](height) - Set the height of the object. |
− | : [[API LayoutFrame SetParent|LayoutFrame:SetParent(parent or "parentName") |
+ | : [[API LayoutFrame SetParent|LayoutFrame:SetParent]](parent or "parentName") - Set the parent for this frame - Moved in 1.10. |
− | : [[API LayoutFrame SetPoint|LayoutFrame:SetPoint("point","relativeFrame" or relativeObject,"relativePoint" |
+ | : [[API LayoutFrame SetPoint|LayoutFrame:SetPoint]]("point", "relativeFrame" or relativeObject, "relativePoint"[, xOfs, yOfs]) - Set an attachment point of this object - Updated in 1.10. |
− | : [[API LayoutFrame SetWidth|LayoutFrame:SetWidth(width) |
+ | : [[API LayoutFrame SetWidth|LayoutFrame:SetWidth]](width) - Set the width of the object. |
− | : [[API LayoutFrame Show|LayoutFrame:Show |
+ | : [[API LayoutFrame Show|LayoutFrame:Show]]() - Set this object to shown (it will appear if its parent is visible). |
== LayoutFrame Derivatives == |
== LayoutFrame Derivatives == |
||
Line 75: | Line 75: | ||
(See [[UIOBJECT Frame|Frame object information]] for details) Frame:GetFrameType() returns 'Frame'. Frame has all of the methods from [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT Frame|Frame object information]] for details) Frame:GetFrameType() returns 'Frame'. Frame has all of the methods from [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API Frame CreateFontString|Frame:CreateFontString( |
+ | : [[API Frame CreateFontString|Frame:CreateFontString]](["name"[, "layer"]]) - Create and return a new FontString as a child of this Frame. |
− | : [[API Frame CreateTexture|Frame:CreateTexture( |
+ | : [[API Frame CreateTexture|Frame:CreateTexture]](["name"[, "layer"]]) - Create and return a new Texture as a child of this Frame. |
− | : [[API Frame DisableDrawLayer|Frame:DisableDrawLayer("layer") |
+ | : [[API Frame DisableDrawLayer|Frame:DisableDrawLayer]]("layer") - Disable rendering of regions in the specified draw layer. |
− | : [[API Frame EnableDrawLayer|Frame:EnableDrawLayer("layer") |
+ | : [[API Frame EnableDrawLayer|Frame:EnableDrawLayer]]("layer") - Enable rendering of regions in the specified draw layer. |
− | : [[API Frame EnableKeyboard|Frame:EnableKeyboard(enableFlag) |
+ | : [[API Frame EnableKeyboard|Frame:EnableKeyboard]](enableFlag) - Set whether this frame will get keyboard input. |
− | : [[API Frame EnableMouse|Frame:EnableMouse(enableFlag) |
+ | : [[API Frame EnableMouse|Frame:EnableMouse]](enableFlag) - Set whether this frame will get mouse input. |
− | : [[API Frame EnableMouseWheel|Frame:EnableMouseWheel(enableFlag) |
+ | : [[API Frame EnableMouseWheel|Frame:EnableMouseWheel]](enableFlag) - Set whether this frame will get mouse wheel events. |
− | : [[API Frame GetChildren|Frame:GetChildren |
+ | : [[API Frame GetChildren|Frame:GetChildren]]() - Get the children of this frame. |
− | : [[API Frame GetEffectiveScale|Frame:GetEffectiveScale |
+ | : [[API Frame GetEffectiveScale|Frame:GetEffectiveScale]]() - Get the scale factor of this object relative to the root window. |
− | : [[API Frame GetFrameLevel|Frame:GetFrameLevel |
+ | : [[API Frame GetFrameLevel|Frame:GetFrameLevel]]() - Get the level of this frame. |
− | : [[API Frame GetFrameStrata|Frame:GetFrameStrata |
+ | : [[API Frame GetFrameStrata|Frame:GetFrameStrata]]() - Get the strata of this frame. |
− | : [[API Frame GetFrameType|Frame:GetFrameType |
+ | : [[API Frame GetFrameType|Frame:GetFrameType]]() - Get the type of this frame. |
− | : [[API Frame GetID|Frame:GetID |
+ | : [[API Frame GetID|Frame:GetID]]() - Get the ID of this frame. |
− | : [[API Frame GetNumChildren|Frame:GetNumChildren |
+ | : [[API Frame GetNumChildren|Frame:GetNumChildren]]() - Get the number of children this frame has. |
− | : [[API Frame GetNumRegions|Frame:GetNumRegions |
+ | : [[API Frame GetNumRegions|Frame:GetNumRegions]]() - Return the number of Regions that are children of this frame. |
− | : [[API Frame GetRegions|Frame:GetRegions |
+ | : [[API Frame GetRegions|Frame:GetRegions]]() - Return the regions of the frame (multiple return values). |
− | : [[API Frame GetScale|Frame:GetScale |
+ | : [[API Frame GetScale|Frame:GetScale]]() - Get the scale factor of this object relative to its parent. |
− | : [[API Frame GetScript|Frame:GetScript("handler") |
+ | : [[API Frame GetScript|Frame:GetScript]]("handler") - Get the function for one of this frame's handlers. |
− | : [[API Frame HasScript|Frame:HasScript("handler") |
+ | : [[API Frame HasScript|Frame:HasScript]]("handler") - Return true if the frame can be given a handler of the specified type (NOT whether it actually HAS one, use GetScript for that) - Since 1.8. |
− | : [[API Frame IsFrameType|Frame:IsFrameType("type") |
+ | : [[API Frame IsFrameType|Frame:IsFrameType]]("type") - Determine if this frame is of the specified type, or a subclass of that type. |
− | : [[API Frame IsMovable|Frame:IsMovable |
+ | : [[API Frame IsMovable|Frame:IsMovable]]() - Determine if the frame can be moved. |
− | : [[API Frame IsResizable|Frame:IsResizable |
+ | : [[API Frame IsResizable|Frame:IsResizable]]() - Determine if the frame can be resized. |
− | : [[API Frame IsToplevel|Frame:IsToplevel |
+ | : [[API Frame IsToplevel|Frame:IsToplevel]]() - Determine if the frame is Toplevel. |
− | : [[API Frame IsUserPlaced|Frame:IsUserPlaced |
+ | : [[API Frame IsUserPlaced|Frame:IsUserPlaced]]() - Determine if this frame has been relocated by the user. |
− | : [[API Frame Lower|Frame:Lower |
+ | : [[API Frame Lower|Frame:Lower]]() - Lower this frame behind other frames. |
− | : [[API Frame Raise|Frame:Raise |
+ | : [[API Frame Raise|Frame:Raise]]() - Raise this frame above other frames. |
− | : [[API Frame RegisterEvent|Frame:RegisterEvent("event") |
+ | : [[API Frame RegisterEvent|Frame:RegisterEvent]]("event") - Indicate that this frame should be notified when event occurs. |
− | : [[API Frame RegisterForDrag|Frame:RegisterForDrag("buttonType" |
+ | : [[API Frame RegisterForDrag|Frame:RegisterForDrag]]("buttonType"[, "buttonType"...]]) - Inidicate that this frame should be notified of drag events for the specified buttons. |
− | : [[API Frame SetBackdrop|Frame:SetBackdrop( |
+ | : [[API Frame SetBackdrop|Frame:SetBackdrop]]([backdropTable]) - Set the backdrop of the frame according to the specification provided. |
− | : [[API Frame SetBackdropBorderColor|Frame:SetBackdropBorderColor(r,g,b |
+ | : [[API Frame SetBackdropBorderColor|Frame:SetBackdropBorderColor]](r,g,b[,a]) - Set the frame's backdrop's border's color. |
− | : [[API Frame SetBackdropColor|Frame:SetBackdropColor(r,g,b |
+ | : [[API Frame SetBackdropColor|Frame:SetBackdropColor]](r,g,b[,a]) - Set the frame's backdrop color. |
− | : [[API Frame SetFrameLevel|Frame:SetFrameLevel(level) |
+ | : [[API Frame SetFrameLevel|Frame:SetFrameLevel]](level) - Set the level of this frame (determines which of overlapping frames shows on top). |
− | : [[API Frame SetFrameStrata|Frame:SetFrameStrata("strata") |
+ | : [[API Frame SetFrameStrata|Frame:SetFrameStrata]]("strata") - Set the strata of this frame. |
− | : [[API Frame SetID|Frame:SetID(id) |
+ | : [[API Frame SetID|Frame:SetID]](id) - Set the ID of this frame. |
− | : [[API Frame SetMaxResize|Frame:SetMaxResize(maxWidth,maxHeight) |
+ | : [[API Frame SetMaxResize|Frame:SetMaxResize]](maxWidth, maxHeight) - Set the maximum dimensions this frame can be resized to. |
− | : [[API Frame SetMinResize|Frame:SetMinResize(minWidth,minHeight) |
+ | : [[API Frame SetMinResize|Frame:SetMinResize]](minWidth, minHeight) - Set the minimum dimensions this frame can be resized to. |
− | : [[API Frame SetMovable|Frame:SetMovable(isMovable) |
+ | : [[API Frame SetMovable|Frame:SetMovable]](isMovable) - Set whether the frame can be moved. |
− | : [[API Frame SetResizable|Frame:SetResizable(isResizable) |
+ | : [[API Frame SetResizable|Frame:SetResizable]](isResizable) - Set whether the frame can be resized. |
− | : [[API Frame SetScale|Frame:SetScale(scale) |
+ | : [[API Frame SetScale|Frame:SetScale]](scale) - Set the scale factor of this frame relative to its parent. |
− | : [[API Frame SetScript|Frame:SetScript("handler",function) |
+ | : [[API Frame SetScript|Frame:SetScript]]("handler", function) - Set the function to use for a handler on this frame. |
− | : [[APE Frame SetToplevel|Frame:SetToplevel(isToplevel) |
+ | : [[APE Frame SetToplevel|Frame:SetToplevel]](isToplevel) - Set whether the frame is Toplevel. |
− | : [[API Frame SetUserPlaced|Frame:SetUserPlaced(isUserPlaced) |
+ | : [[API Frame SetUserPlaced|Frame:SetUserPlaced]](isUserPlaced) - Set whether the frame has been relocated by the user (and will thus be saved in the layout cache). |
− | : [[API Frame StartMoving|Frame:StartMoving |
+ | : [[API Frame StartMoving|Frame:StartMoving]]() - Start moving this frame. |
− | : [[API Frame StartSizing|Frame:StartSizing("point") |
+ | : [[API Frame StartSizing|Frame:StartSizing]]("point") - Start sizing this frame using the specified anchor point. |
− | : [[API Frame StopMovingOrSizing|Frame:StopMovingOrSizing |
+ | : [[API Frame StopMovingOrSizing|Frame:StopMovingOrSizing]]() - Stop moving and/or sizing this frame. |
− | : [[API Frame UnregisterAllEvents|Frame:UnregisterAllEvents |
+ | : [[API Frame UnregisterAllEvents|Frame:UnregisterAllEvents]]() - Indicate that this frame should no longer be notified when any events occur. |
− | : [[API Frame UnregisterEvent|Frame:UnregisterEvent("event") |
+ | : [[API Frame UnregisterEvent|Frame:UnregisterEvent]]("event") - Indicate that this frame should no longer be notified when event occurs. |
=== Region === |
=== Region === |
||
Line 127: | Line 127: | ||
(See [[UIOBJECT Region|Region object information]] for details) Region has all of the methods from [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT Region|Region object information]] for details) Region has all of the methods from [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API Region GetDrawLayer|Region:GetDrawLayer |
+ | : [[API Region GetDrawLayer|Region:GetDrawLayer]]() - Returns the draw layer for the Region - New in 1.10. |
− | : [[API Region SetDrawLayer|Region:SetDrawLayer("layer") |
+ | : [[API Region SetDrawLayer|Region:SetDrawLayer]]("layer") - Sets the draw layer for the Region - New in 1.10. |
== Frame Derivatives == |
== Frame Derivatives == |
||
Line 135: | Line 135: | ||
(See [[UIOBJECT Button|Button object information]] for details) Button:GetFrameType() returns 'Button'. Button has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT Button|Button object information]] for details) Button:GetFrameType() returns 'Button'. Button has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API Button Click|Button:Click |
+ | : [[API Button Click|Button:Click]]() - Execute the click action of the button. |
− | : [[API Button Disable|Button:Disable |
+ | : [[API Button Disable|Button:Disable]]() - Disable the Button so that it cannot be clicked. |
− | : [[API Button Enable|Button:Enable |
+ | : [[API Button Enable|Button:Enable]]() - Enable to the Button so that it may be clicked. |
− | : [[API Button GetButtonState|Button:GetButtonState |
+ | : [[API Button GetButtonState|Button:GetButtonState]]() - Return the current state ("PUSHED","NORMAL") of the Button. |
− | : [[API Button GetDisabledFontObject|Button:GetDisabledFontObject |
+ | : [[API Button GetDisabledFontObject|Button:GetDisabledFontObject]]() - Return the font object for the Button when disabled - New in 1.10. |
− | : [[API Button GetFont|Button:GetFont |
+ | : [[API Button GetFont|Button:GetFont]]() - Returns the font, size, and flags currently used for display on the Button. |
− | : [[API Button GetHighlightFontObject|Button:GetHighlightFontObject |
+ | : [[API Button GetHighlightFontObject|Button:GetHighlightFontObject]]() - Return the font object for the Button when highlighted - New in 1.10. |
− | : [[API Button GetText|Button:GetText |
+ | : [[API Button GetText|Button:GetText]]() - Get the text label for the Button. |
− | : [[API Button GetTextFontObject|Button:GetTextFontObject |
+ | : [[API Button GetTextFontObject|Button:GetTextFontObject]]() - Return the font object for the Button's normal text - New in 1.10. |
− | : [[API Button GetTextHeight|Button:GetTextHeight |
+ | : [[API Button GetTextHeight|Button:GetTextHeight]]() - Get the height of the Button's text. |
− | : [[API Button GetTextWidth|Button:GetTextWidth |
+ | : [[API Button GetTextWidth|Button:GetTextWidth]]() - Get the width of the Button's text. |
− | : [[API Button IsEnabled|Button:IsEnabled |
+ | : [[API Button IsEnabled|Button:IsEnabled]]() - Determine whether the Button is enabled. |
− | : [[API Button LockHighlight|Button:LockHighlight |
+ | : [[API Button LockHighlight|Button:LockHighlight]]() - Set the Button to always be drawn highlighted. |
− | : [[API Button RegisterForClicks|Button:RegisterForClicks("clickType" |
+ | : [[API Button RegisterForClicks|Button:RegisterForClicks]]("clickType"[, "clickType"...]) - Control which mouse button up/down events get passed to the <OnClick> event handler. |
− | : [[API Button SetButtonState|Button:SetButtonState("state" |
+ | : [[API Button SetButtonState|Button:SetButtonState]]("state"[, lock]) - Set the state of the Button ("PUSHED", "NORMAL") and whether it is locked. |
− | : [[API Button SetDisabledFontObject|Button:SetDisabledFontObject( |
+ | : [[API Button SetDisabledFontObject|Button:SetDisabledFontObject]]([font]) - Set the font object for settings when disabled - New in 1.10. |
− | : [[API Button SetDisabledTextColor|Button:SetDisabledTextColor(r,g,b |
+ | : [[API Button SetDisabledTextColor|Button:SetDisabledTextColor]](r,g,b[,a]) - Set the disabled text color for the Button. |
− | : [[API Button SetDisabledTexture|Button:SetDisabledTexture(texture or "texturePath") |
+ | : [[API Button SetDisabledTexture|Button:SetDisabledTexture]](texture or "texturePath") - Set the disabled texture for the Button - Updated in 1.10. |
− | : [[API Button SetFont|Button:SetFont("font",size |
+ | : [[API Button SetFont|Button:SetFont]]("font", size[, "flags"]) - Set the font to use for display. |
− | : [[API Button SetHighlightFontObject|Button:SetHighlightFontObject( |
+ | : [[API Button SetHighlightFontObject|Button:SetHighlightFontObject]]([font]) - Set the font object for settings when highlighted - New in 1.10. |
− | : [[API Button SetHighlightTextColor|Button:SetHighlightTextColor(r,g,b |
+ | : [[API Button SetHighlightTextColor|Button:SetHighlightTextColor]](r,g,b[,a]) - Set the highlight text color for the Button. |
− | : [[API Button SetHighlightTexture|Button:SetHighlightTexture(texture or "texturePath") |
+ | : [[API Button SetHighlightTexture|Button:SetHighlightTexture]](texture or "texturePath") - Set the highlight texture for the Button - Updated in 1.10. |
− | : [[API Button SetNormalTexture|Button:SetNormalTexture(texture or "texturePath") |
+ | : [[API Button SetNormalTexture|Button:SetNormalTexture]](texture or "texturePath") - Set the normal texture for the Button - Updated in 1.10. |
− | : [[API Button SetPushedTexture|Button:SetPushedTexture(texture or "texturePath") |
+ | : [[API Button SetPushedTexture|Button:SetPushedTexture]](texture or "texturePath") - Set the pushed texture for the Button - Updated in 1.10. |
− | : [[API Button SetText|Button:SetText("text") |
+ | : [[API Button SetText|Button:SetText]]("text") - Set the text label for the Button. |
− | : [[API Button SetTextColor|Button:SetTextColor(r,g,b) |
+ | : [[API Button SetTextColor|Button:SetTextColor]](r,g,b) - Set the text color for the Button. |
− | : [[API Button SetTextFontObject|Button:SetTextFontObject( |
+ | : [[API Button SetTextFontObject|Button:SetTextFontObject]]([font]) - Set the font object from which to get settings for this Button's normal state - New in 1.10. |
− | : [[API Button UnlockHighlight|Button:UnlockHighlight |
+ | : [[API Button UnlockHighlight|Button:UnlockHighlight]]() - Set the Button to not always be drawn highlighted. |
=== ColorSelect === |
=== ColorSelect === |
||
(See [[UIOBJECT ColorSelect|ColorSelect object information]] for details) ColorSelect:GetFrameType() returns 'ColorSelect'. ColorSelect has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT ColorSelect|ColorSelect object information]] for details) ColorSelect:GetFrameType() returns 'ColorSelect'. ColorSelect has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API ColorSelect GetColorHSV|ColorSelect:GetColorHSV |
+ | : [[API ColorSelect GetColorHSV|ColorSelect:GetColorHSV]]() - Get the HSV values of the selected color. |
− | : [[API ColorSelect GetColorRGB|ColorSelect:GetColorRGB |
+ | : [[API ColorSelect GetColorRGB|ColorSelect:GetColorRGB]]() - Get the RGB values of the selected color. |
− | : [[API ColorSelect SetColorHSV|ColorSelect:SetColorHSV(h,s,v) |
+ | : [[API ColorSelect SetColorHSV|ColorSelect:SetColorHSV]](h,s,v) - Set to a specific HSV color. |
− | : [[API ColorSelect SetColorRGB|ColorSelect:SetColorRGB(r,g,b) |
+ | : [[API ColorSelect SetColorRGB|ColorSelect:SetColorRGB]](r,g,b) - Set to a specific RGB color. |
=== EditBox === |
=== EditBox === |
||
(See [[UIOBJECT EditBox|EditBox object information]] for details) EditBox:GetFrameType() returns 'EditBox'. EditBox has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT EditBox|EditBox object information]] for details) EditBox:GetFrameType() returns 'EditBox'. EditBox has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API EditBox AddHistoryLine|EditBox:AddHistoryLine("text") |
+ | : [[API EditBox AddHistoryLine|EditBox:AddHistoryLine]]("text") - Add text to the edit history. |
− | : [[API EditBox ClearFocus|EditBox:ClearFocus |
+ | : [[API EditBox ClearFocus|EditBox:ClearFocus]]() |
: [[API EditBox GetAltArrowKeyMode|EditBox:GetAltArrowKeyMode]] |
: [[API EditBox GetAltArrowKeyMode|EditBox:GetAltArrowKeyMode]] |
||
− | : [[API EditBox GetFont|EditBox:GetFont |
+ | : [[API EditBox GetFont|EditBox:GetFont]]() - Returns the font, size, and flags currently used for display. |
: [[API EditBox GetFontObject|EditBox:GetFontObject]] |
: [[API EditBox GetFontObject|EditBox:GetFontObject]] |
||
− | : [[API EditBox GetHistoryLines|EditBox:GetHistoryLines |
+ | : [[API EditBox GetHistoryLines|EditBox:GetHistoryLines]]() - Get the number of history lines for this edit box |
− | : [[API EditBox GetInputLanguage|EditBox:GetInputLanguage |
+ | : [[API EditBox GetInputLanguage|EditBox:GetInputLanguage]]() - Get the input language (locale based not in-game) |
: [[API EditBox GetJustifyH|EditBox:GetJustifyH]] |
: [[API EditBox GetJustifyH|EditBox:GetJustifyH]] |
||
: [[API EditBox GetJustifyV|EditBox:GetJustifyV]] |
: [[API EditBox GetJustifyV|EditBox:GetJustifyV]] |
||
− | : [[API EditBox GetNumLetters|EditBox:GetNumLetters |
+ | : [[API EditBox GetNumLetters|EditBox:GetNumLetters]]() - Gets the number of letters in the box. |
− | : [[API EditBox GetNumber|EditBox:GetNumber |
+ | : [[API EditBox GetNumber|EditBox:GetNumber]]() |
: [[API EditBox GetShadowColor|EditBox:GetShadowColor]] |
: [[API EditBox GetShadowColor|EditBox:GetShadowColor]] |
||
: [[API EditBox GetShadowOffset|EditBox:GetShadowOffset]] |
: [[API EditBox GetShadowOffset|EditBox:GetShadowOffset]] |
||
: [[API EditBox GetSpacing|EditBox:GetSpacing]] |
: [[API EditBox GetSpacing|EditBox:GetSpacing]] |
||
− | : [[API EditBox GetText|EditBox:GetText |
+ | : [[API EditBox GetText|EditBox:GetText]]() - Get the current text contained in the edit box. |
: [[API EditBox GetTextColor|EditBox:GetTextColor]] |
: [[API EditBox GetTextColor|EditBox:GetTextColor]] |
||
− | : [[API EditBox HighlightText|EditBox:HighlightText( |
+ | : [[API EditBox HighlightText|EditBox:HighlightText]]([startPos, endPos]) - Set the highlight to all or some of the edit box text. |
− | : [[API EditBox Insert|EditBox:Insert("text") |
+ | : [[API EditBox Insert|EditBox:Insert]]("text") - Insert text into the edit box. |
: [[API EditBox SetAltArrowKeyMode|EditBox:SetAltArrowKeyMode]] |
: [[API EditBox SetAltArrowKeyMode|EditBox:SetAltArrowKeyMode]] |
||
− | : [[API EditBox SetFocus|EditBox:SetFocus |
+ | : [[API EditBox SetFocus|EditBox:SetFocus]]() |
− | : [[API EditBox SetFont|EditBox:SetFont("font",size |
+ | : [[API EditBox SetFont|EditBox:SetFont]]("font", size[, "flags"]) - Set the font to use for display. |
: [[API EditBox SetFontObject|EditBox:SetFontObject]] |
: [[API EditBox SetFontObject|EditBox:SetFontObject]] |
||
− | : [[API EditBox SetHistoryLines|EditBox:SetHistoryLines |
+ | : [[API EditBox SetHistoryLines|EditBox:SetHistoryLines]]() - Set the number of history lines to remember. |
: [[API EditBox SetJustifyH|EditBox:SetJustifyH]] |
: [[API EditBox SetJustifyH|EditBox:SetJustifyH]] |
||
: [[API EditBox SetJustifyV|EditBox:SetJustifyV]] |
: [[API EditBox SetJustifyV|EditBox:SetJustifyV]] |
||
− | : [[API EditBox SetMaxBytes|EditBox:SetMaxBytes(maxBytes) |
+ | : [[API EditBox SetMaxBytes|EditBox:SetMaxBytes]](maxBytes) - Set the maximum byte size for entered text. |
− | : [[API EditBox SetMaxLetters|EditBox:SetMaxLetters(maxLetters) |
+ | : [[API EditBox SetMaxLetters|EditBox:SetMaxLetters]](maxLetters) - Set the maximum number of letters for entered text. |
− | : [[API EditBox SetNumber|EditBox:SetNumber(number) |
+ | : [[API EditBox SetNumber|EditBox:SetNumber]](number) |
: [[API EditBox SetShadowColor|EditBox:SetShadowColor]] |
: [[API EditBox SetShadowColor|EditBox:SetShadowColor]] |
||
: [[API EditBox SetShadowOffset|EditBox:SetShadowOffset]] |
: [[API EditBox SetShadowOffset|EditBox:SetShadowOffset]] |
||
: [[API EditBox SetSpacing|EditBox:SetSpacing]] |
: [[API EditBox SetSpacing|EditBox:SetSpacing]] |
||
− | : [[API EditBox SetText|EditBox:SetText("text") |
+ | : [[API EditBox SetText|EditBox:SetText]]("text") - Set the text contained in the edit box. |
− | : [[API EditBox SetTextColor|EditBox:SetTextColor(r,g,b) |
+ | : [[API EditBox SetTextColor|EditBox:SetTextColor]](r,g,b) - Set the color of the text in the edit box. |
− | : [[API EditBox SetTextInsets|EditBox:SetTextInsets(l,r,t,b) |
+ | : [[API EditBox SetTextInsets|EditBox:SetTextInsets]](l,r,t,b) |
− | : [[API EditBox ToggleInputLanguage|EditBox:ToggleInputLanguage |
+ | : [[API EditBox ToggleInputLanguage|EditBox:ToggleInputLanguage]]() |
=== GameTooltip === |
=== GameTooltip === |
||
Line 215: | Line 215: | ||
(See [[UIOBJECT GameTooltip|GameTooltip object information]] for details) GameTooltip:GetFrameType() returns 'GameTooltip'. GameTooltip has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT GameTooltip|GameTooltip object information]] for details) GameTooltip:GetFrameType() returns 'GameTooltip'. GameTooltip has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API GameTooltip AddDoubleLine|GameTooltip:AddDoubleLine(textL,textR,rL,gL,bL,rR,gR,bR) |
+ | : [[API GameTooltip AddDoubleLine|GameTooltip:AddDoubleLine]](textL, textR, rL,gL,bL, rR,gR,bR) |
: [[API GameTooltip AddLine|GameTooltip:AddLine]] |
: [[API GameTooltip AddLine|GameTooltip:AddLine]] |
||
− | : [[API GameTooltip AppendText|GameTooltip:AppendText("text") |
+ | : [[API GameTooltip AppendText|GameTooltip:AppendText]]("text") - Append text to the end of the first line of the tooltip. |
: [[API GameTooltip ClearLines|GameTooltip:ClearLines]] |
: [[API GameTooltip ClearLines|GameTooltip:ClearLines]] |
||
: [[API GameTooltip FadeOut|GameTooltip:FadeOut]] |
: [[API GameTooltip FadeOut|GameTooltip:FadeOut]] |
||
− | : [[API GameTooltip GetAnchorType|GameTooltip:GetAnchorType |
+ | : [[API GameTooltip GetAnchorType|GameTooltip:GetAnchorType]]() - Returns the current anchoring type. |
− | : [[API GameTooltip IsOwned|GameTooltip:IsOwned(frame) |
+ | : [[API GameTooltip IsOwned|GameTooltip:IsOwned]](frame) - Returns true if the tooltip is currently owned by the specified frame - Since 1.8. |
− | : [[API GameTooltip NumLines|GameTooltip:NumLines |
+ | : [[API GameTooltip NumLines|GameTooltip:NumLines]]() - Get the number of lines in the tooltip. |
− | : [[API GameTooltip SetAction|GameTooltip:SetAction(slot) |
+ | : [[API GameTooltip SetAction|GameTooltip:SetAction]](slot) - Shows the tooltip for the specified action button. |
− | : [[API GameTooltip SetAuctionCompareItem|GameTooltip:SetAuctionCompareItem("type",index |
+ | : [[API GameTooltip SetAuctionCompareItem|GameTooltip:SetAuctionCompareItem]]("type", index[, offset]) |
− | : [[API GameTooltip SetAuctionItem|GameTooltip:SetAuctionItem("type",index) |
+ | : [[API GameTooltip SetAuctionItem|GameTooltip:SetAuctionItem]]("type", index) - Shows the tooltip for the specified auction item. |
: [[API GameTooltip SetAuctionSellItem|GameTooltip:SetAuctionSellItem]] |
: [[API GameTooltip SetAuctionSellItem|GameTooltip:SetAuctionSellItem]] |
||
: [[API GameTooltip SetBagItem|GameTooltip:SetBagItem]] |
: [[API GameTooltip SetBagItem|GameTooltip:SetBagItem]] |
||
Line 231: | Line 231: | ||
: [[API GameTooltip SetCraftItem|GameTooltip:SetCraftItem]] |
: [[API GameTooltip SetCraftItem|GameTooltip:SetCraftItem]] |
||
: [[API GameTooltip SetCraftSpell|GameTooltip:SetCraftSpell]] |
: [[API GameTooltip SetCraftSpell|GameTooltip:SetCraftSpell]] |
||
− | : [[API GameTooltip SetHyperlink|GameTooltip:SetHyperlink(link) |
+ | : [[API GameTooltip SetHyperlink|GameTooltip:SetHyperlink]](link) - Shows the tooltip for the specified hyperlink (usually item link). |
− | : [[API GameTooltip SetInboxItem|GameTooltip:SetInboxItem(index) |
+ | : [[API GameTooltip SetInboxItem|GameTooltip:SetInboxItem]](index) - Shows the tooltip for the specified mail inbox item. |
− | : [[API GameTooltip SetInventoryItem|GameTooltip:SetInventoryItem(unit,slot |
+ | : [[API GameTooltip SetInventoryItem|GameTooltip:SetInventoryItem]](unit, slot[, nameOnly]) |
: [[API GameTooltip SetLootItem|GameTooltip:SetLootItem]] |
: [[API GameTooltip SetLootItem|GameTooltip:SetLootItem]] |
||
− | : [[API GameTooltip SetLootRollItem|GameTooltip:SetLootRollItem(id) |
+ | : [[API GameTooltip SetLootRollItem|GameTooltip:SetLootRollItem]](id) - Shows the tooltip for the specified loot roll item. |
− | : [[API GameTooltip SetMerchantCompareItem|GameTooltip:SetMerchantCompareItem("slot" |
+ | : [[API GameTooltip SetMerchantCompareItem|GameTooltip:SetMerchantCompareItem]]("slot"[, offset]) |
: [[API GameTooltip SetMerchantItem|GameTooltip:SetMerchantItem]] |
: [[API GameTooltip SetMerchantItem|GameTooltip:SetMerchantItem]] |
||
− | : [[API GameTooltip SetMinimumWidth|GameTooltip:SetMinimumWidth(width) |
+ | : [[API GameTooltip SetMinimumWidth|GameTooltip:SetMinimumWidth]](width) - (Formerly SetMoneyWidth) |
: [[API GameTooltip SetOwner|GameTooltip:SetOwner]] |
: [[API GameTooltip SetOwner|GameTooltip:SetOwner]] |
||
: [[API GameTooltip SetPadding|GameTooltip:SetPadding]] |
: [[API GameTooltip SetPadding|GameTooltip:SetPadding]] |
||
− | : [[API GameTooltip SetPetAction|GameTooltip:SetPetAction(slot) |
+ | : [[API GameTooltip SetPetAction|GameTooltip:SetPetAction]](slot) - Shows the tooltip for the specified pet action. |
− | : [[API GameTooltip SetPlayerBuff|GameTooltip:SetPlayerBuff(buffIndex) |
+ | : [[API GameTooltip SetPlayerBuff|GameTooltip:SetPlayerBuff]](buffIndex) - Direct the tooltip to show information about a player's buff. |
: [[API GameTooltip SetQuestItem|GameTooltip:SetQuestItem]] |
: [[API GameTooltip SetQuestItem|GameTooltip:SetQuestItem]] |
||
: [[API GameTooltip SetQuestLogItem|GameTooltip:SetQuestLogItem]] |
: [[API GameTooltip SetQuestLogItem|GameTooltip:SetQuestLogItem]] |
||
Line 248: | Line 248: | ||
: [[API GameTooltip SetQuestRewardSpell|GameTooltip:SetQuestRewardSpell]] |
: [[API GameTooltip SetQuestRewardSpell|GameTooltip:SetQuestRewardSpell]] |
||
: [[API GameTooltip SetSendMailItem|GameTooltip:SetSendMailItem]] |
: [[API GameTooltip SetSendMailItem|GameTooltip:SetSendMailItem]] |
||
− | : [[API GameTooltip SetShapeshift|GameTooltip:SetShapeshift(slot) |
+ | : [[API GameTooltip SetShapeshift|GameTooltip:SetShapeshift]](slot) - Shows the tooltip for the specified shapeshift form. |
− | : [[API GameTooltip SetSpell|GameTooltip:SetSpell(spellId,spellbookTabNum) |
+ | : [[API GameTooltip SetSpell|GameTooltip:SetSpell]](spellId, spellbookTabNum) - Shows the tooltip for the specified spell. |
− | : [[API GameTooltip SetTalent|GameTooltip:SetTalent(tabIndex,talentIndex) |
+ | : [[API GameTooltip SetTalent|GameTooltip:SetTalent]](tabIndex, talentIndex) - Shows the tooltip for the specified talent. |
− | : [[API GameTooltip SetText|GameTooltip:SetText("text",r,g,b |
+ | : [[API GameTooltip SetText|GameTooltip:SetText]]("text", r,g,b[,a[, textWrap]]) - Set the text of the tooltip. |
: [[API GameTooltip SetTrackingSpell|GameTooltip:SetTrackingSpell]] |
: [[API GameTooltip SetTrackingSpell|GameTooltip:SetTrackingSpell]] |
||
: [[API GameTooltip SetTradePlayerItem|GameTooltip:SetTradePlayerItem]] |
: [[API GameTooltip SetTradePlayerItem|GameTooltip:SetTradePlayerItem]] |
||
Line 258: | Line 258: | ||
: [[API GameTooltip SetTrainerService|GameTooltip:SetTrainerService]] |
: [[API GameTooltip SetTrainerService|GameTooltip:SetTrainerService]] |
||
: [[API GameTooltip SetUnit|GameTooltip:SetUnit]] |
: [[API GameTooltip SetUnit|GameTooltip:SetUnit]] |
||
− | : [[API GameTooltip SetUnitBuff|GameTooltip:SetUnitBuff("unit",buffIndex |
+ | : [[API GameTooltip SetUnitBuff|GameTooltip:SetUnitBuff]]("[[API TYPE UnitId|unit]]", buffIndex[, raidFilter]) - Shows the tooltip for a unit's buff. |
− | : [[API GameTooltip SetUnitDebuff|GameTooltip:SetUnitDebuff("unit"buffIndex |
+ | : [[API GameTooltip SetUnitDebuff|GameTooltip:SetUnitDebuff]]("[[API TYPE UnitId|unit]]", buffIndex[, raidFilter]) - Shows the tooltip for a unit's debuff. |
=== MessageFrame === |
=== MessageFrame === |
||
(See [[UIOBJECT MessageFrame|MessageFrame object information]] for details) MessageFrame:GetFrameType() returns 'MessageFrame'. MessageFrame has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT MessageFrame|MessageFrame object information]] for details) MessageFrame:GetFrameType() returns 'MessageFrame'. MessageFrame has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API MessageFrame AddMessage|MessageFrame:AddMessage("text",r,g,b,a,holdTime) |
+ | : [[API MessageFrame AddMessage|MessageFrame:AddMessage]]("text", r,g,b,a, holdTime) - Add a message to the frame which will fade eventually. |
: [[API MessageFrame GetFont|MessageFrame:GetFont]] |
: [[API MessageFrame GetFont|MessageFrame:GetFont]] |
||
: [[API MessageFrame GetFontObject|MessageFrame:GetFontObject]] |
: [[API MessageFrame GetFontObject|MessageFrame:GetFontObject]] |
||
Line 286: | Line 286: | ||
(See [[UIOBJECT Minimap|Minimap object information]] for details) Minimap:GetFrameType() returns 'Minimap'. Minimap has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT Minimap|Minimap object information]] for details) Minimap:GetFrameType() returns 'Minimap'. Minimap has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API Minimap GetPingPosition|Minimap:GetPingPosition |
+ | : [[API Minimap GetPingPosition|Minimap:GetPingPosition]]() - Get the last ping location. |
− | : [[API Minimap GetZoom|Minimap:GetZoom |
+ | : [[API Minimap GetZoom|Minimap:GetZoom]]() - Get the current zoom level. |
− | : [[API Minimap GetZoomLevels|Minimap:GetZoomLevels |
+ | : [[API Minimap GetZoomLevels|Minimap:GetZoomLevels]]() - Get the maximum zoom level. |
− | : [[API Minimap PingLocation|Minimap:PingLocation(x,y) |
+ | : [[API Minimap PingLocation|Minimap:PingLocation]](x,y) - Perform a ping at the specified location. |
: [[API Minimap SetBlipTexture|Minimap:SetBlipTexture]] |
: [[API Minimap SetBlipTexture|Minimap:SetBlipTexture]] |
||
: [[API Minimap SetIconTexture|Minimap:SetIconTexture]] |
: [[API Minimap SetIconTexture|Minimap:SetIconTexture]] |
||
: [[API Minimap SetMaskTexture|Minimap:SetMaskTexture]] |
: [[API Minimap SetMaskTexture|Minimap:SetMaskTexture]] |
||
− | : [[API Minimap SetZoom|Minimap:SetZoom(level) |
+ | : [[API Minimap SetZoom|Minimap:SetZoom]](level) - Set the current zoom level. |
=== Model === |
=== Model === |
||
Line 299: | Line 299: | ||
(See [[UIOBJECT Model|Model object information]] for details) Model:GetFrameType() returns 'Model'. Model has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT Model|Model object information]] for details) Model:GetFrameType() returns 'Model'. Model has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API Model AdvanceTime|Model:AdvanceTime |
+ | : [[API Model AdvanceTime|Model:AdvanceTime]]() |
− | : [[API Model ClearFog|Model:ClearFog |
+ | : [[API Model ClearFog|Model:ClearFog]]() - Removes all fogging effects currently active in rendering. |
− | : [[API Model ClearModel|Model:ClearModel |
+ | : [[API Model ClearModel|Model:ClearModel]]() - Removes all geometry from the Model (i.e. makes it empty) |
− | : [[API Model GetFacing|Model:GetFacing |
+ | : [[API Model GetFacing|Model:GetFacing]]() - Returns the direction the model is facing. |
− | : [[API Model GetModelScale|Model:GetModelScale |
+ | : [[API Model GetModelScale|Model:GetModelScale]]() - Returns the current mesh scaling factor. |
− | : [[API Model GetPosition|Model:GetPosition |
+ | : [[API Model GetPosition|Model:GetPosition]]() - Returns the current position of the mesh as x,y,z |
− | : [[API Model ReplaceIconTexture|Model:ReplaceIconTexture("texture") |
+ | : [[API Model ReplaceIconTexture|Model:ReplaceIconTexture]]("texture") |
− | : [[API Model SetCamera|Model:SetCamera(index) |
+ | : [[API Model SetCamera|Model:SetCamera]](index) - Select a predefined camera. |
− | : [[API Model SetFacing|Model:SetFacing(facing) |
+ | : [[API Model SetFacing|Model:SetFacing]](facing) - Set the direction that the model is facing. |
− | : [[API Model SetFogColor|Model:SetFogColor(r,g,b |
+ | : [[API Model SetFogColor|Model:SetFogColor]](r,g,b[,a]) - Set the fog color and enable fogging. |
− | : [[API Model SetFogFar|Model:SetFogFar(value) |
+ | : [[API Model SetFogFar|Model:SetFogFar]](value) - Set the far-clipping plane distance for fogging. |
− | : [[API Model SetFogNear|Model:SetFogNear(value) |
+ | : [[API Model SetFogNear|Model:SetFogNear]](value) - Set the near-clipping plane distance for fogging. |
− | : [[API Model SetLight|Model:SetLight(enabled |
+ | : [[API Model SetLight|Model:SetLight]](enabled[, omni, dirX,dirY,dirZ, ambIntensity[, ambR,ambG,ambB[, dirIntensity[, dirR,dirG,dirB]]]]) - Place the light source used for rendering |
− | : [[API Model SetModel|Model:SetModel("file") |
+ | : [[API Model SetModel|Model:SetModel]]("file") - Set the mesh that is displayed in the frame. |
− | : [[API Model SetModelScale|Model:SetModelScale(scale) |
+ | : [[API Model SetModelScale|Model:SetModelScale]](scale) - Sets the scale factor for the mesh before rendering. |
− | : [[API Model SetPosition|Model:SetPosition(x,y,z) |
+ | : [[API Model SetPosition|Model:SetPosition]](x,y,z) - Set the position of the mesh inside the frame's coordinate system. |
− | : [[API Model SetSequence|Model:SetSequence(sequence) |
+ | : [[API Model SetSequence|Model:SetSequence]](sequence) - Set the animation to be played. |
− | : [[API Model SetSequenceTime|Model:SetSequenceTime(sequence,time) |
+ | : [[API Model SetSequenceTime|Model:SetSequenceTime]](sequence, time) |
=== MovieFrame === |
=== MovieFrame === |
||
Line 322: | Line 322: | ||
: [[API MovieFrame EnableSubtitles|MovieFrame:EnableSubtitles]] |
: [[API MovieFrame EnableSubtitles|MovieFrame:EnableSubtitles]] |
||
− | : [[API MovieFrame StartMovie|MovieFrame:StartMovie("filename") |
+ | : [[API MovieFrame StartMovie|MovieFrame:StartMovie]]("filename") |
: [[API MovieFrame StopMovie|MovieFrame:StopMovie]] |
: [[API MovieFrame StopMovie|MovieFrame:StopMovie]] |
||
Line 328: | Line 328: | ||
(See [[UIOBJECT ScrollFrame|ScrollFrame object information]] for details) ScrollFrame:GetFrameType() returns 'ScrollFrame'. ScrollFrame has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT ScrollFrame|ScrollFrame object information]] for details) ScrollFrame:GetFrameType() returns 'ScrollFrame'. ScrollFrame has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API ScrollFrame GetHorizontalScroll|ScrollFrame:GetHorizontalScroll |
+ | : [[API ScrollFrame GetHorizontalScroll|ScrollFrame:GetHorizontalScroll]]() |
− | : [[API ScrollFrame GetHorizontalScrollRange|ScrollFrame:GetHorizontalScrollRange |
+ | : [[API ScrollFrame GetHorizontalScrollRange|ScrollFrame:GetHorizontalScrollRange]]() |
: [[API ScrollFrame GetScrollChild|ScrollFrame:GetScrollChild]] |
: [[API ScrollFrame GetScrollChild|ScrollFrame:GetScrollChild]] |
||
− | : [[API ScrollFrame GetVerticalScroll|ScrollFrame:GetVerticalScroll |
+ | : [[API ScrollFrame GetVerticalScroll|ScrollFrame:GetVerticalScroll]]() |
− | : [[API ScrollFrame GetVerticalScrollRange|ScrollFrame:GetVerticalScrollRange |
+ | : [[API ScrollFrame GetVerticalScrollRange|ScrollFrame:GetVerticalScrollRange]]() |
− | : [[API ScrollFrame SetHorizontalScroll|ScrollFrame:SetHorizontalScroll(offset) |
+ | : [[API ScrollFrame SetHorizontalScroll|ScrollFrame:SetHorizontalScroll]](offset) |
: [[API ScrollFrame SetScrollChild|ScrollFrame:SetScrollChild]] |
: [[API ScrollFrame SetScrollChild|ScrollFrame:SetScrollChild]] |
||
− | : [[API ScrollFrame SetVerticalScroll|ScrollFrame:SetVerticalScroll(offset) |
+ | : [[API ScrollFrame SetVerticalScroll|ScrollFrame:SetVerticalScroll]](offset) |
− | : [[API ScrollFrame UpdateScrollChildRect|ScrollFrame:UpdateScrollChildRect |
+ | : [[API ScrollFrame UpdateScrollChildRect|ScrollFrame:UpdateScrollChildRect]]() |
=== ScrollingMessageFrame === |
=== ScrollingMessageFrame === |
||
(See [[UIOBJECT ScrollingMessageFrame|ScrollingMessageFrame object information]] for details) ScrollingMessageFrame:GetFrameType() returns 'ScrollingMessageFrame'. ScrollingMessageFrame has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT ScrollingMessageFrame|ScrollingMessageFrame object information]] for details) ScrollingMessageFrame:GetFrameType() returns 'ScrollingMessageFrame'. ScrollingMessageFrame has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API ScrollingMessageFrame AddMessage|ScrollingMessageFrame:AddMessage("text" |
+ | : [[API ScrollingMessageFrame AddMessage|ScrollingMessageFrame:AddMessage]]("text"[, r,g,b[, id]]) - Add a message to the frame, with an optional color ID. |
− | : [[API ScrollingMessageFrame AtBottom|ScrollingMessageFrame:AtBottom |
+ | : [[API ScrollingMessageFrame AtBottom|ScrollingMessageFrame:AtBottom]]() - Return true if frame is at the bottom. |
− | : [[API ScrollingMessageFrame Clear|ScrollingMessageFrame:Clear |
+ | : [[API ScrollingMessageFrame Clear|ScrollingMessageFrame:Clear]]() - Clear all lines from the frame. |
− | : [[API ScrollingMessageFrame GetCurrentLine|ScrollingMessageFrame:GetCurrentLine |
+ | : [[API ScrollingMessageFrame GetCurrentLine|ScrollingMessageFrame:GetCurrentLine]]() |
− | : [[API ScrollingMessageFrame GetCurrentScroll|ScrollingMessageFrame:GetCurrentScroll |
+ | : [[API ScrollingMessageFrame GetCurrentScroll|ScrollingMessageFrame:GetCurrentScroll]]() |
: [[API ScrollingMessageFrame GetFadeDuration|ScrollingMessageFrame:GetFadeDuration]] |
: [[API ScrollingMessageFrame GetFadeDuration|ScrollingMessageFrame:GetFadeDuration]] |
||
: [[API ScrollingMessageFrame GetFading|ScrollingMessageFrame:GetFading]] |
: [[API ScrollingMessageFrame GetFading|ScrollingMessageFrame:GetFading]] |
||
− | : [[API ScrollingMessageFrame GetFont|ScrollingMessageFrame:GetFont |
+ | : [[API ScrollingMessageFrame GetFont|ScrollingMessageFrame:GetFont]]() - Returns the font, size, and flags currently used for display. - New in 1.9. |
: [[API ScrollingMessageFrame GetFontObject|ScrollingMessageFrame:GetFontObject]] |
: [[API ScrollingMessageFrame GetFontObject|ScrollingMessageFrame:GetFontObject]] |
||
: [[API ScrollingMessageFrame GetJustifyH|ScrollingMessageFrame:GetJustifyH]] |
: [[API ScrollingMessageFrame GetJustifyH|ScrollingMessageFrame:GetJustifyH]] |
||
: [[API ScrollingMessageFrame GetJustifyV|ScrollingMessageFrame:GetJustifyV]] |
: [[API ScrollingMessageFrame GetJustifyV|ScrollingMessageFrame:GetJustifyV]] |
||
− | : [[API ScrollingMessageFrame GetMaxLines|ScrollingMessageFrame:GetMaxLines |
+ | : [[API ScrollingMessageFrame GetMaxLines|ScrollingMessageFrame:GetMaxLines]]() - Get the maximum number of lines the frame can display. |
− | : [[API ScrollingMessageFrame GetNumLinesDisplayed|ScrollingMessageFrame:GetNumLinesDisplayed |
+ | : [[API ScrollingMessageFrame GetNumLinesDisplayed|ScrollingMessageFrame:GetNumLinesDisplayed]]() |
− | : [[API ScrollingMessageFrame GetNumMessages|ScrollingMessageFrame:GetNumMessages |
+ | : [[API ScrollingMessageFrame GetNumMessages|ScrollingMessageFrame:GetNumMessages]]() |
: [[API ScrollingMessageFrame GetShadowColor|ScrollingMessageFrame:GetShadowColor]] |
: [[API ScrollingMessageFrame GetShadowColor|ScrollingMessageFrame:GetShadowColor]] |
||
: [[API ScrollingMessageFrame GetShadowOffset|ScrollingMessageFrame:GetShadowOffset]] |
: [[API ScrollingMessageFrame GetShadowOffset|ScrollingMessageFrame:GetShadowOffset]] |
||
Line 360: | Line 360: | ||
: [[API ScrollingMessageFrame GetTextColor|ScrollingMessageFrame:GetTextColor]] |
: [[API ScrollingMessageFrame GetTextColor|ScrollingMessageFrame:GetTextColor]] |
||
: [[API ScrollingMessageFrame GetTimeVisible|ScrollingMessageFrame:GetTimeVisible]] |
: [[API ScrollingMessageFrame GetTimeVisible|ScrollingMessageFrame:GetTimeVisible]] |
||
− | : [[API ScrollingMessageFrame PageDown|ScrollingMessageFrame:PageDown |
+ | : [[API ScrollingMessageFrame PageDown|ScrollingMessageFrame:PageDown]]() |
− | : [[API ScrollingMessageFrame PageUp|ScrollingMessageFrame:PageUp |
+ | : [[API ScrollingMessageFrame PageUp|ScrollingMessageFrame:PageUp]]() |
− | : [[API ScrollingMessageFrame ScrollDown|ScrollingMessageFrame:ScrollDown |
+ | : [[API ScrollingMessageFrame ScrollDown|ScrollingMessageFrame:ScrollDown]]() |
− | : [[API ScrollingMessageFrame ScrollToBottom|ScrollingMessageFrame:ScrollToBottom |
+ | : [[API ScrollingMessageFrame ScrollToBottom|ScrollingMessageFrame:ScrollToBottom]]() |
− | : [[API ScrollingMessageFrame ScrollToTop|ScrollingMessageFrame:ScrollToTop |
+ | : [[API ScrollingMessageFrame ScrollToTop|ScrollingMessageFrame:ScrollToTop]]() |
− | : [[API ScrollingMessageFrame ScrollUp|ScrollingMessageFrame:ScrollUp |
+ | : [[API ScrollingMessageFrame ScrollUp|ScrollingMessageFrame:ScrollUp]]() |
− | : [[API ScrollingMessageFrame SetFadeDuration|ScrollingMessageFrame:SetFadeDuration(seconds) |
+ | : [[API ScrollingMessageFrame SetFadeDuration|ScrollingMessageFrame:SetFadeDuration]](seconds) - Set the fade duration. |
: [[API ScrollingMessageFrame SetFading|ScrollingMessageFrame:SetFading]] |
: [[API ScrollingMessageFrame SetFading|ScrollingMessageFrame:SetFading]] |
||
− | : [[API ScrollingMessageFrame SetFont|ScrollingMessageFrame:SetFont("font",size |
+ | : [[API ScrollingMessageFrame SetFont|ScrollingMessageFrame:SetFont]]("font", size[, "flags"]) - Set the font to use for display - New in 1.9. |
: [[API ScrollingMessageFrame SetFontObject|ScrollingMessageFrame:SetFontObject]] |
: [[API ScrollingMessageFrame SetFontObject|ScrollingMessageFrame:SetFontObject]] |
||
: [[API ScrollingMessageFrame SetJustifyH|ScrollingMessageFrame:SetJustifyH]] |
: [[API ScrollingMessageFrame SetJustifyH|ScrollingMessageFrame:SetJustifyH]] |
||
: [[API ScrollingMessageFrame SetJustifyV|ScrollingMessageFrame:SetJustifyV]] |
: [[API ScrollingMessageFrame SetJustifyV|ScrollingMessageFrame:SetJustifyV]] |
||
− | : [[API ScrollingMessageFrame SetMaxLines|ScrollingMessageFrame:SetMaxLines(lines) |
+ | : [[API ScrollingMessageFrame SetMaxLines|ScrollingMessageFrame:SetMaxLines]](lines) - Set the maximum number of displayed lines. |
: [[API ScrollingMessageFrame SetScrollFromBottom|ScrollingMessageFrame:SetScrollFromBottom]] |
: [[API ScrollingMessageFrame SetScrollFromBottom|ScrollingMessageFrame:SetScrollFromBottom]] |
||
: [[API ScrollingMessageFrame SetShadowColor|ScrollingMessageFrame:SetShadowColor]] |
: [[API ScrollingMessageFrame SetShadowColor|ScrollingMessageFrame:SetShadowColor]] |
||
Line 378: | Line 378: | ||
: [[API ScrollingMessageFrame SetSpacing|ScrollingMessageFrame:SetSpacing]] |
: [[API ScrollingMessageFrame SetSpacing|ScrollingMessageFrame:SetSpacing]] |
||
: [[API ScrollingMessageFrame SetTextColor|ScrollingMessageFrame:SetTextColor]] |
: [[API ScrollingMessageFrame SetTextColor|ScrollingMessageFrame:SetTextColor]] |
||
− | : [[API ScrollingMessageFrame SetTimeVisible|ScrollingMessageFrame:SetTimeVisible(seconds) |
+ | : [[API ScrollingMessageFrame SetTimeVisible|ScrollingMessageFrame:SetTimeVisible]](seconds) - Sets how long lines remain visible. |
− | : [[API ScrollingMessageFrame UpdateColorByID|ScrollingMessageFrame:UpdateColorByID(id,r,g,b) |
+ | : [[API ScrollingMessageFrame UpdateColorByID|ScrollingMessageFrame:UpdateColorByID]](id, r,g,b) |
=== SimpleHTML === |
=== SimpleHTML === |
||
Line 394: | Line 394: | ||
: [[API SimpleHTML SetFont|SimpleHTML:SetFont]] |
: [[API SimpleHTML SetFont|SimpleHTML:SetFont]] |
||
: [[API SimpleHTML SetFontObject|SimpleHTML:SetFontObject]] |
: [[API SimpleHTML SetFontObject|SimpleHTML:SetFontObject]] |
||
− | : [[API SimpleHTML SetHyperlinkFormat|SimpleHTML:SetHyperlinkFormat("format") |
+ | : [[API SimpleHTML SetHyperlinkFormat|SimpleHTML:SetHyperlinkFormat]]("format") - Set the string.format format to use to display hyperlinks. |
: [[API SimpleHTML SetJustifyH|SimpleHTML:SetJustifyH]] |
: [[API SimpleHTML SetJustifyH|SimpleHTML:SetJustifyH]] |
||
: [[API SimpleHTML SetJustifyV|SimpleHTML:SetJustifyV]] |
: [[API SimpleHTML SetJustifyV|SimpleHTML:SetJustifyV]] |
||
Line 400: | Line 400: | ||
: [[API SimpleHTML SetShadowOffset|SimpleHTML:SetShadowOffset]] |
: [[API SimpleHTML SetShadowOffset|SimpleHTML:SetShadowOffset]] |
||
: [[API SimpleHTML SetSpacing|SimpleHTML:SetSpacing]] |
: [[API SimpleHTML SetSpacing|SimpleHTML:SetSpacing]] |
||
− | : [[API SimpleHTML SetText|SimpleHTML:SetText("text") |
+ | : [[API SimpleHTML SetText|SimpleHTML:SetText]]("text") - Set the text to be displayed. |
− | : [[API SimpleHTML SetTextColor|SimpleHTML:SetTextColor(r,g,b) |
+ | : [[API SimpleHTML SetTextColor|SimpleHTML:SetTextColor]](r,g,b) - Set the color of displayed text. |
=== Slider === |
=== Slider === |
||
(See [[UIOBJECT Slider|Slider object information]] for details) Slider:GetFrameType() returns 'Slider'. Slider has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT Slider|Slider object information]] for details) Slider:GetFrameType() returns 'Slider'. Slider has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API Slider GetMinMaxValues|Slider:GetMinMaxValues |
+ | : [[API Slider GetMinMaxValues|Slider:GetMinMaxValues]]() - Get the current bounds of the slider. |
: [[API Slider GetOrientation|Slider:GetOrientation]] |
: [[API Slider GetOrientation|Slider:GetOrientation]] |
||
− | : [[API Slider GetValue|Slider:GetValue |
+ | : [[API Slider GetValue|Slider:GetValue]]() - Get the current value of the slider. |
− | : [[API Slider GetValueStep|Slider:GetValueStep |
+ | : [[API Slider GetValueStep|Slider:GetValueStep]]() - Get the current step size of the slider. |
− | : [[API Slider SetMinMaxValues|Slider:SetMinMaxValues(min,max) |
+ | : [[API Slider SetMinMaxValues|Slider:SetMinMaxValues]](min, max) - Set the bounds of the slider. |
: [[API Slider SetOrientation|Slider:SetOrientation]] |
: [[API Slider SetOrientation|Slider:SetOrientation]] |
||
− | : [[API Slider SetValue|Slider:SetValue(value) |
+ | : [[API Slider SetValue|Slider:SetValue]](value) - Set the value of the slider. |
− | : [[API Slider SetValueStep|Slider:SetValueStep(value) |
+ | : [[API Slider SetValueStep|Slider:SetValueStep]](value) - Set the step size of the slider. |
=== StatusBar === |
=== StatusBar === |
||
(See [[UIOBJECT StatusBar|StatusBar object information]] for details) StatusBar:GetFrameType() returns 'StatusBar'. StatusBar has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT StatusBar|StatusBar object information]] for details) StatusBar:GetFrameType() returns 'StatusBar'. StatusBar has all of the methods from [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API StatusBar GetMinMaxValues|StatusBar:GetMinMaxValues |
+ | : [[API StatusBar GetMinMaxValues|StatusBar:GetMinMaxValues]]() - Get the current bounds of the bar. |
: [[API StatusBar GetOrientation|StatusBar:GetOrientation]] |
: [[API StatusBar GetOrientation|StatusBar:GetOrientation]] |
||
: [[API StatusBar GetStatusBarColor|StatusBar:GetStatusBarColor]] |
: [[API StatusBar GetStatusBarColor|StatusBar:GetStatusBarColor]] |
||
: [[API StatusBar GetStatusBarTexture|StatusBar:GetStatusBarTexture]] |
: [[API StatusBar GetStatusBarTexture|StatusBar:GetStatusBarTexture]] |
||
− | : [[API StatusBar GetValue|StatusBar:GetValue |
+ | : [[API StatusBar GetValue|StatusBar:GetValue]]() - Get the current value of the bar. |
− | : [[API StatusBar SetMinMaxValues|StatusBar:SetMinMaxValues(min,max) |
+ | : [[API StatusBar SetMinMaxValues|StatusBar:SetMinMaxValues]](min, max) - Set the bounds of the bar. |
: [[API StatusBar SetOrientation|StatusBar:SetOrientation]] |
: [[API StatusBar SetOrientation|StatusBar:SetOrientation]] |
||
− | : [[API StatusBar SetStatusBarColor|StatusBar:SetStatusBarColor(r,g,b |
+ | : [[API StatusBar SetStatusBarColor|StatusBar:SetStatusBarColor]](r,g,b[,a]) - Set the color of the bar. |
− | : [[API StatusBar SetStatusBarTexture|StatusBar:SetStatusBarTexture("file" |
+ | : [[API StatusBar SetStatusBarTexture|StatusBar:SetStatusBarTexture]]("file"[, "layer"]) - Sets the texture of the bar. |
− | : [[API StatusBar SetValue|StatusBar:SetValue(value) |
+ | : [[API StatusBar SetValue|StatusBar:SetValue]](value) - Set the value of the bar. |
=== TaxiRouteFrame === |
=== TaxiRouteFrame === |
||
Line 444: | Line 444: | ||
(See [[UIOBJECT CheckButton|CheckButton object information]] for details) CheckButton:GetFrameType() returns 'CheckButton'. CheckButton has all of the methods from [[#Button|Button]], [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT CheckButton|CheckButton object information]] for details) CheckButton:GetFrameType() returns 'CheckButton'. CheckButton has all of the methods from [[#Button|Button]], [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API CheckButton GetChecked|CheckButton:GetChecked |
+ | : [[API CheckButton GetChecked|CheckButton:GetChecked]]() - Get the status of the checkbox. |
− | : [[API CheckButton SetChecked|CheckButton:SetChecked( |
+ | : [[API CheckButton SetChecked|CheckButton:SetChecked]]([state]) - Set the status of the checkbox. |
− | : [[API CheckButton SetCheckedTexture|CheckButton:SetCheckedTexture("texture") |
+ | : [[API CheckButton SetCheckedTexture|CheckButton:SetCheckedTexture]]("texture") - Set the texture to use for a checked box. |
− | : [[API CheckButton SetDisabledCheckedTexture|CheckButton:SetDisabledCheckedTexture("texture") |
+ | : [[API CheckButton SetDisabledCheckedTexture|CheckButton:SetDisabledCheckedTexture]]("texture") - Set the texture to use for an unchecked box. |
=== LootButton === |
=== LootButton === |
||
(See [[UIOBJECT LootButton|LootButton object information]] for details) LootButton:GetFrameType() returns 'LootButton'. LootButton has all of the methods from [[#Button|Button]], [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT LootButton|LootButton object information]] for details) LootButton:GetFrameType() returns 'LootButton'. LootButton has all of the methods from [[#Button|Button]], [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API LootButton SetSlot|LootButton:SetSlot(index) |
+ | : [[API LootButton SetSlot|LootButton:SetSlot]](index) - Set which the item to loot if the button is clicked. |
== Model Derivatives == |
== Model Derivatives == |
||
Line 459: | Line 459: | ||
(See [[UIOBJECT PlayerModel|PlayerModel object information]] for details) PlayerModel:GetFrameType() returns 'PlayerModel'. PlayerModel has all of the methods from [[#Model|Model]], [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT PlayerModel|PlayerModel object information]] for details) PlayerModel:GetFrameType() returns 'PlayerModel'. PlayerModel has all of the methods from [[#Model|Model]], [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API PlayerModel RefreshUnit|PlayerModel:RefreshUnit |
+ | : [[API PlayerModel RefreshUnit|PlayerModel:RefreshUnit]]() |
− | : [[API PlayerModel SetRotation|PlayerModel:SetRotation(rotationRadians) |
+ | : [[API PlayerModel SetRotation|PlayerModel:SetRotation]](rotationRadians) |
− | : [[API PlayerModel SetUnit|PlayerModel:SetUnit("unit |
+ | : [[API PlayerModel SetUnit|PlayerModel:SetUnit]]("[[API TYPE UnitId|unit]]") |
== PlayerModel Derivatives == |
== PlayerModel Derivatives == |
||
Line 468: | Line 468: | ||
(See [[UIOBJECT DressUpModel|DressUpModel object information]] for details) DressUpModel:GetFrameType() returns 'DressUpModel'. DressUpModel has all of the methods from [[#PlayerModel|PlayerModel]], [[#Model|Model]], [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT DressUpModel|DressUpModel object information]] for details) DressUpModel:GetFrameType() returns 'DressUpModel'. DressUpModel has all of the methods from [[#PlayerModel|PlayerModel]], [[#Model|Model]], [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API DressUpModel Dress|DressUpModel:Dress |
+ | : [[API DressUpModel Dress|DressUpModel:Dress]]() - Set the model to reflect the character's current inventory. |
− | : [[API DressUpModel TryOn|DressUpModel:TryOn("item") |
+ | : [[API DressUpModel TryOn|DressUpModel:TryOn]]("item") - Add the specified item to the model. |
− | : [[API DressUpModel Undress|DressUpModel:Undress |
+ | : [[API DressUpModel Undress|DressUpModel:Undress]]() - Set the model to reflect the character without inventory. |
=== TabardModel === |
=== TabardModel === |
||
(See [[UIOBJECT TabardModel|TabardModel object information]] for details) TabardModel:GetFrameType() returns 'TabardModel'. TabardModel has all of the methods from [[#PlayerModel|PlayerModel]], [[#Model|Model]], [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT TabardModel|TabardModel object information]] for details) TabardModel:GetFrameType() returns 'TabardModel'. TabardModel has all of the methods from [[#PlayerModel|PlayerModel]], [[#Model|Model]], [[#Frame|Frame]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API TabardModel CanSaveTabardNow|TabardModel:CanSaveTabardNow |
+ | : [[API TabardModel CanSaveTabardNow|TabardModel:CanSaveTabardNow]]() - Indicate if the tabard can be saved. |
− | : [[API TabardModel CycleVariation|TabardModel:CycleVariation(variationIndex,delta) |
+ | : [[API TabardModel CycleVariation|TabardModel:CycleVariation]](variationIndex, delta) |
: [[API TabardModel GetLowerBackgroundFileName|TabardModel:GetLowerBackgroundFileName]] |
: [[API TabardModel GetLowerBackgroundFileName|TabardModel:GetLowerBackgroundFileName]] |
||
: [[API TabardModel GetLowerEmblemFileName|TabardModel:GetLowerEmblemFileName]] |
: [[API TabardModel GetLowerEmblemFileName|TabardModel:GetLowerEmblemFileName]] |
||
− | : [[API TabardModel GetLowerEmblemTexture|TabardModel:GetLowerEmblemTexture("textureName") |
+ | : [[API TabardModel GetLowerEmblemTexture|TabardModel:GetLowerEmblemTexture]]("textureName") |
: [[API TabardModel GetUpperBackgroundFileName|TabardModel:GetUpperBackgroundFileName]] |
: [[API TabardModel GetUpperBackgroundFileName|TabardModel:GetUpperBackgroundFileName]] |
||
: [[API TabardModel GetUpperEmblemFileName|TabardModel:GetUpperEmblemFileName]] |
: [[API TabardModel GetUpperEmblemFileName|TabardModel:GetUpperEmblemFileName]] |
||
− | : [[API TabardModel GetUpperEmblemTexture|TabardModel:GetUpperEmblemTexture("textureName") |
+ | : [[API TabardModel GetUpperEmblemTexture|TabardModel:GetUpperEmblemTexture]]("textureName") |
− | : [[API TabardModel InitializeTabardColors|TabardModel:InitializeTabardColors |
+ | : [[API TabardModel InitializeTabardColors|TabardModel:InitializeTabardColors]]() |
− | : [[API TabardModel Save|TabardModel:Save |
+ | : [[API TabardModel Save|TabardModel:Save]]() - Save the tabard. |
== Region Derivatives == |
== Region Derivatives == |
||
Line 491: | Line 491: | ||
(See [[UIOBJECT FontString|FontString object information]] for details) FontString:GetFrameType() returns 'FontString'. FontString has all of the methods from [[#Region|Region]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
(See [[UIOBJECT FontString|FontString object information]] for details) FontString:GetFrameType() returns 'FontString'. FontString has all of the methods from [[#Region|Region]], [[#LayoutFrame|LayoutFrame]] and [[#UIObject|UIObject]], plus the following: |
||
− | : [[API FontString GetFont|FontString:GetFont |
+ | : [[API FontString GetFont|FontString:GetFont]]() - Returns the font, size, and flags currently used for display. |
: [[API FontString GetFontObject|FontString:GetFontObject]] |
: [[API FontString GetFontObject|FontString:GetFontObject]] |
||
: [[API FontString GetJustifyH|FontString:GetJustifyH]] |
: [[API FontString GetJustifyH|FontString:GetJustifyH]] |
||
Line 498: | Line 498: | ||
: [[API FontString GetShadowOffset|FontString:GetShadowOffset]] |
: [[API FontString GetShadowOffset|FontString:GetShadowOffset]] |
||
: [[API FontString GetSpacing|FontString:GetSpacing]] |
: [[API FontString GetSpacing|FontString:GetSpacing]] |
||
− | : [[API FontString GetStringWidth|FontString:GetStringWidth |
+ | : [[API FontString GetStringWidth|FontString:GetStringWidth]]() - Returns the width in pixels of the current string in the current font (without line wrapping). |
− | : [[API FontString GetText|FontString:GetText |
+ | : [[API FontString GetText|FontString:GetText]]() - Get the displayed text. |
− | : [[API FontString GetTextColor|FontString:GetTextColor |
+ | : [[API FontString GetTextColor|FontString:GetTextColor]]() - Get the color of the displayed text. |
− | : [[API FontString SetAlphaGradient|FontString:SetAlphaGradient(start,length) |
+ | : [[API FontString SetAlphaGradient|FontString:SetAlphaGradient]](start, length) - Create or remove an alpha gradient over the text. |
− | : [[API FontString SetFont|FontString:SetFont("font",size |
+ | : [[API FontString SetFont|FontString:SetFont]]("font", size[, "flags"]) - Set the font to use for display. |
: [[API FontString SetFontObject|FontString:SetFontObject]] |
: [[API FontString SetFontObject|FontString:SetFontObject]] |
||
− | : [[API FontString SetJustifyH|FontString:SetJustifyH("direction") |
+ | : [[API FontString SetJustifyH|FontString:SetJustifyH]]("direction") - Set the horizontal justification of this string. |
− | : [[API FontString SetJustifyV|FontString:SetJustifyV("direction") |
+ | : [[API FontString SetJustifyV|FontString:SetJustifyV]]("direction") - Set the vertical justification of this string. |
− | : [[API FontString SetNonSpaceWrap|FontString:SetNonSpaceWrap(wrapFlag) |
+ | : [[API FontString SetNonSpaceWrap|FontString:SetNonSpaceWrap]](wrapFlag) - Set whether long strings without spaces are wrapped or truncated. |
: [[API FontString SetShadowColor|FontString:SetShadowColor]] |
: [[API FontString SetShadowColor|FontString:SetShadowColor]] |
||
: [[API FontString SetShadowOffset|FontString:SetShadowOffset]] |
: [[API FontString SetShadowOffset|FontString:SetShadowOffset]] |
||
: [[API FontString SetSpacing|FontString:SetSpacing]] |
: [[API FontString SetSpacing|FontString:SetSpacing]] |
||
− | : [[API FontString SetText|FontString:SetText("text") |
+ | : [[API FontString SetText|FontString:SetText]]("text") - Set the displayed text. |
− | : [[API FontString SetTextColor|FontString:SetTextColor(r,g,b |
+ | : [[API FontString SetTextColor|FontString:SetTextColor]](r,g,b[,a]) - Set the color of the text. |
− | : [[API FontString SetTextHeight|FontString:SetTextHeight(pixelHeight) |
+ | : [[API FontString SetTextHeight|FontString:SetTextHeight]](pixelHeight) - Set the height of the text by scaling graphics (Note: Can distort text). |
− | : [[API FontString SetVertexColor|FontString:SetVertexColor(r,g,b |
+ | : [[API FontString SetVertexColor|FontString:SetVertexColor]](r,g,b[,a]) |
=== Texture === |
=== Texture === |
||
Line 519: | Line 519: | ||
: [[API Texture GetBlendMode|Texture:GetBlendMode]] |
: [[API Texture GetBlendMode|Texture:GetBlendMode]] |
||
− | : [[API Texture GetTexture|Texture:GetTexture |
+ | : [[API Texture GetTexture|Texture:GetTexture]]() - Gets this texture's current texture path. |
: [[API Texture GetVertexColor|Texture:GetVertexColor]] |
: [[API Texture GetVertexColor|Texture:GetVertexColor]] |
||
: [[API Texture SetBlendMode|Texture:SetBlendMode]] |
: [[API Texture SetBlendMode|Texture:SetBlendMode]] |
||
− | : [[API Texture SetDesaturated|Texture:SetDesaturated(flag) |
+ | : [[API Texture SetDesaturated|Texture:SetDesaturated]](flag) - Set whether this texture should be displayed with no saturation (IMPORTANT: This has a return value) |
− | : [[API Texture SetGradient|Texture:SetGradient("orientation",minR,minG,minB,maxR,maxG,maxB) |
+ | : [[API Texture SetGradient|Texture:SetGradient]]("orientation", minR,minG,minB, maxR,maxG,maxB) |
− | : [[API Texture SetGradientAlpha|Texture:SetGradientAlpha("orientation",minR,minG,minB,minA,maxR,maxG,maxB,maxA) |
+ | : [[API Texture SetGradientAlpha|Texture:SetGradientAlpha]]("orientation", minR,minG,minB,minA, maxR,maxG,maxB,maxA) |
− | : [[API Texture SetTexCoord|Texture:SetTexCoord(minX,maxX,minY,maxY or ULx,ULy,LLx,LLy,URx,URy,LRx,LRy) |
+ | : [[API Texture SetTexCoord|Texture:SetTexCoord]](minX,maxX,minY,maxY or ULx,ULy,LLx,LLy,URx,URy,LRx,LRy) - Set the corner coordinates for texture display. |
− | : [[API Texture SetTexture|Texture:SetTexture("texturePath" or r,g,b |
+ | : [[API Texture SetTexture|Texture:SetTexture]]("texturePath" or r,g,b[,a]) - Sets the texture to be displayed |
− | : [[API Texture SetVertexColor|Texture:SetVertexColor(r,g,b |
+ | : [[API Texture SetVertexColor|Texture:SetVertexColor]](r,g,b[,a]) |
[[Category:Widgets| Widget API]] |
[[Category:Widgets| Widget API]] |
Revision as of 05:42, 12 June 2006
Widget API Methods
This is a list of all of the Widget functions found by scanning the in-game environment. This derivation has been performed independently by at least two people (Lego and Flickering) so there's a high degree of confidence the list is correct.
This list is current as of patch 0.10.2-5302 (11000). -- Tarog 16:44, 2 May 2006 (PDT)
The in-progress new (0.11) version of this page can be found here, under Widget API New.
Root Widgets
UIObject
This is an abstract UI object type which cannot actually be created. It's common to all UI objects and gathers together some of common methods which have identical behaviours across all widget types. (See UIObject object information for details)
- UIObject:GetObjectType() - Get the type of this object - New in 1.10
- UIObject:IsObjectType("type") - Determine if this object is of the specified type, or a subclass of that type - New in 1.10.
UIObject Derivatives
Font
This object was introduced in 1.10 to replace virtual FontStrings, it allows for dynamic inheritance of font template changes. 'Font' refers to game objects such as "GameFontNormal", "GameFontHighlightSmall", etc. (See Font object information for details) Font:GetFrameType() returns 'Font'. Font has all of the methods from UIObject, plus the following:
- Font:CopyFontObject(otherFont) - Set this Font's attributes to be a copy of the otherFont font object's.
- Font:GetAlpha() - Return this font's alpha setting.
- Font:GetFont() - Return the font file, height, and flags for this Font.
- Font:GetFontObject() - Return the 'parent' Font object, or nil if none.
- Font:GetJustifyH() - Return Font's horizontal justification.
- Font:GetJustifyV() - Return Font's vertical justification.
- Font:GetName() - Return the name of the Font object.
- Font:GetShadowColor() - Returns the color of this Font's shadow (r,g,b,a).
- Font:GetShadowOffset() - Returns the Font's shadow offset (x,y).
- Font:GetSpacing() - Returns the Font's spacing().
- Font:GetTextColor() - Returns the Font's color (r,g,b,a)
- Font:SetAlpha(alpha) - Set the Font's alpha value.
- Font:SetFont("path", height[, "flags"]) - Sets the font to use, returns 1 if the path was valid, nil otherwise (no change occurs).
- Font:SetFontObject(fontObject) - Sets the 'parent' Font object.
- Font:SetJustifyH("justifyH") - Sets horizontal justification ("LEFT","RIGHT", or "CENTER")
- Font:SetJustifyV("justifyV") - Sets vertical justification ("TOP","BOTTOM", or "MIDDLE")
- Font:SetShadowColor(r,g,b[,a]) - Sets the shadow color.
- Font:SetShadowOffset(x,y) - Sets the shadow offset.
- Font:SetSpacing(spacing) - Sets the font spacing.
- Font:SetTextColor(r,g,b[,a]) - Sets the font's color.
LayoutFrame
This is an abstract frame type which cannot actually be created. It gathers together a number of common methods which have identical behaviours across all widget types. (See LayoutFrame object information for details) LayoutFrame has all of the methods from UIObject, plus the following:
- LayoutFrame:ClearAllPoints() - Clear all attachment points for this object.
- LayoutFrame:GetAlpha() - Get the alpha level of this frame - Moved in 1.10.
- LayoutFrame:GetBottom() - Get the y location of the bottom edge of this frame - Moved in 1.10.
- LayoutFrame:GetCenter() - Get the coordinates of the center of this frame - Moved in 1.10.
- LayoutFrame:GetHeight() - Get the height of this object.
- LayoutFrame:GetLeft() - Get the x location of the left edge of this frame - Moved in 1.10.
- LayoutFrame:GetName() - Get the name of this object.
- LayoutFrame:GetNumPoints() - Get the number of anchor points for this frame - New in 1.10.
- LayoutFrame:GetParent() - Get the parent of this frame (The object, not just the name) - Moved in 1.10.
- LayoutFrame:GetPoint(point) - Get details for an anchor points for this frame (point,relativeTo,relativePoint,xofs,yofs) - New in 1.10.
- LayoutFrame:GetRight() - Get the x location of the right edge of this frame - Moved in 1.10.
- LayoutFrame:GetTop() - Get the y location of the top edge of this frame - Moved in 1.10.
- LayoutFrame:GetWidth() - Get the width of this object.
- LayoutFrame:Hide() - Set this object to hidden (it and all of its children will disappear).
- LayoutFrame:IsShown() - Determine if this object is shown (would be visible if its parent was visible).
- LayoutFrame:IsVisible() - Get whether the object is visible on screen (logically (IsShown() and GetParent():IsVisible()));
- LayoutFrame:SetAllPoints(frame or "frameName") - Set all anchors to match edges of specified frame - Moved in 1.10.
- LayoutFrame:SetAlpha(alpha) - Set the alpha level of this object (affects children also).
- LayoutFrame:SetHeight(height) - Set the height of the object.
- LayoutFrame:SetParent(parent or "parentName") - Set the parent for this frame - Moved in 1.10.
- LayoutFrame:SetPoint("point", "relativeFrame" or relativeObject, "relativePoint"[, xOfs, yOfs]) - Set an attachment point of this object - Updated in 1.10.
- LayoutFrame:SetWidth(width) - Set the width of the object.
- LayoutFrame:Show() - Set this object to shown (it will appear if its parent is visible).
LayoutFrame Derivatives
Frame
(See Frame object information for details) Frame:GetFrameType() returns 'Frame'. Frame has all of the methods from LayoutFrame and UIObject, plus the following:
- Frame:CreateFontString(["name"[, "layer"]]) - Create and return a new FontString as a child of this Frame.
- Frame:CreateTexture(["name"[, "layer"]]) - Create and return a new Texture as a child of this Frame.
- Frame:DisableDrawLayer("layer") - Disable rendering of regions in the specified draw layer.
- Frame:EnableDrawLayer("layer") - Enable rendering of regions in the specified draw layer.
- Frame:EnableKeyboard(enableFlag) - Set whether this frame will get keyboard input.
- Frame:EnableMouse(enableFlag) - Set whether this frame will get mouse input.
- Frame:EnableMouseWheel(enableFlag) - Set whether this frame will get mouse wheel events.
- Frame:GetChildren() - Get the children of this frame.
- Frame:GetEffectiveScale() - Get the scale factor of this object relative to the root window.
- Frame:GetFrameLevel() - Get the level of this frame.
- Frame:GetFrameStrata() - Get the strata of this frame.
- Frame:GetFrameType() - Get the type of this frame.
- Frame:GetID() - Get the ID of this frame.
- Frame:GetNumChildren() - Get the number of children this frame has.
- Frame:GetNumRegions() - Return the number of Regions that are children of this frame.
- Frame:GetRegions() - Return the regions of the frame (multiple return values).
- Frame:GetScale() - Get the scale factor of this object relative to its parent.
- Frame:GetScript("handler") - Get the function for one of this frame's handlers.
- Frame:HasScript("handler") - Return true if the frame can be given a handler of the specified type (NOT whether it actually HAS one, use GetScript for that) - Since 1.8.
- Frame:IsFrameType("type") - Determine if this frame is of the specified type, or a subclass of that type.
- Frame:IsMovable() - Determine if the frame can be moved.
- Frame:IsResizable() - Determine if the frame can be resized.
- Frame:IsToplevel() - Determine if the frame is Toplevel.
- Frame:IsUserPlaced() - Determine if this frame has been relocated by the user.
- Frame:Lower() - Lower this frame behind other frames.
- Frame:Raise() - Raise this frame above other frames.
- Frame:RegisterEvent("event") - Indicate that this frame should be notified when event occurs.
- Frame:RegisterForDrag("buttonType"[, "buttonType"...]]) - Inidicate that this frame should be notified of drag events for the specified buttons.
- Frame:SetBackdrop([backdropTable]) - Set the backdrop of the frame according to the specification provided.
- Frame:SetBackdropBorderColor(r,g,b[,a]) - Set the frame's backdrop's border's color.
- Frame:SetBackdropColor(r,g,b[,a]) - Set the frame's backdrop color.
- Frame:SetFrameLevel(level) - Set the level of this frame (determines which of overlapping frames shows on top).
- Frame:SetFrameStrata("strata") - Set the strata of this frame.
- Frame:SetID(id) - Set the ID of this frame.
- Frame:SetMaxResize(maxWidth, maxHeight) - Set the maximum dimensions this frame can be resized to.
- Frame:SetMinResize(minWidth, minHeight) - Set the minimum dimensions this frame can be resized to.
- Frame:SetMovable(isMovable) - Set whether the frame can be moved.
- Frame:SetResizable(isResizable) - Set whether the frame can be resized.
- Frame:SetScale(scale) - Set the scale factor of this frame relative to its parent.
- Frame:SetScript("handler", function) - Set the function to use for a handler on this frame.
- Frame:SetToplevel(isToplevel) - Set whether the frame is Toplevel.
- Frame:SetUserPlaced(isUserPlaced) - Set whether the frame has been relocated by the user (and will thus be saved in the layout cache).
- Frame:StartMoving() - Start moving this frame.
- Frame:StartSizing("point") - Start sizing this frame using the specified anchor point.
- Frame:StopMovingOrSizing() - Stop moving and/or sizing this frame.
- Frame:UnregisterAllEvents() - Indicate that this frame should no longer be notified when any events occur.
- Frame:UnregisterEvent("event") - Indicate that this frame should no longer be notified when event occurs.
Region
Another abstract type, for objects that represent only a rendering process onto the screen, rather than a full blown frame. (See Region object information for details) Region has all of the methods from LayoutFrame and UIObject, plus the following:
- Region:GetDrawLayer() - Returns the draw layer for the Region - New in 1.10.
- Region:SetDrawLayer("layer") - Sets the draw layer for the Region - New in 1.10.
Frame Derivatives
Button
(See Button object information for details) Button:GetFrameType() returns 'Button'. Button has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- Button:Click() - Execute the click action of the button.
- Button:Disable() - Disable the Button so that it cannot be clicked.
- Button:Enable() - Enable to the Button so that it may be clicked.
- Button:GetButtonState() - Return the current state ("PUSHED","NORMAL") of the Button.
- Button:GetDisabledFontObject() - Return the font object for the Button when disabled - New in 1.10.
- Button:GetFont() - Returns the font, size, and flags currently used for display on the Button.
- Button:GetHighlightFontObject() - Return the font object for the Button when highlighted - New in 1.10.
- Button:GetText() - Get the text label for the Button.
- Button:GetTextFontObject() - Return the font object for the Button's normal text - New in 1.10.
- Button:GetTextHeight() - Get the height of the Button's text.
- Button:GetTextWidth() - Get the width of the Button's text.
- Button:IsEnabled() - Determine whether the Button is enabled.
- Button:LockHighlight() - Set the Button to always be drawn highlighted.
- Button:RegisterForClicks("clickType"[, "clickType"...]) - Control which mouse button up/down events get passed to the <OnClick> event handler.
- Button:SetButtonState("state"[, lock]) - Set the state of the Button ("PUSHED", "NORMAL") and whether it is locked.
- Button:SetDisabledFontObject([font]) - Set the font object for settings when disabled - New in 1.10.
- Button:SetDisabledTextColor(r,g,b[,a]) - Set the disabled text color for the Button.
- Button:SetDisabledTexture(texture or "texturePath") - Set the disabled texture for the Button - Updated in 1.10.
- Button:SetFont("font", size[, "flags"]) - Set the font to use for display.
- Button:SetHighlightFontObject([font]) - Set the font object for settings when highlighted - New in 1.10.
- Button:SetHighlightTextColor(r,g,b[,a]) - Set the highlight text color for the Button.
- Button:SetHighlightTexture(texture or "texturePath") - Set the highlight texture for the Button - Updated in 1.10.
- Button:SetNormalTexture(texture or "texturePath") - Set the normal texture for the Button - Updated in 1.10.
- Button:SetPushedTexture(texture or "texturePath") - Set the pushed texture for the Button - Updated in 1.10.
- Button:SetText("text") - Set the text label for the Button.
- Button:SetTextColor(r,g,b) - Set the text color for the Button.
- Button:SetTextFontObject([font]) - Set the font object from which to get settings for this Button's normal state - New in 1.10.
- Button:UnlockHighlight() - Set the Button to not always be drawn highlighted.
ColorSelect
(See ColorSelect object information for details) ColorSelect:GetFrameType() returns 'ColorSelect'. ColorSelect has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- ColorSelect:GetColorHSV() - Get the HSV values of the selected color.
- ColorSelect:GetColorRGB() - Get the RGB values of the selected color.
- ColorSelect:SetColorHSV(h,s,v) - Set to a specific HSV color.
- ColorSelect:SetColorRGB(r,g,b) - Set to a specific RGB color.
EditBox
(See EditBox object information for details) EditBox:GetFrameType() returns 'EditBox'. EditBox has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- EditBox:AddHistoryLine("text") - Add text to the edit history.
- EditBox:ClearFocus()
- EditBox:GetAltArrowKeyMode
- EditBox:GetFont() - Returns the font, size, and flags currently used for display.
- EditBox:GetFontObject
- EditBox:GetHistoryLines() - Get the number of history lines for this edit box
- EditBox:GetInputLanguage() - Get the input language (locale based not in-game)
- EditBox:GetJustifyH
- EditBox:GetJustifyV
- EditBox:GetNumLetters() - Gets the number of letters in the box.
- EditBox:GetNumber()
- EditBox:GetShadowColor
- EditBox:GetShadowOffset
- EditBox:GetSpacing
- EditBox:GetText() - Get the current text contained in the edit box.
- EditBox:GetTextColor
- EditBox:HighlightText([startPos, endPos]) - Set the highlight to all or some of the edit box text.
- EditBox:Insert("text") - Insert text into the edit box.
- EditBox:SetAltArrowKeyMode
- EditBox:SetFocus()
- EditBox:SetFont("font", size[, "flags"]) - Set the font to use for display.
- EditBox:SetFontObject
- EditBox:SetHistoryLines() - Set the number of history lines to remember.
- EditBox:SetJustifyH
- EditBox:SetJustifyV
- EditBox:SetMaxBytes(maxBytes) - Set the maximum byte size for entered text.
- EditBox:SetMaxLetters(maxLetters) - Set the maximum number of letters for entered text.
- EditBox:SetNumber(number)
- EditBox:SetShadowColor
- EditBox:SetShadowOffset
- EditBox:SetSpacing
- EditBox:SetText("text") - Set the text contained in the edit box.
- EditBox:SetTextColor(r,g,b) - Set the color of the text in the edit box.
- EditBox:SetTextInsets(l,r,t,b)
- EditBox:ToggleInputLanguage()
GameTooltip
The tooltip automatically resizes itself when its Show() method is called. (See GameTooltip object information for details) GameTooltip:GetFrameType() returns 'GameTooltip'. GameTooltip has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- GameTooltip:AddDoubleLine(textL, textR, rL,gL,bL, rR,gR,bR)
- GameTooltip:AddLine
- GameTooltip:AppendText("text") - Append text to the end of the first line of the tooltip.
- GameTooltip:ClearLines
- GameTooltip:FadeOut
- GameTooltip:GetAnchorType() - Returns the current anchoring type.
- GameTooltip:IsOwned(frame) - Returns true if the tooltip is currently owned by the specified frame - Since 1.8.
- GameTooltip:NumLines() - Get the number of lines in the tooltip.
- GameTooltip:SetAction(slot) - Shows the tooltip for the specified action button.
- GameTooltip:SetAuctionCompareItem("type", index[, offset])
- GameTooltip:SetAuctionItem("type", index) - Shows the tooltip for the specified auction item.
- GameTooltip:SetAuctionSellItem
- GameTooltip:SetBagItem
- GameTooltip:SetBuybackItem
- GameTooltip:SetCraftItem
- GameTooltip:SetCraftSpell
- GameTooltip:SetHyperlink(link) - Shows the tooltip for the specified hyperlink (usually item link).
- GameTooltip:SetInboxItem(index) - Shows the tooltip for the specified mail inbox item.
- GameTooltip:SetInventoryItem(unit, slot[, nameOnly])
- GameTooltip:SetLootItem
- GameTooltip:SetLootRollItem(id) - Shows the tooltip for the specified loot roll item.
- GameTooltip:SetMerchantCompareItem("slot"[, offset])
- GameTooltip:SetMerchantItem
- GameTooltip:SetMinimumWidth(width) - (Formerly SetMoneyWidth)
- GameTooltip:SetOwner
- GameTooltip:SetPadding
- GameTooltip:SetPetAction(slot) - Shows the tooltip for the specified pet action.
- GameTooltip:SetPlayerBuff(buffIndex) - Direct the tooltip to show information about a player's buff.
- GameTooltip:SetQuestItem
- GameTooltip:SetQuestLogItem
- GameTooltip:SetQuestLogRewardSpell
- GameTooltip:SetQuestRewardSpell
- GameTooltip:SetSendMailItem
- GameTooltip:SetShapeshift(slot) - Shows the tooltip for the specified shapeshift form.
- GameTooltip:SetSpell(spellId, spellbookTabNum) - Shows the tooltip for the specified spell.
- GameTooltip:SetTalent(tabIndex, talentIndex) - Shows the tooltip for the specified talent.
- GameTooltip:SetText("text", r,g,b[,a[, textWrap]]) - Set the text of the tooltip.
- GameTooltip:SetTrackingSpell
- GameTooltip:SetTradePlayerItem
- GameTooltip:SetTradeSkillItem
- GameTooltip:SetTradeTargetItem
- GameTooltip:SetTrainerService
- GameTooltip:SetUnit
- GameTooltip:SetUnitBuff("unit", buffIndex[, raidFilter]) - Shows the tooltip for a unit's buff.
- GameTooltip:SetUnitDebuff("unit", buffIndex[, raidFilter]) - Shows the tooltip for a unit's debuff.
MessageFrame
(See MessageFrame object information for details) MessageFrame:GetFrameType() returns 'MessageFrame'. MessageFrame has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- MessageFrame:AddMessage("text", r,g,b,a, holdTime) - Add a message to the frame which will fade eventually.
- MessageFrame:GetFont
- MessageFrame:GetFontObject
- MessageFrame:GetJustifyH
- MessageFrame:GetJustifyV
- MessageFrame:GetShadowColor
- MessageFrame:GetShadowOffset
- MessageFrame:GetSpacing
- MessageFrame:GetTextColor
- MessageFrame:SetFont
- MessageFrame:SetFontObject
- MessageFrame:SetJustifyH
- MessageFrame:SetJustifyV
- MessageFrame:SetShadowColor
- MessageFrame:SetShadowOffset
- MessageFrame:SetSpacing
- MessageFrame:SetTextColor
Minimap
Tracking dots malfunction if you have multiple instances of this widget that are different sizes/zooms. (See Minimap object information for details) Minimap:GetFrameType() returns 'Minimap'. Minimap has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- Minimap:GetPingPosition() - Get the last ping location.
- Minimap:GetZoom() - Get the current zoom level.
- Minimap:GetZoomLevels() - Get the maximum zoom level.
- Minimap:PingLocation(x,y) - Perform a ping at the specified location.
- Minimap:SetBlipTexture
- Minimap:SetIconTexture
- Minimap:SetMaskTexture
- Minimap:SetZoom(level) - Set the current zoom level.
Model
Used to display real 3D-mesh geometry as part of the UI. (See Model object information for details) Model:GetFrameType() returns 'Model'. Model has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- Model:AdvanceTime()
- Model:ClearFog() - Removes all fogging effects currently active in rendering.
- Model:ClearModel() - Removes all geometry from the Model (i.e. makes it empty)
- Model:GetFacing() - Returns the direction the model is facing.
- Model:GetModelScale() - Returns the current mesh scaling factor.
- Model:GetPosition() - Returns the current position of the mesh as x,y,z
- Model:ReplaceIconTexture("texture")
- Model:SetCamera(index) - Select a predefined camera.
- Model:SetFacing(facing) - Set the direction that the model is facing.
- Model:SetFogColor(r,g,b[,a]) - Set the fog color and enable fogging.
- Model:SetFogFar(value) - Set the far-clipping plane distance for fogging.
- Model:SetFogNear(value) - Set the near-clipping plane distance for fogging.
- Model:SetLight(enabled[, omni, dirX,dirY,dirZ, ambIntensity[, ambR,ambG,ambB[, dirIntensity[, dirR,dirG,dirB]]]]) - Place the light source used for rendering
- Model:SetModel("file") - Set the mesh that is displayed in the frame.
- Model:SetModelScale(scale) - Sets the scale factor for the mesh before rendering.
- Model:SetPosition(x,y,z) - Set the position of the mesh inside the frame's coordinate system.
- Model:SetSequence(sequence) - Set the animation to be played.
- Model:SetSequenceTime(sequence, time)
MovieFrame
(See MovieFrame object information for details) MovieFrame:GetFrameType() returns 'Frame'. MovieFrame has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- MovieFrame:EnableSubtitles
- MovieFrame:StartMovie("filename")
- MovieFrame:StopMovie
ScrollFrame
(See ScrollFrame object information for details) ScrollFrame:GetFrameType() returns 'ScrollFrame'. ScrollFrame has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- ScrollFrame:GetHorizontalScroll()
- ScrollFrame:GetHorizontalScrollRange()
- ScrollFrame:GetScrollChild
- ScrollFrame:GetVerticalScroll()
- ScrollFrame:GetVerticalScrollRange()
- ScrollFrame:SetHorizontalScroll(offset)
- ScrollFrame:SetScrollChild
- ScrollFrame:SetVerticalScroll(offset)
- ScrollFrame:UpdateScrollChildRect()
ScrollingMessageFrame
(See ScrollingMessageFrame object information for details) ScrollingMessageFrame:GetFrameType() returns 'ScrollingMessageFrame'. ScrollingMessageFrame has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- ScrollingMessageFrame:AddMessage("text"[, r,g,b[, id]]) - Add a message to the frame, with an optional color ID.
- ScrollingMessageFrame:AtBottom() - Return true if frame is at the bottom.
- ScrollingMessageFrame:Clear() - Clear all lines from the frame.
- ScrollingMessageFrame:GetCurrentLine()
- ScrollingMessageFrame:GetCurrentScroll()
- ScrollingMessageFrame:GetFadeDuration
- ScrollingMessageFrame:GetFading
- ScrollingMessageFrame:GetFont() - Returns the font, size, and flags currently used for display. - New in 1.9.
- ScrollingMessageFrame:GetFontObject
- ScrollingMessageFrame:GetJustifyH
- ScrollingMessageFrame:GetJustifyV
- ScrollingMessageFrame:GetMaxLines() - Get the maximum number of lines the frame can display.
- ScrollingMessageFrame:GetNumLinesDisplayed()
- ScrollingMessageFrame:GetNumMessages()
- ScrollingMessageFrame:GetShadowColor
- ScrollingMessageFrame:GetShadowOffset
- ScrollingMessageFrame:GetSpacing
- ScrollingMessageFrame:GetTextColor
- ScrollingMessageFrame:GetTimeVisible
- ScrollingMessageFrame:PageDown()
- ScrollingMessageFrame:PageUp()
- ScrollingMessageFrame:ScrollDown()
- ScrollingMessageFrame:ScrollToBottom()
- ScrollingMessageFrame:ScrollToTop()
- ScrollingMessageFrame:ScrollUp()
- ScrollingMessageFrame:SetFadeDuration(seconds) - Set the fade duration.
- ScrollingMessageFrame:SetFading
- ScrollingMessageFrame:SetFont("font", size[, "flags"]) - Set the font to use for display - New in 1.9.
- ScrollingMessageFrame:SetFontObject
- ScrollingMessageFrame:SetJustifyH
- ScrollingMessageFrame:SetJustifyV
- ScrollingMessageFrame:SetMaxLines(lines) - Set the maximum number of displayed lines.
- ScrollingMessageFrame:SetScrollFromBottom
- ScrollingMessageFrame:SetShadowColor
- ScrollingMessageFrame:SetShadowOffset
- ScrollingMessageFrame:SetSpacing
- ScrollingMessageFrame:SetTextColor
- ScrollingMessageFrame:SetTimeVisible(seconds) - Sets how long lines remain visible.
- ScrollingMessageFrame:UpdateColorByID(id, r,g,b)
SimpleHTML
(See SimpleHTML object information for details) SimpleHTML:GetFrameType() returns 'SimpleHTML'. SimpleHTML has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- SimpleHTML:GetFont
- SimpleHTML:GetFontObject
- SimpleHTML:GetJustifyH
- SimpleHTML:GetJustifyV
- SimpleHTML:GetShadowColor
- SimpleHTML:GetShadowOffset
- SimpleHTML:GetSpacing
- SimpleHTML:GetTextColor
- SimpleHTML:SetFont
- SimpleHTML:SetFontObject
- SimpleHTML:SetHyperlinkFormat("format") - Set the string.format format to use to display hyperlinks.
- SimpleHTML:SetJustifyH
- SimpleHTML:SetJustifyV
- SimpleHTML:SetShadowColor
- SimpleHTML:SetShadowOffset
- SimpleHTML:SetSpacing
- SimpleHTML:SetText("text") - Set the text to be displayed.
- SimpleHTML:SetTextColor(r,g,b) - Set the color of displayed text.
Slider
(See Slider object information for details) Slider:GetFrameType() returns 'Slider'. Slider has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- Slider:GetMinMaxValues() - Get the current bounds of the slider.
- Slider:GetOrientation
- Slider:GetValue() - Get the current value of the slider.
- Slider:GetValueStep() - Get the current step size of the slider.
- Slider:SetMinMaxValues(min, max) - Set the bounds of the slider.
- Slider:SetOrientation
- Slider:SetValue(value) - Set the value of the slider.
- Slider:SetValueStep(value) - Set the step size of the slider.
StatusBar
(See StatusBar object information for details) StatusBar:GetFrameType() returns 'StatusBar'. StatusBar has all of the methods from Frame, LayoutFrame and UIObject, plus the following:
- StatusBar:GetMinMaxValues() - Get the current bounds of the bar.
- StatusBar:GetOrientation
- StatusBar:GetStatusBarColor
- StatusBar:GetStatusBarTexture
- StatusBar:GetValue() - Get the current value of the bar.
- StatusBar:SetMinMaxValues(min, max) - Set the bounds of the bar.
- StatusBar:SetOrientation
- StatusBar:SetStatusBarColor(r,g,b[,a]) - Set the color of the bar.
- StatusBar:SetStatusBarTexture("file"[, "layer"]) - Sets the texture of the bar.
- StatusBar:SetValue(value) - Set the value of the bar.
TaxiRouteFrame
You are only allowed a single instance of this widget. (See TaxiRouteFrame object information for details) TaxiRouteFrame:GetFrameType() returns 'Frame'. TaxiRouteFrame has all of the methods from Frame, LayoutFrame and UIObject.
WorldFrame
You are only allowed a single instance of this widget. (See WorldFrame object information for details) WorldFrame:GetFrameType() returns 'Frame'. WorldFrame has all of the methods from Frame, LayoutFrame and UIObject.
Button Derivatives
CheckButton
(See CheckButton object information for details) CheckButton:GetFrameType() returns 'CheckButton'. CheckButton has all of the methods from Button, Frame, LayoutFrame and UIObject, plus the following:
- CheckButton:GetChecked() - Get the status of the checkbox.
- CheckButton:SetChecked([state]) - Set the status of the checkbox.
- CheckButton:SetCheckedTexture("texture") - Set the texture to use for a checked box.
- CheckButton:SetDisabledCheckedTexture("texture") - Set the texture to use for an unchecked box.
LootButton
(See LootButton object information for details) LootButton:GetFrameType() returns 'LootButton'. LootButton has all of the methods from Button, Frame, LayoutFrame and UIObject, plus the following:
- LootButton:SetSlot(index) - Set which the item to loot if the button is clicked.
Model Derivatives
PlayerModel
(See PlayerModel object information for details) PlayerModel:GetFrameType() returns 'PlayerModel'. PlayerModel has all of the methods from Model, Frame, LayoutFrame and UIObject, plus the following:
- PlayerModel:RefreshUnit()
- PlayerModel:SetRotation(rotationRadians)
- PlayerModel:SetUnit("unit")
PlayerModel Derivatives
DressUpModel
(See DressUpModel object information for details) DressUpModel:GetFrameType() returns 'DressUpModel'. DressUpModel has all of the methods from PlayerModel, Model, Frame, LayoutFrame and UIObject, plus the following:
- DressUpModel:Dress() - Set the model to reflect the character's current inventory.
- DressUpModel:TryOn("item") - Add the specified item to the model.
- DressUpModel:Undress() - Set the model to reflect the character without inventory.
TabardModel
(See TabardModel object information for details) TabardModel:GetFrameType() returns 'TabardModel'. TabardModel has all of the methods from PlayerModel, Model, Frame, LayoutFrame and UIObject, plus the following:
- TabardModel:CanSaveTabardNow() - Indicate if the tabard can be saved.
- TabardModel:CycleVariation(variationIndex, delta)
- TabardModel:GetLowerBackgroundFileName
- TabardModel:GetLowerEmblemFileName
- TabardModel:GetLowerEmblemTexture("textureName")
- TabardModel:GetUpperBackgroundFileName
- TabardModel:GetUpperEmblemFileName
- TabardModel:GetUpperEmblemTexture("textureName")
- TabardModel:InitializeTabardColors()
- TabardModel:Save() - Save the tabard.
Region Derivatives
FontString
(See FontString object information for details) FontString:GetFrameType() returns 'FontString'. FontString has all of the methods from Region, LayoutFrame and UIObject, plus the following:
- FontString:GetFont() - Returns the font, size, and flags currently used for display.
- FontString:GetFontObject
- FontString:GetJustifyH
- FontString:GetJustifyV
- FontString:GetShadowColor
- FontString:GetShadowOffset
- FontString:GetSpacing
- FontString:GetStringWidth() - Returns the width in pixels of the current string in the current font (without line wrapping).
- FontString:GetText() - Get the displayed text.
- FontString:GetTextColor() - Get the color of the displayed text.
- FontString:SetAlphaGradient(start, length) - Create or remove an alpha gradient over the text.
- FontString:SetFont("font", size[, "flags"]) - Set the font to use for display.
- FontString:SetFontObject
- FontString:SetJustifyH("direction") - Set the horizontal justification of this string.
- FontString:SetJustifyV("direction") - Set the vertical justification of this string.
- FontString:SetNonSpaceWrap(wrapFlag) - Set whether long strings without spaces are wrapped or truncated.
- FontString:SetShadowColor
- FontString:SetShadowOffset
- FontString:SetSpacing
- FontString:SetText("text") - Set the displayed text.
- FontString:SetTextColor(r,g,b[,a]) - Set the color of the text.
- FontString:SetTextHeight(pixelHeight) - Set the height of the text by scaling graphics (Note: Can distort text).
- FontString:SetVertexColor(r,g,b[,a])
Texture
(See Texture object information for details) Texture:GetFrameType() returns 'Texture'. Texture has all of the methods from Region, LayoutFrame and UIObject, plus the following:
- Texture:GetBlendMode
- Texture:GetTexture() - Gets this texture's current texture path.
- Texture:GetVertexColor
- Texture:SetBlendMode
- Texture:SetDesaturated(flag) - Set whether this texture should be displayed with no saturation (IMPORTANT: This has a return value)
- Texture:SetGradient("orientation", minR,minG,minB, maxR,maxG,maxB)
- Texture:SetGradientAlpha("orientation", minR,minG,minB,minA, maxR,maxG,maxB,maxA)
- Texture:SetTexCoord(minX,maxX,minY,maxY or ULx,ULy,LLx,LLy,URx,URy,LRx,LRy) - Set the corner coordinates for texture display.
- Texture:SetTexture("texturePath" or r,g,b[,a]) - Sets the texture to be displayed
- Texture:SetVertexColor(r,g,b[,a])