Thread Tools Display Modes
02-22-12, 08:21 AM   #1
dbaaf
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Jan 2012
Posts: 18
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
__________________
  Reply With Quote
02-22-12, 08:28 AM   #2
Coldkil
A Cliff Giant
 
Coldkil's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 70
Originally Posted by dbaaf View Post
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.
  Reply With Quote
02-22-12, 08:35 AM   #3
dbaaf
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Jan 2012
Posts: 18
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
__________________

Last edited by dbaaf : 02-22-12 at 08:42 AM.
  Reply With Quote
02-22-12, 08:54 AM   #4
Talyrius
An Onyxian Warder
 
Talyrius's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 363
Code:
Minimap:SetAlpha(0)

Minimap:SetScript("OnEnter", function() Minimap:SetAlhpa(1) end)
Minimap:SetScript("OnLeave", function() Minimap:SetAlpha(0) end)
There is your problem.
  Reply With Quote
02-22-12, 08:57 AM   #5
dbaaf
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Jan 2012
Posts: 18
oh my god seems like i need glasses

thank you again!
__________________
  Reply With Quote
02-22-12, 11:31 AM   #6
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Originally Posted by dbaaf View Post
oh my god seems like i need glasses

thank you again!
You also need to enable Lua errors so things like this are brought to your attention.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Mouseover Minimap


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off