display higher hp mobs first, add ignore list filter

This commit is contained in:
pepopo978
2025-04-05 15:02:05 -07:00
parent cb86e3cc92
commit 4ae2f14349
5 changed files with 99 additions and 6 deletions
+35
View File
@@ -40,6 +40,9 @@ Cursive:RegisterDefaults("profile", {
filterrange = false,
filterraidmark = false,
filterhascurse = false,
filterignored = true,
ignorelist = {},
})
local barOptions = {
@@ -334,6 +337,38 @@ local mobFilters = {
Cursive.db.profile.filterhascurse = v
end,
},
["notignored"] = {
type = "toggle",
name = L["Not ignored"],
desc = L["Not ignored"],
order = 67,
get = function()
return Cursive.db.profile.filterignored
end,
set = function(v)
Cursive.db.profile.filterignored = v
end,
},
["ignorelist"] = {
type = "text",
name = L["Ignored Mobs List (Enter to save)"],
desc = L["Comma separated list of strings to ignore if found in the unit name"],
usage = "whelp, black dragonkin, player3",
order = 68,
get = function()
if Cursive.db.profile.ignorelist and table.getn(Cursive.db.profile.ignorelist) > 0 then
return table.concat(Cursive.db.profile.ignorelist, ",") or ""
end
return ""
end,
set = function(v)
if not v or v == "" then
Cursive.db.profile.ignorelist = {}
else
Cursive.db.profile.ignorelist = string.split(v, ",");
end
end,
},
}
Cursive.cmdtable = {