This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Addon to hide minimap only inside raid instance
Post Reply
Return to board index
Post by
digitalwingx
As per title does anyone know which addon can do this?
I know the method to hide/show minimap is
MinimapCluster:Hide()
MinimapCluster:Show()
but I don't know how to bind it to the event when player enters into another zone.
Either an addon that can perform the auto hide function or some tips on how to fire up minimap hide/show functions based on zone would help.
Thanks.
Post by
213828
This post was from a user who has deleted their account.
Post by
digitalwingx
Thanks I will give it a try once server is up.
WTF Blizzard so fail
Post by
digitalwingx
I put that in a lua file which is included in toc file, doesn't work. Maybe I didnt do it right?
Post by
213828
This post was from a user who has deleted their account.
Post by
digitalwingx
Hmmm this is what I have
addons/binders/
binders.toc
binders.lua
in binders.lua:
MinimapCluster:RegisterEvent("PLAYER_ENTERING_WORLD")
MinimapCluster:Hookscript("OnEvent", function(self, event)
if event == "PLAYER_ENTERING_WORLD" then
if select(2, IsInInstance()) == "raid" then
self:Hide()
else
self:Show()
end
end
end)
in binders.toc
## Interface: 30300
## Title: Binders
Binders.lua
This error msg is what I got when I log in:
Message: Interface\AddOns\Binders\Binders.lua:2: attempt to call method 'Hookscript' (a nil value)
Time: 06/10/10 11:45:35
Count: 1
Stack: Interface\AddOns\Binders\Binders.lua:2: in main chunk
Locals: (*temporary) = nil
(*temporary) = MinimapCluster {
0 = <userdata>
}
(*temporary) = "OnEvent"
(*temporary) = <function> defined @Interface\AddOns\Binders\Binders.lua:2
(*temporary) = "attempt to call method 'Hookscript' (a nil value)"
Post by
213828
This post was from a user who has deleted their account.
Post by
digitalwingx
Ya it works thanks alot.
Post by
zoktar
any chance making minimap hide and show on mouseover?. cheers.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.