WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Mouseover Minimap (https://www.wowinterface.com/forums/showthread.php?t=42676)

dbaaf 02-22-12 08:21 AM

Mouseover Minimap
 
Hey,

im tryin to figure out how this works?

search function = nothing
google = nothing :(

just want show the default minimap on mouseover if possible.
thanks in advance

Coldkil 02-22-12 08:28 AM

Quote:

Originally Posted by dbaaf (Post 252928)
Hey,

im tryin to figure out how this works?

search function = nothing
google = nothing :(

just want show the default minimap on mouseover if possible.
thanks in advance

Code:

Minimap:SetAlpha(0)

Minimap:SetScript("OnEnter", function() Minimap:SetAlhpa(1) end)
Minimap:SetScript("OnLeave", function() Minimap:SetAlpha(0) end)

AFAIK, you don't even need to register any event, and the actual blizzard frame is called Minimap so this code should work.

dbaaf 02-22-12 08:35 AM

Hey

thanks you. but it doesn't work. just sets alpha to 0, nothing happens when i mouseover the minimap. (i can click on the minimap etc. but i don't see it - I'm just hearing this "ping" sound.)

edit/

if i change the code to :


Code:

MinimapCluster:SetScript("OnEnter", function() Minimap:SetAlhpa(1) end)
MinimapCluster:SetScript("OnLeave", function() Minimap:SetAlpha(0) end)

it appears on login, i hover it = minimap hides.. and doesn't appear again.

otherwise i use


Code:

MinimapCluster:SetScript("OnEnter", function() Minimap:SetAlhpa(0) end)
MinimapCluster:SetScript("OnLeave", function() Minimap:SetAlpha(1) end)

nothing happens :confused:

Talyrius 02-22-12 08:54 AM

Code:

Minimap:SetAlpha(0)

Minimap:SetScript("OnEnter", function() Minimap:SetAlhpa(1) end)
Minimap:SetScript("OnLeave", function() Minimap:SetAlpha(0) end)

There is your problem. :p

dbaaf 02-22-12 08:57 AM

oh my god seems like i need glasses :D

thank you again! :banana:

Torhal 02-22-12 11:31 AM

Quote:

Originally Posted by dbaaf (Post 252938)
oh my god seems like i need glasses :D

thank you again! :banana:

You also need to enable Lua errors so things like this are brought to your attention.


All times are GMT -6. The time now is 06:57 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI