RSS

Среда, 06.11.2024, 11:55
Главная » WoW API »

API Функции

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

В разделе материалов: 7079
Показано материалов: 3901-3950
Страницы: « 1 2 ... 77 78 79 80 81 ... 141 142 »

Название Описание
Button:SetUserPlaced(enable) Flags the frame for automatic saving and restoration of position and dimensions.
Button:SetToplevel(enable) Sets whether the frame should automatically come to the front when clicked.
Button:SetText("text") Sets the text displayed as the button's label.
Button:SetSize(width, height) Sets the size of the region to the specified values.
Button:SetScript("scriptType", handler) Sets the widget's handler function for a script.
Button:SetScale(scale) Sets the frame's scale factor.
Button:SetResizable(enable) Sets whether the frame can be resized by the user.
Button:SetPushedTexture(texture) or Button:SetPushedTexture("filename") Sets the texture used when the button is pushed.
Button:SetPushedTextOffset(x, y) Sets the offset for moving the button's label text when pushed.
Button:SetPropagateKeyboardInput() Функция еще не задокументированна.
Button:SetPoint("point" [, relativeTo [, "relativePoint" [, xOffset [, yOffset]]]]) Sets an anchor point for the region.
Button:SetParent(frame) or Button:SetParent("name") Makes another frame the parent of this region.
Button:SetNormalTexture(texture) or Button:SetNormalTexture("filename") Sets the texture used for the button's normal state.
Button:SetNormalFontObject(font) Sets the font object used for the button's normal state.
Button:SetMovable(enable) Sets whether the frame can be moved by the user.
Button:SetMotionScriptsWhileDisabled(enabled) Sets whether the button should fire [[docs/scripts/OnEnterOnEnter]]/[[docs/scripts/OnLeaveOnLeave]] events while disabled.
Button:SetMinResize(minWidth, minHeight) Sets the minimum size of the frame for user resizing.
Button:SetMaxResize(maxWidth, maxHeight) Sets the maximum size of the frame for user resizing.
Button:SetID(id) Sets a numeric identifier for the frame.
Button:SetHitRectInsets(left, right, top, bottom) Sets the insets from the frame's edges which determine its mouse-interactable area.
Button:SetHighlightTexture(texture [, "mode"]) or Button:SetHighlightTexture("filename" [, "mode"]) Sets the texture used when the button is highlighted.
Button:SetHighlightFontObject(font) Sets the font object used when the button is highlighted.
Button:SetHeight(height) Sets the region's height.
Button:SetFrameStrata("strata") Sets the general layering strata of the frame.
Button:SetFrameLevel(level) Sets the level at which the frame is layered relative to others in its strata.
Button:SetFormattedText("formatString", ...) Sets the button's label text using format specifiers.
Button:SetFontString(fontstring) Sets the `FontString` object used for the button's label text.
Button:SetDontSavePosition() Функция еще не задокументированна.
Button:SetDisabledTexture(texture) or Button:SetDisabledTexture("filename") Sets the texture used when the button is disabled.
Button:SetDisabledFontObject(font) Sets the font object used for the button's disabled state.
Button:SetDepth(depth) Sets the 3D depth of the frame (for stereoscopic 3D configurations)
Button:SetClampedToScreen(enable) Sets whether the frame's boundaries should be limited to those of the screen.
Button:SetClampRectInsets(left, right, top, bottom) Sets offsets from the frame's edges used when limiting user movement or resizing of the frame.
Button:SetButtonState("state", lock) Sets the button's state.
Button:SetBackdropColor(red, green, blue [, alpha]) Sets a shading color for the frame's background graphic.
Button:SetBackdropBorderColor(red, green, blue [, alpha]) Sets a shading color for the frame's border graphic.
Button:SetBackdrop(backdrop) Sets a backdrop graphic for the frame.
Button:SetAttribute("name", value) Sets a secure frame attribute.
Button:SetAlpha(alpha) Sets the opacity of the region relative to its parent.
Button:SetAllPoints([region]) or Button:SetAllPoints(["name"]) Sets all anchor points of the region to match those of another region.
Button:RegisterForDrag(...) Registers the frame for dragging.
Button:RegisterForClicks(...) Registers a button to receive mouse clicks.
Button:RegisterEvent("event") Registers the frame for an [[docs/eventsevent]]
Button:RegisterAllEvents() Registers the frame for all events.
Button:Raise() Increases the frame's frame level above all other frames in its strata.
Button:Lower() Reduces the frame's frame level below all other frames in its strata.
Button:LockHighlight() Locks the button in its highlight state.
visible = Button:IsVisible() Returns whether the region is visible.
enabled = Button:IsUserPlaced() Returns whether the frame is flagged for automatic saving and restoration of position and dimensions.
enabled = Button:IsToplevel() Returns whether the frame is automatically raised to the front when clicked.