View Single Post
07-27-18, 08:16 AM   #10
Zenjaa
A Deviate Faerie Dragon
Join Date: Jul 2009
Posts: 10
Originally Posted by Seerah View Post
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.)
thanks a lot for investigating. will see if I can make it work when I get back home this evening.
  Reply With Quote