mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 21:10:49 +00:00
actionbar: reload hover position after cvar update
This commit is contained in:
@@ -415,9 +415,13 @@ pfUI:RegisterModule("actionbar", function ()
|
|||||||
frame.hover:SetParent(frame)
|
frame.hover:SetParent(frame)
|
||||||
frame.hover:SetPoint("TOPLEFT", frame, "TOPLEFT", -5, 5)
|
frame.hover:SetPoint("TOPLEFT", frame, "TOPLEFT", -5, 5)
|
||||||
frame.hover:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", 5, -5)
|
frame.hover:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", 5, -5)
|
||||||
|
|
||||||
frame.hover:SetFrameStrata("BACKGROUND")
|
frame.hover:SetFrameStrata("BACKGROUND")
|
||||||
|
|
||||||
|
frame.hover:RegisterEvent("CVAR_UPDATE")
|
||||||
|
frame.hover:SetScript("OnEvent", function()
|
||||||
|
this.x = nil
|
||||||
|
end)
|
||||||
|
|
||||||
frame.hover:SetScript("OnUpdate", function()
|
frame.hover:SetScript("OnUpdate", function()
|
||||||
-- reset frame positions to UIParent
|
-- reset frame positions to UIParent
|
||||||
if not this.resetpos then
|
if not this.resetpos then
|
||||||
@@ -436,10 +440,10 @@ pfUI:RegisterModule("actionbar", function ()
|
|||||||
local fymax = fy-this:GetHeight()
|
local fymax = fy-this:GetHeight()
|
||||||
|
|
||||||
this.x = fx
|
this.x = fx
|
||||||
this.xmax = fxmax
|
this.xmax = floor(fxmax)
|
||||||
|
|
||||||
this.y = fy
|
this.y = fy
|
||||||
this.ymax = fymax
|
this.ymax = floor(fymax)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- get cursor position
|
-- get cursor position
|
||||||
|
|||||||
Reference in New Issue
Block a user