rendered paste bodyfunction idBar.prototype:resetButtons() local Button Button = getglobal(self.Name .. self.First) Button:SetParent(self.Background) self:giveButtonLooks(Button) Button:ClearAllPoints() Button:SetPoint('CENTER', UIParent, 'CENTER') Button:Show() for i = self.First + 1, self.Last do Button = getglobal(self.Name .. i) Button:SetParent(self.Background) self:giveButtonLooks(Button) Button:ClearAllPoints() if math.mod(self.Limit, i) then idActionBar:Print('UP ' .. i) Button:SetPoint('BOTTOM', getglobal(self.Name .. i - self.Limit), 'TOP', 0, self.Spacing) self.Height = self.Height + Button:GetHeight() + self.Spacing else idActionBar:Print('RIGHT ' .. i) Button:SetPoint('LEFT', getglobal(self.Name .. i - 1), 'RIGHT', self.Spacing, 0) self.Width = self.Width + Button:GetWidth() + self.Spacing end Button:Show() end self.Width = self.Width - self.Spacing self.Height = self.Height - self.Spacingend