mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 01:46:03 +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:SetPoint("TOPLEFT", frame, "TOPLEFT", -5, 5)
|
||||
frame.hover:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", 5, -5)
|
||||
|
||||
frame.hover:SetFrameStrata("BACKGROUND")
|
||||
|
||||
frame.hover:RegisterEvent("CVAR_UPDATE")
|
||||
frame.hover:SetScript("OnEvent", function()
|
||||
this.x = nil
|
||||
end)
|
||||
|
||||
frame.hover:SetScript("OnUpdate", function()
|
||||
-- reset frame positions to UIParent
|
||||
if not this.resetpos then
|
||||
@@ -436,10 +440,10 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
local fymax = fy-this:GetHeight()
|
||||
|
||||
this.x = fx
|
||||
this.xmax = fxmax
|
||||
this.xmax = floor(fxmax)
|
||||
|
||||
this.y = fy
|
||||
this.ymax = fymax
|
||||
this.ymax = floor(fymax)
|
||||
end
|
||||
|
||||
-- get cursor position
|
||||
|
||||
Reference in New Issue
Block a user