funkydude / BasicMinimap

BasicMinimap is a basic solution to a clean, square minimap for World of Warcraft.
17 stars 10 forks source link

Compatibility with FarmHud #54

Closed hizuro closed 3 years ago

hizuro commented 4 years ago

On enable FarmHud the backdropFrame from BasicMinimap is difficult to catch. Please use the following function to help for a better cooperation between our addons. ;-)

if FarmHud then
    FarmHud:RegisterForeignAddOnObject( backdropFrame, "BasicMinimap")
end

For testing i've added this lines into Login( ) function.

Greetings Hizuro

funkydude commented 4 years ago

Hi. I don't mind adding this, but I'd like to know what the problem is exactly. Is this an issue with correctly restoring the Minimap to it's previous state when turning off FarmHud?

Would registering the custom ZoneText, Coords & Clock also be useful?

hizuro commented 4 years ago

WoWScrnShot_111020_082624 The backdropFrame are moving with the Minimap in the middle of the screen when turning on FarmHud. The restoring doesn't make problems. More then backdropFrame are not necessary because all other elements are bound by SetPoint to the backdropFrame. Alternative you can give backdropFrame a name like BasicMinimapBackdrop and i can add it to my table anchoredFrames.

hizuro commented 3 years ago

It's okay. I found a way to get your backdropFrame with BasicMinimap.backdrop:GetParent(). /close