Hello again,
I'm working on a Minimap addon and want to show/hide a Minimap Icon on hovering the Minimap.
I can't get my if working becasue it is expecting a function argument according to error code. This is my code:
Lua Code:
MiniMapTrackingBackground:SetAlpha(0)
MiniMapTracking:ClearAllPoints()
MiniMapTracking:SetPoint("TOPRIGHT", Minimap, 1, 1)
MiniMapTrackingButtonBorder:Hide();
MiniMapTrackingButton:SetBackdropBorderColor(0, 0, 0)
if Minimap:isMouseOver then
MiniMapTrackingButton:Show();
else
MiniMapTrackingButton:Hide();
end
thanks for the help in advance