Minimap won't move to edge of screen with mask
So, I've gone ahead and created an alpha mask for my Minimap to make it rectangular, this works great.
I then wrote some lua to adjust the position of elements on the minimap, such as the mail icon, zone text, and clock. I also adjusted the hitbox of the minimap to match the new minimap shape, with the rectangular alpha map. Finally, I went to adjust the minimap into the final desired location on screen... And it doesn't budge. The other elements work perfectly, just not the minimap itself. Code:
--===============================================================================-- https://imgur.com/a/WrmRkxg The only change between those two screenshots is on this line: Code:
Minimap:SetPoint("TOPRIGHT",UIParent,-5,50) I've looked at other addons that provide a rectangular minimap and they don't seem to be doing anything special. I haven't tested that any of them exhibit the same behavior or not, though. It's like the minimap is bound on-screen for some reason and I can't figure out why... Any suggestions to fix this? |
Have you checked the MinimapCluster via /fstack?
The cluster is parenting the Minimap. Here is what I am doing with rMinimap. I use my own minimap mask too. https://github.com/zorker/rothui/blo...p/core.lua#L29 |
The cluster should not affect the placement of the minimap if the position is being changed.
OP: You changed everything you could see, but you forget that the minimap is actually still a square, and is set to not go off-screen. You can either turn that off, or allow it to go off by a predetermined amount. |
Quote:
Quote:
Moving the Minimap frame also moves the cluster frame, which is revealed by fstack appropriately. I also used /run print(Minimap:IsClampedToScreen()) as well as /run print(MinimapCluster:IsClampedToScreen()) which both return false. I went ahead and set the clamp rects appropriately (negative 58 on top and bottom to match the mask, 0 on left and right) anyways, as well as trying Minimap:SetClampedToScreen(false) and MinimapCluster:SetClampedToScreen(false), with no impact. I also tried setting the parent of Minimap to WorldFrame instead of UIParent, but that just messed with the scale inheritance and nothing else. I'll zip up just the minimap portion of this so people can play with it if they like, but it seems like I am limited to the constraints of the mask texture no matter what I try. For now I will settle for a stretched minimap that I can position where I want. It looks uglier, but at least it fits. This might be a limitation of the game engine, at this point. Here's a link to what I have right now ( A bit ugly admittedly but I've been throwing the kitchen sink at it lol): https://drive.google.com/open?id=1tW...VE4Qs4kD8bTSt7 |
All times are GMT -6. The time now is 05:21 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI