rendered paste body local classes = {"player","party"}
local slashcommands = {
type= 'group',
args = {
}
}
for k,v in classes do
local table = {
name = v,
type = 'group',
desc = "Player settings.",
args = {
StatusTextStyle = {
name = "StatusTextStyle",
type = 'text',
desc = "desc",
get = function()
return self.db.profile[v].StatusTextStyle
end,
set = function(option)
self.db.profile[v].StatusTextStyle = option
end,
validate = {"Absolute", "Difference", "Percent", "Hide"}
}
}
}
slashcommands.args[v] = table
end
self.dewdrop:Register(Minimap, 'children', slashcommands)