Strange strata behavior with BattlefieldMapFrame
So, I'm using the Battlefield map as my Minimap (don't ask, it's something quirky I wanted to try)
And I ran into an issue where frames cannot draw on top of the BattlefieldMapFrame regardless of strata. If i call SetParent(MainMenuBar) then the frames can draw on top of the BattleieldMapFrame, but then they disappear when entering vehicles. Here's an example of a frame I've moved onto the battlefieldmapframe: Code:
QueueStatusMinimapButton:SetParent(MainMenuBar) This has been resolved by tinkering. Seems if I set the parent to BattlefieldMapFrame, the FrameStrata to HIGH and the FrameLevel to 99 it shows on top just fine. Awesome. End result btw: https://imgur.com/a/saSjblF |
For future reference, frame level goes up to 10000. If you truly want something guaranteed to be on top, assuming its something that doesn't receive mouse events, set it to TOOLTIP with a frame level of 10000.
|
Quote:
Things turned out pretty good using the BattlefieldMap instead of the minimap: https://imgur.com/a/saSjblF |
Not to completely derail the thread, but I've wondered what the difference between the two maps are? Or, to think another way: why have two, and not simply use the mini map? I'm not talking about your project, I am referring to Blizzard's decision to have two maps that essentially do the exact same thing.
|
Quote:
|
I have not played in almost two years now, but, this sounds to me like you should take a look at Carbonite (the addon). It replaces the Blizzard maps (all, iIrc, but the "battlefield" map) with the option to integrate the minimap (Blizzards) with their minimap (a smaller version of their "world map") so that you can have the gold dot for active nodes. It is much more than that, though, as Carbonite has a few modules (which you can choose to install, or not) and was originally written as a quest aid. However, the main addon is the maps alone, I believe.
I know this is "long winded", but, it's my personal opinion and always considered Carbonite as my one "go-to" addon. :o |
Quote:
That would A) defeat the purpose of avoiding bloat by performing minimal modifications to already loaded blizzard interface elements. B) prevent learning anything. Sure, when I was much less versed and younger just looking for a way to do things, I would just install an addon |
I took Jeffy's comment to mean "install Carbonite just to look at its code, see what it is doing and why".
|
You should use the BattlefieldMapFrame.ScrollContainer as the parent, also with a big frame level like
Lua Code:
|
All times are GMT -6. The time now is 06:30 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI