Quantcast

Remove the nameplates module for now.

Scott Sibley [10-19-10 - 03:21]
Remove the nameplates module for now.
Filename
.pkgmeta
Modules/Debug/Debug.lua
diff --git a/.pkgmeta b/.pkgmeta
index 2251229..fc74409 100644
--- a/.pkgmeta
+++ b/.pkgmeta
@@ -65,5 +65,4 @@ move-folders:
     StarTip/Modules/UnitTooltip: StarTip_UnitTooltip
     StarTip/Modules/Portrait: StarTip_Portrait
     StarTip/Modules/Icons: StarTip_Icons
-    StarTip/Modules/Gestures: StarTip_Gestures
-    StarTip/Modules/Nameplate: StarTip_Nameplate
\ No newline at end of file
+    StarTip/Modules/Gestures: StarTip_Gestures
\ No newline at end of file
diff --git a/Modules/Debug/Debug.lua b/Modules/Debug/Debug.lua
index 8a3664e..e447418 100644
--- a/Modules/Debug/Debug.lua
+++ b/Modules/Debug/Debug.lua
@@ -8,6 +8,7 @@ local LibBuffer = LibStub("LibScriptableDisplayBuffer-1.0")
 local WidgetText = LibStub("LibScriptableDisplayWidgetText-1.0")
 local LibProperty = LibStub("LibScriptableDisplayProperty-1.0")
 local LibCore = LibStub("LibScriptableDisplayCore-1.0")
+local PluginUnitTooltipStats = LibStub("LibScriptableDisplayPluginUnitTooltipStats-1.0")

 local environment = {}

@@ -71,73 +72,6 @@ local function update()
 end

 function mod:OnEnable()
-	timer = timer or LibTimer:New("Debug timer", 1000, true, update)
-	if false then
-		timer:Start()
-	end
-	do return end
-			local frame = CreateFrame("Frame")
-			frame:SetParent(UIParent)
-			frame:SetParent(UIParent)
-				frame:SetBackdrop({bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
-					tile = true,
-					tileSize = 4,
-					edgeSize=4,
-					insets = { left = 0, right = 0, top = 0, bottom = 0}})
-			frame:ClearAllPoints()
-			frame:SetAlpha(1)
-			frame:SetBackdropColor(1, 1, 0)
-			frame:SetHeight(250)
-			frame:SetWidth(250)
-			frame:Show()
-			frame:SetScale(0.2)
-			self.frame0 = frame
-
-			local frame = CreateFrame("Frame")
-			frame:SetParent(self.frame0)
-				frame:SetBackdrop({bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
-					tile = true,
-					tileSize = 4,
-					edgeSize=4,
-					insets = { left = 0, right = 0, top = 0, bottom = 0}})
-			frame:ClearAllPoints()
-			frame:SetAlpha(1)
-			frame:SetBackdropColor(1, 1, 0)
-			frame:SetHeight(250)
-			frame:SetWidth(250)
-			frame:Show()
-			frame:SetScale(0.5)
-			self.frame1 = frame
-
-			local frame = CreateFrame("Frame")
-			frame:SetParent(self.frame1)
-				frame:SetBackdrop({bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
-					tile = true,
-					tileSize = 4,
-					edgeSize=4,
-					insets = { left = 0, right = 0, top = 0, bottom = 0}})
-			frame:ClearAllPoints()
-			frame:SetAlpha(1)
-			frame:SetBackdropColor(1, 1, 0)
-			frame:SetHeight(250)
-			frame:SetWidth(250)
-			frame:Show()
-			self.frame2 = frame
-
-			local frame = CreateFrame("Frame")
-			frame:SetParent(UIParent)
-				frame:SetBackdrop({bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
-					tile = true,
-					tileSize = 4,
-					edgeSize=4,
-					insets = { left = 0, right = 0, top = 0, bottom = 0}})
-			frame:ClearAllPoints()
-			frame:SetAlpha(1)
-			frame:SetBackdropColor(1, 1, 0)
-			frame:SetHeight(250)
-			frame:SetWidth(250)
-			frame:Show()
-			self.frame3 = frame
 end

 function mod:OnDisable()
@@ -145,6 +79,7 @@ function mod:OnDisable()
 end

 function mod:SetUnit()
+	local name, guild, location = PluginUnitTooltipStats.GetUnitTooltipStats(StarTip.unit)
 end

 function mod:OnHide()