idUnitframes:RegisterChatCommand({'/idunitframes'}, { -- line 17
setx = {
type = 'group',
desc = 'Set the x coordinate of a frame.',
args = {
player = {
type = 'execute',
func = function(Value)
self.Frames.player:SetPoint('TOPLEFT', UIParent, 'TOPLEFT', Value, self.Frames.player:GetTop())
self:savePosition('player')
end
},
player = {
type = 'execute',
func = function(Value)
self.Frames.player:SetPoint('TOPLEFT', UIParent, 'TOPLEFT', Value, self.Frames.player:GetTop())
self:savePosition('player')
end
},
}
},
sety = {
type = 'group',
desc = 'Set the y coordinate of a frame.',
args = {
player = {
type = 'execute',
func = function(Value)
self.Frames.player:SetPoint('TOPLEFT', UIParent, 'TOPLEFT', self.Frames.player:GetLeft(), Value)
self:savePosition('player')
end
},
player = {
type = 'execute',
func = function(Value)
self.Frames.player:SetPoint('TOPLEFT', UIParent, 'TOPLEFT', self.Frames.player:GetLeft(), Value)
self:savePosition('player')
end
},
}
}
})