Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-28-18, 07:01 PM   #1
Theroxis
A Fallenroot Satyr
Join Date: Jun 2018
Posts: 24
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)
QueueStatusMinimapButton:SetAlpha(0.8)
QueueStatusMinimapButton:SetScale(1.25)
QueueStatusMinimapButton:ClearAllPoints()
QueueStatusMinimapButton:SetPoint("TOPLEFT",BattlefieldMapFrame,-5,5)
QueueStatusMinimapButtonBorder:Hide()
QueueStatusMinimapButton:SetHighlightTexture(nil)
QueueStatusMinimapButton:SetPushedTexture(nil)
Without the SetParent(MainMenuBar) the QueueStatusMinimapButton renders BEHIND the BattlefieldMapFrame no matter what strata the BattlefieldMapFrame and the QueueStatusMinimapButton are. I've tried various other parent elements, such as the MicroButtonsMover and the GameMenu, which all worked, and then other, more logical things like BattlefieldMapFrame (Since the goal is to eventually discard the Minimap itself entirely.)

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

Last edited by Theroxis : 07-28-18 at 10:27 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Strange strata behavior with BattlefieldMapFrame


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off