View Single Post
12-02-06, 01:43 AM   #335
ofdeath
A Kobold Labourer
Join Date: Dec 2006
Posts: 1
Exclamation

A frame - attachPoint is "NONE" - 's default frameStrata is "MEDIUM", but it is changed in function "FuBar:Panel_OnEnter" and it isn't recovered. I think it must be recovered in function "FuBar:Panel_OnLeave".

Plz check this patch.

Code:
diff -uNr FuBar.orig/FuBar.lua FuBar/FuBar.lua
--- FuBar.orig/FuBar.lua	2006-12-02 16:24:22.787375000 +0900
+++ FuBar/FuBar.lua	2006-12-02 16:21:56.615500000 +0900
@@ -1404,6 +1404,13 @@
 	elseif point == "BOTTOM" then
 		inBottomPanel = false
 		self:ScheduleEvent("FuBar_AutoHideBottom", self.OnUpdate_AutoHideBottom, 1, self)
+	else
+		for i = 1, self:GetNumPanels() do
+			local panel = self:GetPanel(i)
+			if panel:GetAttachPoint() == point then
+				panel.frame:SetFrameStrata("MEDIUM")
+			end
+		end
 	end
 end

Last edited by ofdeath : 12-02-06 at 01:46 AM.
  Reply With Quote