self:RegisterForDrag("LeftButton"); self.elapsed = 0; PanelTemplates_SetNumTabs(AltoholicFrame, 5); PanelTemplates_SetTab(AltoholicFrame, 1); self:StartMoving(); self.isMoving = true; self:StopMovingOrSizing(); self.isMoving = false; Altoholic:OnShow(); PlaySound("UChatScrollButton"); PlaySound("UChatScrollButton"); self:SetAutoFocus( false ); Altoholic.Search:FindItem(); self:ClearFocus(); Altoholic:ToggleUI() self:SetAutoFocus( true ); self:ClearFocus(); _G[self:GetParent():GetName() .."_AccTargetEditBox"]:SetFocus(); AltoAccountSharing:Hide() Altoholic:ToggleUI() _G[self:GetName().."Text"]:SetText(TARGET); AltoAccountSharing_UseTarget:SetChecked(1) AltoAccountSharing_UseName:SetChecked(nil) AltoAccountSharing_UseName:SetChecked(nil) AltoAccountSharing_UseTarget:SetChecked(nil) self:SetAutoFocus( false ); self:ClearFocus(); AltoAccountSharing:Hide() Altoholic:ToggleUI() _G[self:GetName() .. "Text"]:SetText(ALL) Altoholic.Sharing.AvailableContent:CheckAll(self, button)