Quantcast

Updated to work with Dongle-Beta0 and the new message system

James Whitehead II [01-08-07 - 03:04]
Updated to work with Dongle-Beta0 and the new message system
Filename
Localization.enUS.lua
PerfectRaid.lua
PerfectRaid_Aggro.lua
PerfectRaid_Buffs.lua
PerfectRaid_Options.lua
PerfectRaid_Range.lua
diff --git a/Localization.enUS.lua b/Localization.enUS.lua
index 3fa407a..339779a 100644
--- a/Localization.enUS.lua
+++ b/Localization.enUS.lua
@@ -43,7 +43,7 @@ PerfectRaidLocals = {
 	["Offline"] = "Offline",
 	["Only show if this buff is missing"] = "Only show if this buff is missing",
 	["Out-of-Range Alpha"] = "Out-of-Range Alpha",
-	["PerfectRaid Options (r%d)"] = "PerfectRaid Options (r%d)",
+	["PerfectRaid Options"] = "PerfectRaid Options",
 	["Perform aggro checking"] = "Perform aggro checking",
 	["Perform range checking"] = "Perform range checking",
 	["Power Infusion"] = "Power Infusion",
diff --git a/PerfectRaid.lua b/PerfectRaid.lua
index 4178f00..cb9bcec 100644
--- a/PerfectRaid.lua
+++ b/PerfectRaid.lua
@@ -35,7 +35,7 @@ local aggro = {}

 local L = PerfectRaidLocals
 local utils = DongleStub("DongleUtils")
-PerfectRaid = DongleStub("Dongle"):New("PerfectRaid")
+PerfectRaid = DongleStub("Dongle-Beta0"):New("PerfectRaid")
 PerfectRaid.rev = tonumber(string.match("$Revision$", "(%d+)") or 1)

 function PerfectRaid:Initialize()
@@ -405,8 +405,9 @@ end
 function PerfectRaid.ConfigureButton(button)
 	local self = PerfectRaid

-	button:SetWidth(200)
-	button:SetHeight(14)
+	button:SetAttribute("initial-width", 200)
+	button:SetAttribute("initial-height", 14)
+
 --	button:SetBackdrop(GameTooltip:GetBackdrop())
 	button:SetBackdropColor(0.3, 0.3, 0.3)
 	button:SetBackdropBorderColor(0.4, 0.4, 0.4)
diff --git a/PerfectRaid_Aggro.lua b/PerfectRaid_Aggro.lua
index b93edb4..28c1d8a 100644
--- a/PerfectRaid_Aggro.lua
+++ b/PerfectRaid_Aggro.lua
@@ -44,7 +44,7 @@ function Aggro:Initialize()

 	frames = PerfectRaid.frames
 	aggro = PerfectRaid.aggro
-	self:RegisterEvent("DONGLE_PROFILE_CHANGED")
+	self:RegisterMessage("DONGLE_PROFILE_CHANGED")
 end

 function Aggro:Enable()
diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua
index 1785fcb..20a67c4 100644
--- a/PerfectRaid_Buffs.lua
+++ b/PerfectRaid_Buffs.lua
@@ -38,7 +38,7 @@ function Buffs:Initialize()
 	PerfectRaid.defaults.profile.buffs = {}

 	frames = PerfectRaid.frames
-	self:RegisterEvent("DONGLE_PROFILE_CREATED")
+	self:RegisterMessage("DONGLE_PROFILE_CREATED")
 	self:RegisterEvent("PERFECTRAID_TAB_CHANGED")
 end

diff --git a/PerfectRaid_Options.lua b/PerfectRaid_Options.lua
index 9dc9817..40f044b 100644
--- a/PerfectRaid_Options.lua
+++ b/PerfectRaid_Options.lua
@@ -58,7 +58,7 @@ function Options:CreateOptions()
 	frame:SetWidth(600)
 	frame:SetPoint("CENTER", 0, 50)

-	PROptionsTitle:SetText(string.format(L["PerfectRaid Options (r%d)"], PerfectRaid.rev))
+	PROptionsTitle:SetText(L["PerfectRaid Options"])

 	for name,module in PerfectRaid:IterateModules() do
 		if module ~= self and type(module.CreateOptions) == "function" then
diff --git a/PerfectRaid_Range.lua b/PerfectRaid_Range.lua
index c718ea5..817f054 100644
--- a/PerfectRaid_Range.lua
+++ b/PerfectRaid_Range.lua
@@ -62,7 +62,7 @@ function Range:Enable()
 		self.frame:SetScript("OnUpdate", self.OnUpdate)
 		rate = PerfectRaid.db.profile.RangeRate
 		alpha = PerfectRaid.db.profile.RangeAlpha
-		self:RegisterEvent("DONGLE_PROFILE_CHANGED")
+		self:RegisterMessage("DONGLE_PROFILE_CHANGED")
 	end
 end