Quantcast

Fixed issue with Point() function, I'm too used to Tukui. >.>

Safturento [10-27-11 - 03:11]
Fixed issue with Point() function, I'm too used to Tukui. >.>
Filename
stAddonManager/stAddonManager.lua
stAddonManager/stAddonManager.toc
diff --git a/stAddonManager/stAddonManager.lua b/stAddonManager/stAddonManager.lua
index 70d7967..491647e 100644
--- a/stAddonManager/stAddonManager.lua
+++ b/stAddonManager/stAddonManager.lua
@@ -36,10 +36,10 @@ local function SkinFrame(frame, shadowed)
 		local shadow = CreateFrame("Frame", nil, frame)
 		shadow:SetFrameLevel(frame:GetFrameLevel())
 		shadow:SetFrameStrata(frame:GetFrameStrata())
-		shadow:Point("TOPLEFT", -3, 3)
-		shadow:Point("BOTTOMLEFT", -3, -3)
-		shadow:Point("TOPRIGHT", 3, 3)
-		shadow:Point("BOTTOMRIGHT", 3, -3)
+		shadow:SetPoint("TOPLEFT", -3, 3)
+		shadow:SetPoint("BOTTOMLEFT", -3, -3)
+		shadow:SetPoint("TOPRIGHT", 3, 3)
+		shadow:SetPoint("BOTTOMRIGHT", 3, -3)
 		shadow:SetBackdrop( {
 			edgeFile = glowTex, edgeSize = 3,
 			insets = {left = 5, right = 5, top = 5, bottom = 5},
@@ -97,11 +97,9 @@ local function SkinScrollBar(frame, thumbTrim)
 		uScroll:EnableMouse(false)

 		if not frame.trackbg then
-			-- track:Point("TOPLEFT", uScroll, "TOPLEFT", 0, 0)
-			-- track:Point("BOTTOMRIGHT", dScroll, "BOTTOMRIGHT", 0, 0)
 			frame.trackbg = CreateFrame("Frame", nil, frame)
-			frame.trackbg:Point("TOPLEFT", uScroll, "TOPLEFT", 0, 0)
-			frame.trackbg:Point("BOTTOMRIGHT", dScroll, "BOTTOMRIGHT", 0, 0)
+			frame.trackbg:SetPoint("TOPLEFT", uScroll, "TOPLEFT", 0, 0)
+			frame.trackbg:SetPoint("BOTTOMRIGHT", dScroll, "BOTTOMRIGHT", 0, 0)
 			SkinFrame(frame.trackbg)
 		end

@@ -109,8 +107,8 @@ local function SkinScrollBar(frame, thumbTrim)
 			frame:GetThumbTexture():SetTexture(nil)
 			if not frame.thumbbg then
 				frame.thumbbg = CreateFrame("Frame", nil, frame)
-				frame.thumbbg:Point("TOPLEFT", frame:GetThumbTexture(), "TOPLEFT", 2, 14)
-				frame.thumbbg:Point("BOTTOMRIGHT", frame:GetThumbTexture(), "BOTTOMRIGHT", -2, -14)
+				frame.thumbbg:SetPoint("TOPLEFT", frame:GetThumbTexture(), "TOPLEFT", 2, 14)
+				frame.thumbbg:SetPoint("BOTTOMRIGHT", frame:GetThumbTexture(), "BOTTOMRIGHT", -2, -14)
 				SkinFrame(frame.thumbbg)
 				if frame.trackbg then
 					frame.thumbbg:SetFrameLevel(frame.trackbg:GetFrameLevel()+2)
@@ -175,7 +173,7 @@ local function LoadWindow()

 		--Create scroll frame (God damn these things are a pain)
 		local scrollFrame = CreateFrame("ScrollFrame", window:GetName().."_ScrollFrame", window, "UIPanelScrollFrameTemplate")
-		scrollFrame:Point("TOPLEFT", header, "TOPLEFT", 10, -50)
+		scrollFrame:SetPoint("TOPLEFT", header, "TOPLEFT", 10, -50)
 		scrollFrame:SetWidth(window:GetWidth()-43)
 		SkinFrame(scrollFrame)
 		scrollFrame:SetHeight(window:GetHeight()-60)
@@ -215,8 +213,8 @@ local function LoadWindow()
 			button.text = button:CreateFontString(nil, "OVERLAY")
 			button.text:SetFont(unpack(font))
 			button.text:SetJustifyH("LEFT")
-			button.text:Point("LEFT", button, "RIGHT", 8, 0)
-			button.text:Point("RIGHT", scrollFrame.Anchor, "RIGHT", 0, 0)
+			button.text:SetPoint("LEFT", button, "RIGHT", 8, 0)
+			button.text:SetPoint("RIGHT", scrollFrame.Anchor, "RIGHT", 0, 0)
 			button.text:SetText(addon.title)

 			button:SetScript("OnEnter", function(self)
diff --git a/stAddonManager/stAddonManager.toc b/stAddonManager/stAddonManager.toc
index 91e1867..5f02958 100644
--- a/stAddonManager/stAddonManager.toc
+++ b/stAddonManager/stAddonManager.toc
@@ -1,6 +1,6 @@
 ## Interface: 40200
 ## Author: Safturento
-## Version: 1.0
+## Version: 1.0.1
 ## Title: |cff00aaffst|rAddonManager
 ## Notes: A simple and minimalistic addon to disable/enabled addons without logging out.