Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Adjusts the x and y offset of the region.

ScriptRegionResizing:AdjustPointsOffset(x, y)

Arguments[]

x
number - Offset right (negative for left).
y
number - Offset up (negative for down).

Details[]

  • Equivalent to looping through all anchor points and shifting the x and y offsets.

Example[]

local f = CreateFrame("Frame", nil, UIParent)
f:SetPoint("CENTER")
f:SetSize(64, 64)
f.tex = f:CreateTexture()
f.tex:SetAllPoints(f)
f.tex:SetTexture("interface/icons/inv_mushroom_11")

-- slowly moves the mushroom to the topright of the screen
C_Timer.NewTicker(1, function() f:AdjustPointsOffset(5, 5) end)

Patch changes[]

Dragonflight Patch 10.1.7 (2023-09-05): Cannot be called on secure frames while in combat.
Shadowlands Patch 9.0.1 (2020-10-13): Added.

Advertisement