[HELP] Positioning Minimap > Blizz Bar Error
Hello.
Maybe someone can help me out with a somewhat weird issue. I'm using my own Minimap addon which works completely fine except for a positioning issue. This is the part of the addon which positions the minimap, which works fine. Code:
local cfg = { as soon as I try to position the map in the bottomright corner the following error occurs: Code:
74x FrameXML\MultiActionBars.lua:85: MultiBarRight:SetScale(): Scale must be > 0 Apparently the blizz code is scaling the actionbars (right bars/multibars 4/5) if I move the minimap somewhere near the area where they are!? :confused: Can anybody tell me why this is happening and what steps to take lua-wise to get rid of this behavior? Any help would be greatly appreciated. |
I had the same problem with nUI as it moves the minimap from the top corner and recreates the action bars in another location.
The only solution to the problem I could find was to turn off the show right action bars options in the game menu. Because these two button bars are connected to the minimap and any adjustment to the minimap will affect its connected frames. This works for nUI as we reuse those buttons elsewhere. I did try automatically turning off those options in code but no joy. I believe the following relates to those options but adjusting those values in nUI didn't help. https://www.townlong-yak.com/framexm...Controller.lua Lua Code:
|
It sounds as if the action bars might be anchored to the minimap, though I don't have the code in front of me to look.
Are you guys moving just the minimap itself, or the entire MinimapCluster? |
nUI moves the whole minimap cluster from what I recall.
The frame at the bottom of this file seems to be what we had problems with .. https://www.townlong-yak.com/framexm...ActionBars.xml And the MultiActionBar_Update funciton in the following https://www.townlong-yak.com/framexm...ActionBars.lua However, neither point to the minimap as being connected, so maybe a misleading thought on the problem. |
Quote:
|
Quote:
|
I move the whole cluster with rMinimap too.
|
Quote:
|
My apologies, I meant to say that it sounded like it was anchored to the MinimapCluster.
The update function in MultiActionBars.lua does indeed show that the placement of the MinimapCluster has an effect on the size/scale of the 2 right action bars. - line 63 gets the top limit for placement of these bars in relation to the bottom of the MinimapCluster frame - line 66 gets the total available space for the action bars, between the top and bottom limits -- (if the minimap cluster is below the bottom limit, this difference will be a negative value) - lines 72 and 82 check to see if the available space is less than the constant height set for the bars -- (since it's negative, it will be) - line 83 then sets the scale variable to be the available space divided by the height of the bars -- (again, since available space is negative, then scale ends up being negative) ***then you get your scale must be > 0 error Solution: Only move the Minimap and any other frames you wish to relocate. This is what PocketPlot does. (edit: Yes, you also have to move MinimapBorderTop and MinimapZoneTextButton, for example. But, this is still the best course of action anyway, IMO. There are other UI elements anchored to the MinimapCluster that you may not wish to move, or may be off-screen if a user moves their minimap to the bottom of the screen.) |
Quote:
|
Quote:
|
Quote:
I moved the minimap instead of the cluster and simply attached all objects I wanted to keep to the minimap, while hiding the stuff that I don't need. No more erros, everything is working as it should. :) Thank you again Seerah. This totally solved the issue. :banana: |
Move Minimap not MinimapCluster interactive problem
As the title said, did anyone find they had an interativity problem with the minimap after disconnecting it from the MinimapCluster frame and reparenting it ?
Since I did it with nUI the only interactivity I get is what nUI built in, as in mouse scrolling for zoom in/out. I can't see anything in Blizzards minimap files to explain what section handles the display of quest poi tooltips on the minimap but for some reason something I did stopped it from working, but none of the nUI minimap code has code for tooltips. And the tooltips from the buttons around the map work fine, just the ones inside the minimap are failing. What's strange is that my mini addon to test the separation code works fine... And here I was hoping not to have rewrite the whole minimap code in nUI *sigh* Edit: Aha, found the problem... Quote:
|
All times are GMT -6. The time now is 09:16 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI