Commit ce607e8d authored by Benik's avatar Benik

Fix the chat tab fades after talking a flight path. WIP with prints

parent 8b1c22e4
...@@ -193,6 +193,10 @@ function mod:SetFlightMode(status) ...@@ -193,6 +193,10 @@ function mod:SetFlightMode(status)
LeftChatPanel:ClearAllPoints() LeftChatPanel:ClearAllPoints()
LeftChatPanel:Point("BOTTOMLEFT", self.FlightMode.bottom, "TOPLEFT", 24, 24) LeftChatPanel:Point("BOTTOMLEFT", self.FlightMode.bottom, "TOPLEFT", 24, 24)
_G.LeftChatDataPanel:Hide() _G.LeftChatDataPanel:Hide()
local achatlevel = LeftChatPanel:GetFrameLevel()
local achatstrata = LeftChatPanel:GetFrameStrata()
print(achatlevel)
print(achatstrata)
end end
-- Hide SquareMinimapButtonBar -- Hide SquareMinimapButtonBar
...@@ -304,12 +308,26 @@ function mod:SetFlightMode(status) ...@@ -304,12 +308,26 @@ function mod:SetFlightMode(status)
LeftChatPanel:SetParent(E.UIParent) LeftChatPanel:SetParent(E.UIParent)
if LeftChatPanel.backdrop.shadow then if LeftChatPanel.backdrop.shadow then
LeftChatPanel.backdrop.shadow:Show() LeftChatPanel.backdrop.shadow:Show()
LeftChatPanel.backdrop.shadow:SetFrameStrata('BACKGROUND') -- it loses its framestrata somehow. Needs digging
LeftChatPanel.backdrop.shadow:SetFrameLevel(0)
LeftChatPanel.backdrop.style:SetFrameStrata('BACKGROUND')
LeftChatPanel.backdrop.style:SetFrameLevel(9999)
local chatlevel = LeftChatPanel:GetFrameLevel()
local chatstrata = LeftChatPanel:GetFrameStrata()
print(chatlevel)
print(chatstrata)
end end
LeftChatPanel.backdrop.wideshadow:Hide() LeftChatPanel.backdrop.wideshadow:Hide()
LeftChatPanel:ClearAllPoints() LeftChatPanel:ClearAllPoints()
LeftChatPanel:Point("BOTTOMLEFT", LeftChatMover, "BOTTOMLEFT") --LeftChatPanel:SetAllPoints(LeftChatMover)
LO:RepositionChatDataPanels()
LO:ToggleChatPanels() --LO:RepositionChatDataPanels()
--LO:ToggleChatPanels()
local chatlevel = LeftChatPanel:GetFrameLevel()
local chatstrata = LeftChatPanel:GetFrameStrata()
print(chatlevel)
print(chatstrata)
LeftChatPanel:SetFrameStrata('BACKGROUND')
end end
-- Show SquareMinimapButtonBar -- Show SquareMinimapButtonBar
...@@ -400,6 +418,7 @@ function mod:Initialize() ...@@ -400,6 +418,7 @@ function mod:Initialize()
local db = E.db.benikui.colors local db = E.db.benikui.colors
self.FlightMode = CreateFrame("Frame", "BenikUIFlightModeFrame", UIParent) self.FlightMode = CreateFrame("Frame", "BenikUIFlightModeFrame", UIParent)
self.FlightMode:SetFrameLevel(1) self.FlightMode:SetFrameLevel(1)
self.FlightMode:SetFrameStrata('BACKGROUND')
self.FlightMode:SetAllPoints(UIParent) self.FlightMode:SetAllPoints(UIParent)
self.FlightMode:Hide() self.FlightMode:Hide()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment