Quantcast

release 5.055

Rythal [10-24-12 - 05:15]
release 5.055
Filename
Carbonite/Carbonite.lua
Carbonite/Carbonite.toc
Carbonite/NxMap.lua
Carbonite/NxQuest.lua
diff --git a/Carbonite/Carbonite.lua b/Carbonite/Carbonite.lua
index ffb89cc..8322a0f 100644
--- a/Carbonite/Carbonite.lua
+++ b/Carbonite/Carbonite.lua
@@ -26,7 +26,7 @@ function NXInit()

 	NXTITLEFULL = NXTITLE

-	Nx.VERMAJOR			= 5.054
+	Nx.VERMAJOR			= 5.055
 	Nx.VERMINOR			= .000			-- Not 0 is a test version
 	Nx.BUILD				= 292

diff --git a/Carbonite/Carbonite.toc b/Carbonite/Carbonite.toc
index 32d3c9c..949c029 100644
--- a/Carbonite/Carbonite.toc
+++ b/Carbonite/Carbonite.toc
@@ -1,6 +1,6 @@
 ## Interface: 50001
-## Title: Carbonite 5.05.04
-## Version: 5.05.04
+## Title: Carbonite 5.05.05
+## Version: 5.05.05
 ## Author: Rythal
 ## Notes: Released Under GPL
 ## DefaultState: Enabled
diff --git a/Carbonite/NxMap.lua b/Carbonite/NxMap.lua
index 57d9e62..0918761 100644
--- a/Carbonite/NxMap.lua
+++ b/Carbonite/NxMap.lua
@@ -656,7 +656,8 @@ function Nx.Map:Create (index)
 --	win:RegisterEvent ("PLAYER_LOGIN", self.OnEvent)
 --	win:RegisterEvent ("PLAYER_ENTERING_WORLD", self.OnEvent)
 	win:RegisterEvent ("WORLD_MAP_UPDATE", self.OnEvent)
-
+	win:RegisterEvent ("PLAYER_REGEN_DISABLED", self.OnEvent)
+	win:RegisterEvent ("PLAYER_REGEN_ENABLED", self.OnEvent)
 	f:SetScript ("OnMouseDown", self.OnMouseDown)
 	f:SetScript ("OnMouseUp", self.OnMouseUp)
 	f:SetScript ("OnMouseWheel", self.OnMouseWheel)
@@ -1520,18 +1521,20 @@ function Nx.Map:UpdateWorldMap()
 			f:SetScale (.001)
 		end
 	end
-	self.Arch:DrawNone();
-	if Nx.CharOpts["MapShowArchBlobs"] then
-		for i = 1, ArchaeologyMapUpdateAll() do
-			self.Arch:DrawBlob(ArcheologyGetVisibleBlobID(i), true)
+	if not InCombatLockdown() then
+		self.Arch:DrawNone();
+		if Nx.CharOpts["MapShowArchBlobs"] then
+			for i = 1, ArchaeologyMapUpdateAll() do
+				self.Arch:DrawBlob(ArcheologyGetVisibleBlobID(i), true)
+			end
+			self:ClipZoneFrm( self.Cont, self.Zone, self.Arch, 1 )
+			self.Arch:SetFrameLevel(self.Level)
+			self.Arch:SetFillAlpha(255 * self.ArchAlpha)
+			self.Arch:SetBorderAlpha( 255 * self.ArchAlpha )
+			self.Arch:Show()
+		else
+			self.Arch:Hide()
 		end
-		self:ClipZoneFrm( self.Cont, self.Zone, self.Arch, 1 )
-		self.Arch:SetFrameLevel(self.Level)
-		self.Arch:SetFillAlpha(255 * self.ArchAlpha)
-		self.Arch:SetBorderAlpha( 255 * self.ArchAlpha )
-		self.Arch:Show()
-	else
-		self.Arch:Hide()
 	end
 end

@@ -2210,7 +2213,7 @@ function Nx.Map:MinimapOwnInit()
 	-- Reset since this seems to be getting remembered
 	mm:SetMaskTexture ("textures\\MinimapMask")

---	self:MinimapNodeGlowInit()
+	self:MinimapNodeGlowInit()

 	-- Commom data for map and dock

@@ -3776,28 +3779,18 @@ function Nx.Map:OnEvent (event, ...)
 		if this:IsVisible() then
 			this.NxMap:UpdateAll()
 		end
-
---	elseif event == "MINIMAP_UPDATE_ZOOM" then		-- Seems useless
---		Nx.prt ("Z %s", GetCVar ("minimapZoom") or "nil")
---		Nx.prt ("IZ %s", GetCVar ("minimapInsideZoom") or "nil")
-
---[[
-	elseif event == "PLAYER_ENTERING_WORLD" then
-
-		local map = this.NxMap
-
---		if not map.RMapId then
-
-			local rid = map:GetRealMapId()
---			map.RMapId = rid
-
-			Nx.prt ("PLAYER_ENTERING_WORLD rid %s", rid)
-
-			map.CurOpts = nil
-			map:SwitchOptions (rid)
-			map:SwitchRealMap (rid)
---		end
---]]
+	elseif event == "PLAYER_REGEN_DISABLED" then
+	  self.Arch:Hide()
+	  self.QuestWin:Hide()
+	  self.Arch:SetParent(nil)
+	  self.QuestWin:SetParent(nil)
+	  self.Arch:ClearAllPoints()
+	  self.QuestWin:ClearAllPoints()
+	elseif event == "PLAYER_REGEN_ENABLED" then
+	  self.Arch:SetParent(this.NxMap.TextScFrm:GetScrollChild())
+	  self.QuestWin:SetParent(this.NxMap.TextScFrm:GetScrollChild())
+	  self.Arch:Show()
+	  self.QuestWin:Hide()
 	end
 end

diff --git a/Carbonite/NxQuest.lua b/Carbonite/NxQuest.lua
index 4fbbc09..144d421 100644
--- a/Carbonite/NxQuest.lua
+++ b/Carbonite/NxQuest.lua
@@ -7932,16 +7932,21 @@ function Nx.Quest:TrackOnMap (qId, qObj, useEnd, target, skipSame)
 			end
 ]]--
 	local QMap = NxMap1.NxMap
-	QMap.QuestWin:DrawNone();
-	if Nx.CharOpts["MapShowQuestBlobs"] then
-		QMap.QuestWin:DrawBlob(qId,true)
-		QMap:ClipZoneFrm( QMap.Cont, QMap.Zone, QMap.QuestWin, 1 )
-		QMap.QuestWin:SetFrameLevel(QMap.Level)
-		QMap.QuestWin:SetFillAlpha(255 * QMap.QuestAlpha)
-		QMap.QuestWin:SetBorderAlpha( 255 * QMap.QuestAlpha )
-		QMap.QuestWin:Show()
-	else
-		QMap.QuestWin:Hide()
+	if not InCombatLockdown() then
+		local cur = self.QIds[qId]
+		if not cur.Complete then
+			QMap.QuestWin:DrawNone();
+			if Nx.CharOpts["MapShowQuestBlobs"] then
+				QMap.QuestWin:DrawBlob(qId,true)
+				QMap:ClipZoneFrm( QMap.Cont, QMap.Zone, QMap.QuestWin, 1 )
+				QMap.QuestWin:SetFrameLevel(QMap.Level)
+				QMap.QuestWin:SetFillAlpha(255 * QMap.QuestAlpha)
+				QMap.QuestWin:SetBorderAlpha( 255 * QMap.QuestAlpha )
+				QMap.QuestWin:Show()
+			else
+				QMap.QuestWin:Hide()
+			end
+		end
 	end

 			local mId = Map.NxzoneToMapId[zone]
@@ -8017,6 +8022,11 @@ function Nx.Quest:TrackOnMap (qId, qObj, useEnd, target, skipSame)
 							RemoveQuestWatch(BlizIndex)
 						end
 						self.Map:ClearTargets()
+						if not InCombatLockdown() then
+							local QMap = NxMap1.NxMap
+							QMap.QuestWin:DrawNone();
+							QMap.QuestWin:Hide()
+						end
 					end
 				end
 			end