RSS

Среда, 08.05.2024, 09:08
Главная » WoW API » API Виджеты » Внутриигровая подсказка »

GameTooltip:SetAnchorType("anchor" [, xOffset [, yOffset]])

[ править ]
Sets the method for anchoring the tooltip relative to its owner.
[клоны]
Sets the method for anchoring the tooltip relative to its owner.


Signature:
Code
GameTooltip:SetAnchorType("anchor" [, xOffset [, yOffset]])

Arguments:
  • anchor - Token identifying the positioning method for the tooltip relative to its owner frame (string)
      ANCHOR_BOTTOMLEFT - Align the top right of the tooltip with the bottom left of the owner
    • ANCHOR_CURSOR - Toolip follows the mouse cursor
    • ANCHOR_LEFT - Align the bottom right of the tooltip with the top left of the owner
    • ANCHOR_NONE - Tooltip appears in the default position
    • ANCHOR_PRESERVE - Tooltip's position is saved between sessions (useful if the tooltip is made user-movable)
    • ANCHOR_RIGHT - Align the bottom left of the tooltip with the top right of the owner
    • ANCHOR_TOPLEFT - Align the bottom left of the tooltip with the top left of the owner
    • ANCHOR_TOPRIGHT - Align the bottom right of the tooltip with the top right of the owner

  • xOffset - Horizontal distance from the anchor to the tooltip (number)
  • yOffset - Vertical distance from the anchor to the tooltip (number)

Также смотрите: Внутриигровая подсказка
Ссылки: http://wowprogramming.com/docs/widgets/GameTooltip/SetAnchorType