RSS

Вторник, 05.11.2024, 11:05
Главная » WoW API »

API Функции

[ Добавить запись ]

В разделе материалов: 7079
Показано материалов: 2901-2950
Страницы: « 1 2 ... 57 58 59 60 61 ... 141 142 »

Название Описание
region = GameTooltip:CreateTitleRegion() Creates a title region for dragging the frame.
texture = GameTooltip:CreateTexture(["name" [, "layer" [, "inherits" [, sublevel]]]]) Creates a new [[docs/widgets/Texture`Texture`]] as a child of the frame.
fontstring = GameTooltip:CreateFontString(["name" [, "layer" [, "inherits"]]]) Creates a new [[docs/widgets/FontString`FontString`]] as a child of the frame.
animationGroup = GameTooltip:CreateAnimationGroup(["name" [, "inheritsFrom"]]) Creates a new AnimationGroup as a child of the region.
GameTooltip:ClearLines() Clears the tooltip's contents.
GameTooltip:ClearAllPoints() Removes all anchor points from the region.
canChange = GameTooltip:CanChangeProtectedState() Returns whether protected properties of the region can be changed by non-secure scripts.
enabled = GameTooltip:CanChangeAttribute() Returns whether secure frame attributes can currently be changed.
GameTooltip:AppendText("text") Adds text to the first line of the tooltip.
GameTooltip:AllowAttributeChanges() Temporarily allows insecure code to modify the frame's attributes during combat.
GameTooltip:AddTexture("texture") Adds a texture to the last tooltip line.
GameTooltip:AddSpellByID() Функция еще не задокументированна.
GameTooltip:AddLine("text" [, r [, g [, b [, wrap]]]]) Adds a line of text to the tooltip.
GameTooltip:AddFontStrings(left, right) Adds `FontString` objects to the tooltip, allowing it to display an additional line of text.
GameTooltip:AddDoubleLine("textLeft", "textRight" [, rL [, gL [, bL [, rR [, gR [, bR]]]]]]) Adds a line to the tooltip with both left-side and right-side portions.
Frame:UnregisterEvent("event") Unregisters the frame for an event.
Frame:UnregisterAllEvents() Unregisters the frame from any [[docs/eventsevents]] for which it is registered.
Frame:StopMovingOrSizing() Ends movement or resizing of the frame initiated with [[docs/widgets/Frame/StartMoving`:StartMoving()`]] or [[docs/widgets/Frame/StartSizing`:StartSizing()`]]
Frame:StopAnimating() Stops any active animations involving the region or its children.
Frame:StartSizing() Begins resizing the frame via mouse movement.
Frame:StartMoving() Begins repositioning the frame via mouse movement.
Frame:Show() Shows the region.
Frame:SetWidth(width) Sets the region's width.
Frame:SetUserPlaced(enable) Flags the frame for automatic saving and restoration of position and dimensions.
Frame:SetToplevel(enable) Sets whether the frame should automatically come to the front when clicked.
Frame:SetSize(width, height) Sets the size of the region to the specified values.
Frame:SetScript("scriptType", handler) Sets the widget's handler function for a script.
Frame:SetScale(scale) Sets the frame's scale factor.
Frame:SetResizable(enable) Sets whether the frame can be resized by the user.
Frame:SetPropagateKeyboardInput() Функция еще не задокументированна.
Frame:SetPoint("point" [, relativeTo [, "relativePoint" [, xOffset [, yOffset]]]]) Sets an anchor point for the region.
Frame:SetParent(frame) or Frame:SetParent("name") Makes another frame the parent of this region.
Frame:SetMovable(enable) Sets whether the frame can be moved by the user.
Frame:SetMinResize(minWidth, minHeight) Sets the minimum size of the frame for user resizing.
Frame:SetMaxResize(maxWidth, maxHeight) Sets the maximum size of the frame for user resizing.
Frame:SetID(id) Sets a numeric identifier for the frame.
Frame:SetHitRectInsets(left, right, top, bottom) Sets the insets from the frame's edges which determine its mouse-interactable area.
Frame:SetHeight(height) Sets the region's height.
Frame:SetFrameStrata("strata") Sets the general layering strata of the frame.
Frame:SetFrameLevel(level) Sets the level at which the frame is layered relative to others in its strata.
Frame:SetDontSavePosition() Функция еще не задокументированна.
Frame:SetDepth(depth) Sets the 3D depth of the frame (for stereoscopic 3D configurations)
Frame:SetClampedToScreen(enable) Sets whether the frame's boundaries should be limited to those of the screen.
Frame:SetClampRectInsets(left, right, top, bottom) Sets offsets from the frame's edges used when limiting user movement or resizing of the frame.
Frame:SetBackdropColor(red, green, blue [, alpha]) Sets a shading color for the frame's background graphic.
Frame:SetBackdropBorderColor(red, green, blue [, alpha]) Sets a shading color for the frame's border graphic.
Frame:SetBackdrop(backdrop) Sets a backdrop graphic for the frame.
Frame:SetAttribute("name", value) Sets a secure frame attribute.
Frame:SetAlpha(alpha) Sets the opacity of the region relative to its parent.
Frame:SetAllPoints([region]) or Frame:SetAllPoints(["name"]) Sets all anchor points of the region to match those of another region.