WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   How to hide all icons on Minimap? (https://www.wowinterface.com/forums/showthread.php?t=57871)

Lybrial 03-09-20 08:29 AM

How to hide all icons on Minimap?
 
Does someone know how to hide all icons on the minimap?
I implemented a minimap which is only showing on mouseover. Im using
Code:

UIFrameFadeIn
and
Code:

UIFrameFadeOut
to do that. That works perfectly for the minimap itself but all the icons on the minimap (player, pet, group members, quest icons, ....) are still visible even when the alpha of the minimap is set to 0.

Narfi 03-09-20 11:52 AM

Perhaps you have to fade out the buttons separately

Try
/script ChatFrame1:AddMessage("frame name: " .. GetMouseFocus():GetName())
while mouseover

or
/framestack
to find the names and add them to your code.

Regards

Lybrial 03-09-20 01:22 PM

There are no results for those icons. No frames, no names.

Narfi 03-10-20 01:09 AM

1 Attachment(s)
Got these ones (see attached).

Regards

Lybrial 03-10-20 01:15 AM

These arent the icons I mean. Here is what I mean:



On the left side you see the "normal" visible minimap. You can see three icons there.
One for the direction, one for the flying master and one for the shred master.

On the right side you see the "invisible" minimap with alpha set to 0. You can stil
see the icons. Those icons are no frames, at least you cant get the frames with
framestack. Also they arent children or regions of the minimap or minimap cluster.

Narfi 03-10-20 05:00 AM

Ahh ;)

These are the blip textures, perhaps you can try something with Minimap:SetBlipTexture.

https://wowwiki.fandom.com/wiki/API_...SetBlipTexture

Don't know if this works until now.

Cheers

jeruku 03-11-20 09:43 AM

Quote:

Originally Posted by Narfi (Post 335322)
Ahh ;)

These are the blip textures, perhaps you can try something with Minimap:SetBlipTexture.

https://wowwiki.fandom.com/wiki/API_...SetBlipTexture

Don't know if this works until now.

Cheers

This, as there's no other way. Also try moving after the minimap goes transparent, it should update the blips; this is true if you change the size, scale, or alpha of the minimap.

Lybrial 03-12-20 06:43 AM

Thx for the hint guys. I solved it without caring about the blib textures.
I created a background frame and attached my Minimap to it. I now do
the mouseover alpha changes on the background frame.

When the frame alpha is set to zero i do Minimap:Hide() and when it is set
back to 1 I do Minimap:Show().

Narfi 03-12-20 08:52 AM

Quote:

Originally Posted by Lybrial (Post 335340)
Thx for the hint guys. I solved it without caring about the blib textures.
I created a background frame and attached my Minimap to it. I now do
the mouseover alpha changes on the background frame.

When the frame alpha is set to zero i do Minimap:Hide() and when it is set
back to 1 I do Minimap:Show().

Great :D love this easy solution


All times are GMT -6. The time now is 04:09 AM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI