Help Improve Simple UI Custom Addon?

So this seems to bug out a lot and only moves the “eye” image but sometimes the mouseover tooltip isn’t there - can be fixed by /reload

also I would like to anchor this to the minimap if possible so i don’t need to resize for monitor change.

local frame = CreateFrame("frame")
frame:RegisterEvent("ADDON_LOADED")
frame:SetScript("OnEvent", function(self, event, addon) 

QueueStatusButtonIcon:ClearAllPoints() QueueStatusButtonIcon:SetPoint("RIGHT",UIParent,-209,409)QueueStatusButtonIcon:SetUserPlaced(true)
end)

local frame = CreateFrame("frame")
frame:RegisterEvent("ADDON_LOADED")
frame:SetScript("OnEvent", function(self, event, addon) 

QueueStatusButton:ClearAllPoints() 
QueueStatusButton:SetPoint("RIGHT",UIParent,-209,409)QueueStatusButton:SetUserPlaced(true)
end)


local frame = CreateFrame("frame")
frame:RegisterEvent("ADDON_LOADED")
frame:SetScript("OnEvent", function(self, event, addon) 

MainStatusBar:ClearAllPoints() 
MainStatusBar:SetPoint("RIGHT",UIParent,1000,1000)MainStatusBarTrackingContainer:SetUserPlaced(true)
end)

Replace everything with:

local function MoveQSB()
	UIParent.ClearAllPoints(QueueStatusButton)
	UIParent.SetPoint(QueueStatusButton, "RIGHT", Minimap, "LEFT", -10, 0)
end
MoveQSB()
hooksecurefunc(QueueStatusButton, "SetPoint", MoveQSB)

The positon is relative to the minimap, adjust as required.

MainStatusBar doesn’t exist (retail) and would just be causing an error unless it’s from an addon.

1 Like

Wow you are so talented Fizzlemizz!

This isn’t the first time you’ve provided an elegant solution to my macro/lua problems! Might have been on another character that I was posting on though.

Wow thank you again!

1 Like