diff RatPageView.lua @ 15:80192bc4a108

Replaced the global msg function with CyborgMMO_DPrint: - avoids conflicts with other addons ('msg' is too generic) - has 'print' semantics (several values accepted, calls tostring) - use AddMessage with a colored prefix, instead of plain SendChatMessage
author madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09
date Thu, 25 Apr 2013 01:29:55 +0000
parents 6cb9a2936580
children cccc7661a2e6
line wrap: on
line diff
--- a/RatPageView.lua	Thu Apr 25 01:29:50 2013 +0000
+++ b/RatPageView.lua	Thu Apr 25 01:29:55 2013 +0000
@@ -20,27 +20,27 @@
 
 CyborgMMO_RatPageView = {
 	new = function(self)
-		msg("new Rat Page View")
+		CyborgMMO_DPrint("new Rat Page View")
 		for _,child in ipairs(self:GetChildren()) do
 			child.Register()
 		end
 
 		self.SlotClicked = function(slot)
-			msg("View Recieved Click")
+			CyborgMMO_DPrint("View Recieved Click")
 			CyborgMMO_RatPageController.Instance().SlotClicked(slot)
 		end
 
 		self.ModeClicked = function(mode)
-			msg("View Recieved Click")
+			CyborgMMO_DPrint("View Recieved Click")
 			CyborgMMO_RatPageController.Instance().ModeClicked(mode)
 		end
 
 		self.RegisterMode = function()
-			msg("ModeRegistered")
+			CyborgMMO_DPrint("ModeRegistered")
 		end
 
 		self.RegisterSlot = function()
-			msg("SlotRegistered")
+			CyborgMMO_DPrint("SlotRegistered")
 		end
 
 		return self