Quantcast

Ackis Recipe List:

Ackis [10-30-08 - 19:50]
Ackis Recipe List:
- Play around with strata/levels fixing tickets 55 and 165
- Dry-coded (Compiles with luac -p)
Filename
ARLFrame.lua
diff --git a/ARLFrame.lua b/ARLFrame.lua
index d1f1f79..a861b5f 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -407,7 +407,7 @@ function addon:ShowScanButton()

 	end

-	addon.ScanButton:SetFrameStrata("DIALOG")
+	addon.ScanButton:SetFrameStrata("HIGH")
 	addon.ScanButton:Show()

 end
@@ -3136,7 +3136,7 @@ function addon:CreateFrame(
 		addon.bgTexture:SetTexture("Interface\\Addons\\AckisRecipeList\\img\\main")
 		addon.bgTexture:SetAllPoints(addon.Frame)
 		addon.bgTexture:SetTexCoord(0, (293/512), 0, (447/512))
-		addon.Frame:SetFrameStrata("BACKGROUND")
+		addon.Frame:SetFrameStrata("MEDIUM")
 		addon.Frame:SetHitRectInsets(5, 5, 5, 5)

 		addon.Frame:EnableMouse(true)
@@ -3191,7 +3191,7 @@ function addon:CreateFrame(

 		-- Stuff in the non-expanded frame (or both)
 		local ARL_CloseXButton = CreateFrame("Button", "ARL_CloseXButton", addon.Frame, "UIPanelCloseButton")
-			ARL_CloseXButton:SetFrameLevel(5)
+			--ARL_CloseXButton:SetFrameLevel(5)
 			ARL_CloseXButton:SetScript("OnClick",
 				function(this)
 					this:GetParent():Hide()
@@ -3245,7 +3245,7 @@ function addon:CreateFrame(
 			ARL_ProgressBar:SetStatusBarTexture("Interface\\Addons\\AckisRecipeList\\img\\progressbar")
 			ARL_ProgressBar:SetOrientation("HORIZONTAL")
 			ARL_ProgressBar:SetStatusBarColor(0.25, 0.25, 0.75)
-			ARL_ProgressBar:SetFrameStrata("LOW")
+			--ARL_ProgressBar:SetFrameStrata("LOW")

 			ARL_ProgressBar:SetMinMaxValues(pbMin, pbMax)
 			ARL_ProgressBar:SetValue(pbCur)
@@ -3338,7 +3338,7 @@ function addon:CreateFrame(
 			addon.flyTexture:SetTexture("Interface\\Addons\\AckisRecipeList\\img\\fly_2col")
 			addon.flyTexture:SetAllPoints(addon.Flyaway)
 			addon.flyTexture:SetTexCoord(0, (234/256), 0, (312/512))
-			addon.Flyaway:SetFrameStrata("LOW")
+			--addon.Flyaway:SetFrameStrata("LOW")
 			addon.Flyaway:SetHitRectInsets(5, 5, 5, 5)

 			addon.Flyaway:EnableMouse(true)
@@ -3356,7 +3356,7 @@ function addon:CreateFrame(
 		addon.Fly_General = CreateFrame("Frame", "addon.Fly_General", addon.Flyaway)
 			addon.Fly_General:SetWidth(210)
 			addon.Fly_General:SetHeight(280)
-			addon.Fly_General:SetFrameStrata("MEDIUM")
+			--addon.Fly_General:SetFrameStrata("MEDIUM")
 			addon.Fly_General:EnableMouse(true)
 			addon.Fly_General:EnableKeyboard(true)
 			addon.Fly_General:SetMovable(false)
@@ -3389,7 +3389,7 @@ function addon:CreateFrame(
 		addon.Fly_Obtain = CreateFrame("Frame", "addon.Fly_Obtain", addon.Flyaway)
 			addon.Fly_Obtain:SetWidth(210)
 			addon.Fly_Obtain:SetHeight(280)
-			addon.Fly_Obtain:SetFrameStrata("MEDIUM")
+			--addon.Fly_Obtain:SetFrameStrata("MEDIUM")
 			addon.Fly_Obtain:EnableMouse(true)
 			addon.Fly_Obtain:EnableKeyboard(true)
 			addon.Fly_Obtain:SetMovable(false)
@@ -3434,7 +3434,7 @@ function addon:CreateFrame(
 		addon.Fly_Binding = CreateFrame("Frame", "addon.Fly_Binding", addon.Flyaway)
 			addon.Fly_Binding:SetWidth(210)
 			addon.Fly_Binding:SetHeight(280)
-			addon.Fly_Binding:SetFrameStrata("MEDIUM")
+			--addon.Fly_Binding:SetFrameStrata("MEDIUM")
 			addon.Fly_Binding:EnableMouse(true)
 			addon.Fly_Binding:EnableKeyboard(true)
 			addon.Fly_Binding:SetMovable(false)
@@ -3460,7 +3460,7 @@ function addon:CreateFrame(
 		addon.Fly_Item = CreateFrame("Frame", "addon.Fly_Item", addon.Flyaway)
 			addon.Fly_Item:SetWidth(210)
 			addon.Fly_Item:SetHeight(280)
-			addon.Fly_Item:SetFrameStrata("MEDIUM")
+			--addon.Fly_Item:SetFrameStrata("MEDIUM")
 			addon.Fly_Item:EnableMouse(true)
 			addon.Fly_Item:EnableKeyboard(true)
 			addon.Fly_Item:SetMovable(false)
@@ -3590,7 +3590,7 @@ function addon:CreateFrame(
 		addon.Fly_Player= CreateFrame("Frame", "addon.Fly_Player", addon.Flyaway)
 			addon.Fly_Player:SetWidth(112)
 			addon.Fly_Player:SetHeight(280)
-			addon.Fly_Player:SetFrameStrata("MEDIUM")
+			--addon.Fly_Player:SetFrameStrata("MEDIUM")
 			addon.Fly_Player:EnableMouse(true)
 			addon.Fly_Player:EnableKeyboard(true)
 			addon.Fly_Player:SetMovable(false)
@@ -3614,7 +3614,7 @@ function addon:CreateFrame(
 		addon.Fly_Rep = CreateFrame("Frame", "addon.Fly_Rep", addon.Flyaway)
 			addon.Fly_Rep:SetWidth(112)
 			addon.Fly_Rep:SetHeight(280)
-			addon.Fly_Rep:SetFrameStrata("MEDIUM")
+			--addon.Fly_Rep:SetFrameStrata("MEDIUM")
 			addon.Fly_Rep:EnableMouse(true)
 			addon.Fly_Rep:EnableKeyboard(true)
 			addon.Fly_Rep:SetMovable(false)
@@ -3642,7 +3642,7 @@ function addon:CreateFrame(
 			addon.Fly_Rep_OW= CreateFrame("Frame", "addon.Fly_Rep_OW", addon.Fly_Rep)
 			addon.Fly_Rep_OW:SetWidth(150)
 			addon.Fly_Rep_OW:SetHeight(280)
-			addon.Fly_Rep_OW:SetFrameStrata("MEDIUM")
+			--addon.Fly_Rep_OW:SetFrameStrata("MEDIUM")
 			addon.Fly_Rep_OW:EnableMouse(true)
 			addon.Fly_Rep_OW:EnableKeyboard(true)
 			addon.Fly_Rep_OW:SetMovable(false)
@@ -3682,7 +3682,7 @@ function addon:CreateFrame(
 			addon.Fly_Rep_BC= CreateFrame("Frame", "addon.Fly_Rep_BC", addon.Fly_Rep)
 			addon.Fly_Rep_BC:SetWidth(150)
 			addon.Fly_Rep_BC:SetHeight(280)
-			addon.Fly_Rep_BC:SetFrameStrata("MEDIUM")
+			--addon.Fly_Rep_BC:SetFrameStrata("MEDIUM")
 			addon.Fly_Rep_BC:EnableMouse(true)
 			addon.Fly_Rep_BC:EnableKeyboard(true)
 			addon.Fly_Rep_BC:SetMovable(false)
@@ -3777,7 +3777,7 @@ function addon:CreateFrame(
 			addon.Fly_Rep_LK= CreateFrame("Frame", "addon.Fly_Rep_LK", addon.Fly_Rep)
 			addon.Fly_Rep_LK:SetWidth(150)
 			addon.Fly_Rep_LK:SetHeight(280)
-			addon.Fly_Rep_LK:SetFrameStrata("MEDIUM")
+			--addon.Fly_Rep_LK:SetFrameStrata("MEDIUM")
 			addon.Fly_Rep_LK:EnableMouse(true)
 			addon.Fly_Rep_LK:EnableKeyboard(true)
 			addon.Fly_Rep_LK:SetMovable(false)