diff --git a/Config.lua b/Config.lua
index 68d922b..f6ee4a4 100644
--- a/Config.lua
+++ b/Config.lua
@@ -7,6 +7,8 @@ options.type = "group"
options.name = "PerfectRaid"
options.get = function(k) return db[k.arg] end
options.set = function(k,v) db[k.arg] = v end
+options.get = function() end
+options.set = function() end
options.args = {}
options.args.general = {
@@ -45,7 +47,7 @@ options.args.aggro = {
order = 1,
name = L["Perform aggro check"],
desc = L["Enables calculating which friendly units have aggro"],
- type = "toggle2",
+ type = "toggle",
arg = "aggro,enable",
},
aggrodelay = {
@@ -138,7 +140,7 @@ options.args.range = {
local function getFrameArgs()
- local opt = {
+ return {
help = {
order = 1,
type = "description",
@@ -424,30 +426,24 @@ options.args.frames = {
name = L["Frame Editor"],
args = {
add = {
- type = "group",
- name = L["Add new frame"],
- desc = L["Adds a new PerfectRaid frame"],
- args = {
- name = {
- type = "input",
- name = L["Frame name:"],
- desc = L["Each frame must be given a unique name. This is not the same as the title that can be displayed above the frame"],
- set = function(self, name)
- options.args.frames[name] = {
- type = "group",
- name = name,
- arg = name,
- childGroups = "tab",
- args = getFrameArgs(),
- }
- end
- },
- },
+ type = "input",
+ name = L["Add new frame:"],
+ desc = L["Each frame must be given a unique name. This is not the same as the title that can be displayed above the frame"],
+ set = function(self, name)
+ options.args.frames.args[name] = {
+ type = "group",
+ name = name,
+ arg = name,
+ childGroups = "tab",
+ args = getFrameArgs(),
+ }
+ end
},
},
}
if LibStub and LibStub("AceConfig-3.0") then
- LibStub("AceConfig-3.0"):RegisterOptions("PerfectRaid", options)
+ LibStub("AceConfig-3.0"):RegisterOptionsTable("PerfectRaid", options)
+ LibStub("AceConfigDialog-3.0"):Open("PerfectRaid")
end
diff --git a/Localization.enUS.lua b/Localization.enUS.lua
index 3436bb7..64b2231 100644
--- a/Localization.enUS.lua
+++ b/Localization.enUS.lua
@@ -2,10 +2,13 @@
PerfectRaidLocals = {
[" *** DISABLED ***"] = " *** DISABLED ***",
+ ["A list of players name to be shown. This option will not be used if any of the group or class filters are set"] = "A list of players name to be shown. This option will not be used if any of the group or class filters are set",
["Add"] = "Add",
+ ["Add new frame:"] = "Add new frame:",
["Adding a default raid layout to new profile \"%s\""] = "Adding a default raid layout to new profile \"%s\"",
["Adding default buffs to new profile \"%s\""] = "Adding default buffs to new profile \"%s\"",
["Aggro"] = "Aggro",
+ ["Aggro Options"] = "Aggro Options",
["Align frames to BOTTOM"] = "Align frames to BOTTOM",
["Align frames to RIGHT"] = "Align frames to RIGHT",
["All Classes"] = "All Classes",
@@ -13,6 +16,7 @@ PerfectRaidLocals = {
["Arcane Brilliance"] = "Arcane Brilliance",
["Arcane Intellect"] = "Arcane Intellect",
["Auto-fill Default"] = "Auto-fill Default",
+ ["Backdrop color"] = "Backdrop color",
["Blessing of Kings"] = "Blessing of Kings",
["Blessing of Light"] = "Blessing of Light",
["Blessing of Might"] = "Blessing of Might",
@@ -21,26 +25,54 @@ PerfectRaidLocals = {
["Blessing of Wisdom"] = "Blessing of Wisdom",
["Buff Name:"] = "Buff Name:",
["Buffs/Debuffs"] = "Buffs/Debuffs",
+ ["By name"] = "By name",
+ ["By party/raid index"] = "By party/raid index",
["Cancel"] = "Cancel",
+ ["Changes the delay between range checks"] = "Changes the delay between range checks",
+ ["Changes the health display to only show percentages"] = "Changes the health display to only show percentages",
+ ["Chooses the criteria used to group the frames"] = "Chooses the criteria used to group the frames",
+ ["Chooses the sort method when sorting frames. This sort is applied after the grouping order"] = "Chooses the sort method when sorting frames. This sort is applied after the grouping order",
+ ["Class"] = "Class",
+ ["Classes"] = "Classes",
["Color bars by class"] = "Color bars by class",
["Column Anchor Point:"] = "Column Anchor Point:",
+ ["Column anchor point"] = "Column anchor point",
+ ["Column spacing"] = "Column spacing",
+ ["Column spacing must be a number, or nil"] = "Column spacing must be a number, or nil",
+ ["Columns"] = "Columns",
+ ["Controls the delay between aggro calculations, in seconds"] = "Controls the delay between aggro calculations, in seconds",
["Dead"] = "Dead",
["Delete"] = "Delete",
["Disable"] = "Disable",
["Disabled: "] = "Disabled: ",
+ ["Display"] = "Display",
["Display Text:"] = "Display Text:",
+ ["Display a backdrop behind frame"] = "Display a backdrop behind frame",
["Display a header backdrop"] = "Display a header backdrop",
+ ["Displays the unit tooltip on mouseover"] = "Displays the unit tooltip on mouseover",
["Divine Spirit"] = "Divine Spirit",
["Do not check this buff (Disable)"] = "Do not check this buff (Disable)",
["Down"] = "Down",
["Druid"] = "Druid",
+ ["Each frame must be given a unique name. This is not the same as the title that can be displayed above the frame"] = "Each frame must be given a unique name. This is not the same as the title that can be displayed above the frame",
["Edit"] = "Edit",
["Enable"] = "Enable",
["Enable click-casting on frames"] = "Enable click-casting on frames",
+ ["Enable range checking"] = "Enable range checking",
+ ["Enables adding the player to the party or solo frames"] = "Enables adding the player to the party or solo frames",
+ ["Enables calculating which friendly units have aggro"] = "Enables calculating which friendly units have aggro",
["Fear Ward"] = "Fear Ward",
+ ["Filters"] = "Filters",
+ ["Filters which units are displayed in the frame"] = "Filters which units are displayed in the frame",
+ ["Focus highlight color"] = "Focus highlight color",
+ ["Forces the Blizzard party frames to be hidden"] = "Forces the Blizzard party frames to be hidden",
+ ["Frame Editor"] = "Frame Editor",
["Frame Scale:"] = "Frame Scale:",
["Frames have been locked"] = "Frames have been locked",
["Frames have been unlocked"] = "Frames have been unlocked",
+ ["From here you can configure the options for a display frame, including what units it displays and other options that change the look, feel and operation of the frame."] = "From here you can configure the options for a display frame, including what units it displays and other options that change the look, feel and operation of the frame.",
+ ["General Options"] = "General Options",
+ ["General addon-wide options"] = "General addon-wide options",
["Ghost"] = "Ghost",
["Gift of the Wild"] = "Gift of the Wild",
["Greater Blessing of Kings"] = "Greater Blessing of Kings",
@@ -59,11 +91,26 @@ PerfectRaidLocals = {
["Group 8"] = "Group 8",
["Group Buff Name:"] = "Group Buff Name:",
["Group frames by:"] = "Group frames by:",
+ ["Grouping"] = "Grouping",
+ ["Grouping is the first level of sorting, allowing you to group all of the tanks together, and all of the healers together. After grouping is done, the sort order is applied."] = "Grouping is the first level of sorting, allowing you to group all of the tanks together, and all of the healers together. After grouping is done, the sort order is applied.",
+ ["Grouping order:"] = "Grouping order:",
+ ["Grouping/Sorting"] = "Grouping/Sorting",
+ ["Groups"] = "Groups",
+ ["HUNTER"] = "HUNTER",
["Healing Touch"] = "Healing Touch",
["Healing Wave"] = "Healing Wave",
+ ["Health bar options"] = "Health bar options",
+ ["Height of power bar"] = "Height of power bar",
["Hide Blizzard Party Frames"] = "Hide Blizzard Party Frames",
- ["Highlight my target"] = "Highlight my target",
+ ["Hide Blizzard party frames"] = "Hide Blizzard party frames",
+ ["Highlight Options"] = "Highlight Options",
+ ["Highlight cursed units"] = "Highlight cursed units",
+ ["Highlight diseased units"] = "Highlight diseased units",
["Highlight on mouseover"] = "Highlight on mouseover",
+ ["Highlight player's focus"] = "Highlight player's focus",
+ ["Highlight player's target"] = "Highlight player's target",
+ ["Highlight poisoned units"] = "Highlight poisoned units",
+ ["Highlight units with a magic debuff"] = "Highlight units with a magic debuff",
["Highlight when cursed"] = "Highlight when cursed",
["Highlight when diseased"] = "Highlight when diseased",
["Highlight when magic debuffed"] = "Highlight when magic debuffed",
@@ -74,27 +121,45 @@ PerfectRaidLocals = {
["Innervate"] = "Innervate",
["Lesser Heal"] = "Lesser Heal",
["Lifebloom"] = "Lifebloom",
+ ["Lock PerfectRaid"] = "Lock PerfectRaid",
["Lock frames"] = "Lock frames",
+ ["Locks frames in place so they can't be moved accidentally"] = "Locks frames in place so they can't be moved accidentally",
["Mage"] = "Mage",
+ ["Main assist"] = "Main assist",
+ ["Main tank"] = "Main tank",
["Make filters strict"] = "Make filters strict",
["Mana Bar Height:"] = "Mana Bar Height:",
["Mark of the Wild"] = "Mark of the Wild",
["Max Units per Column:"] = "Max Units per Column:",
+ ["Max column must be a number"] = "Max column must be a number",
+ ["Max columns to display"] = "Max columns to display",
["Mortal Strike"] = "Mortal Strike",
+ ["Name list"] = "Name list",
["No filters selected"] = "No filters selected",
+ ["No grouping"] = "No grouping",
["Number of Columns:"] = "Number of Columns:",
+ ["Number of units per column"] = "Number of units per column",
+ ["Number of units per column must be a number, or nil"] = "Number of units per column must be a number, or nil",
["Offline"] = "Offline",
["Only show if this buff is missing"] = "Only show if this buff is missing",
["Only show mana bar for mana users"] = "Only show mana bar for mana users",
+ ["Only show mana users"] = "Only show mana users",
["Only show my buffs"] = "Only show my buffs",
+ ["Options for aggro calculation and display"] = "Options for aggro calculation and display",
+ ["Options that allow you to split the dislpay of frames into columns"] = "Options that allow you to split the dislpay of frames into columns",
+ ["Options that determine when the frames are shown"] = "Options that determine when the frames are shown",
+ ["Options that set the grouping and sorting for the frame"] = "Options that set the grouping and sorting for the frame",
+ ["Out of range alpha"] = "Out of range alpha",
["Out-of-Range Alpha"] = "Out-of-Range Alpha",
["Paladin"] = "Paladin",
["PerfectRaid Options"] = "PerfectRaid Options",
+ ["Perform aggro check"] = "Perform aggro check",
["Perform aggro checking"] = "Perform aggro checking",
["Perform range checking"] = "Perform range checking",
["Power Infusion"] = "Power Infusion",
["Power Word: Fortitude"] = "Power Word: Fortitude",
["Power Word: Shield"] = "Power Word: Shield",
+ ["Power bar options"] = "Power bar options",
["Prayer of Fortitude"] = "Prayer of Fortitude",
["Prayer of Mending"] = "Prayer of Mending",
["Prayer of Shadow Protection"] = "Prayer of Shadow Protection",
@@ -103,11 +168,16 @@ PerfectRaidLocals = {
["Primary In-Range Alpha"] = "Primary In-Range Alpha",
["Primary Spell:"] = "Primary Spell:",
["Raid Frames"] = "Raid Frames",
+ ["Raid group number"] = "Raid group number",
+ ["Range checking delay"] = "Range checking delay",
+ ["Range checking options"] = "Range checking options",
["Regrowth"] = "Regrowth",
["Rejuvenation"] = "Rejuvenation",
["Renew"] = "Renew",
["Reverse HP bars"] = "Reverse HP bars",
["Rogue"] = "Rogue",
+ ["Role"] = "Role",
+ ["Roles"] = "Roles",
["STATUS_ARCANEINT"] = "Int",
["STATUS_BLESSINGKINGS"] = "BoK",
["STATUS_BLESSINGLIGHT"] = "BoL",
@@ -139,26 +209,54 @@ PerfectRaidLocals = {
["Save"] = "Save",
["Secondary In-Range Alpha"] = "Secondary In-Range Alpha",
["Secondary Spell:"] = "Secondary Spell:",
+ ["Sets the frames to work with addons such as Clique"] = "Sets the frames to work with addons such as Clique",
["Shadow Protection"] = "Shadow Protection",
["Shaman"] = "Shaman",
+ ["Shorten large numbers"] = "Shorten large numbers",
+ ["Shortens 1500 to 1.5k"] = "Shortens 1500 to 1.5k",
["Show HP deficit"] = "Show HP deficit",
["Show frame in raid"] = "Show frame in raid",
["Show frame when solo"] = "Show frame when solo",
["Show frame while in party"] = "Show frame while in party",
["Show group number"] = "Show group number",
+ ["Show health deficit"] = "Show health deficit",
["Show options GUI"] = "Show options GUI",
+ ["Show percentages only"] = "Show percentages only",
["Show player in frame"] = "Show player in frame",
+ ["Show the frame when in a party, but not in a raid"] = "Show the frame when in a party, but not in a raid",
+ ["Show the frame when in a raid"] = "Show the frame when in a raid",
+ ["Show the frame when not grouped"] = "Show the frame when not grouped",
+ ["Show the player when not in a raid"] = "Show the player when not in a raid",
+ ["Show tooltips on mouseover"] = "Show tooltips on mouseover",
["Show unit tooltip on mouseover"] = "Show unit tooltip on mouseover",
+ ["Shows the amount of health missing, rather than the amount of health the player has currently."] = "Shows the amount of health missing, rather than the amount of health the player has currently.",
["Sort Frames By:"] = "Sort Frames By:",
+ ["Sort direction"] = "Sort direction",
+ ["Sort method"] = "Sort method",
+ ["Sorting"] = "Sorting",
["Soulstone Resurrection"] = "Soulstone Resurrection",
["Spacing between columns:"] = "Spacing between columns:",
+ ["Specifies the sort order for grouping. This should be a comma separated list of group numbers, uppercase english class names, or roles"] = "Specifies the sort order for grouping. This should be a comma separated list of group numbers, uppercase english class names, or roles",
+ ["Start index"] = "Start index",
+ ["Start index must be a value between 1 and 40"] = "Start index must be a value between 1 and 40",
+ ["Strict filtering"] = "Strict filtering",
+ ["Target highlight color"] = "Target highlight color",
+ ["Target/Focus"] = "Target/Focus",
+ ["The anchor point for each new column. Setting this to LEFT will cause the columns to grow to the right, for example."] = "The anchor point for each new column. Setting this to LEFT will cause the columns to grow to the right, for example.",
+ ["The color to be applied to the backdrop"] = "The color to be applied to the backdrop",
+ ["The height of the power bar, in game pixels"] = "The height of the power bar, in game pixels",
+ ["The opacity level to be set on frames that are out of range"] = "The opacity level to be set on frames that are out of range",
+ ["The start index of the final sorted unit list at which to begin displaying units"] = "The start index of the final sorted unit list at which to begin displaying units",
+ ["This option hides the power bars for non-mana users such as warriors and rogues."] = "This option hides the power bars for non-mana users such as warriors and rogues.",
["Thorns"] = "Thorns",
["Title:"] = "Title:",
["Up"] = "Up",
["Update delay"] = "Update delay",
+ ["Visibility"] = "Visibility",
["Warlock"] = "Warlock",
["Warrior"] = "Warrior",
["Weakened Soul"] = "Weakened Soul",
+ ["When strict filtering is enabled, a unit must match all given filters in order to be shown."] = "When strict filtering is enabled, a unit must match all given filters in order to be shown.",
["You must select at least one class or group to display."] = "You must select at least one class or group to display.",
["inParty"] = "inParty",
["inRaid"] = "inRaid",