Change configuration GUI to show the current revision, to aid in debugging
James Whitehead II [01-06-07 - 00:34]
Change configuration GUI to show the current revision, to aid in debugging
Moved title settign into the CreateOptions() function instead of the XML
Added keywork:Revision to the PerfectRaid.lua file, storing the most recent rev as PerfectRaid.rev
diff --git a/Localization.enUS.lua b/Localization.enUS.lua
index 50cb022..ae56c61 100644
--- a/Localization.enUS.lua
+++ b/Localization.enUS.lua
@@ -43,6 +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)",
["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 7dbdbfc..44cddc6 100644
--- a/PerfectRaid.lua
+++ b/PerfectRaid.lua
@@ -36,6 +36,7 @@ local aggro = {}
local L = PerfectRaidLocals
local utils = DongleStub("DongleUtils")
PerfectRaid = DongleStub("Dongle"):New("PerfectRaid")
+PerfectRaid.rev = tonumber(string.match("$Revision$", "(%d+)") or 1)
function PerfectRaid:Initialize()
self.frames = frames
diff --git a/PerfectRaid.xml b/PerfectRaid.xml
index f62faba..00b23cf 100644
--- a/PerfectRaid.xml
+++ b/PerfectRaid.xml
@@ -32,7 +32,7 @@
</Anchor>
</Anchors>
</Texture>
- <FontString name="$parentTitle" inherits="GameFontNormal" text="PerfectRaid Options">
+ <FontString name="$parentTitle" inherits="GameFontNormal">
<Anchors>
<Anchor point="TOP" relativeTo="$parentHeaderTexture">
<Offset>
diff --git a/PerfectRaid_Options.lua b/PerfectRaid_Options.lua
index ed8a735..510b1ef 100644
--- a/PerfectRaid_Options.lua
+++ b/PerfectRaid_Options.lua
@@ -30,6 +30,7 @@
---------------------------------------------------------------------------]]
local Options = PerfectRaid:NewModule("PerfectRaid-Options")
+local L = PerfectRaidLocals
function Options:Initialize()
end
@@ -56,6 +57,8 @@ function Options:CreateOptions()
frame:SetWidth(600)
frame:SetPoint("CENTER", 0, 0)
+ PROptionsTitle:SetText(string.format(L["PerfectRaid Options (r%d)"], PerfectRaid.rev))
+
for name,module in PerfectRaid:IterateModules() do
if module ~= self and type(module.CreateOptions) == "function" then
module:CreateOptions(self)